MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / moveCursorTo

Method moveCursorTo

src/main/java/ui/VirtualList.java:695–710  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

693 }
694
695 public void moveCursorTo(int index){
696 int count = getItemCount();
697 if (count == 0)
698 return;
699 if (index <= 0)
700 index = 0;
701 else if (index >= count)
702 index = count - 1;
703 VirtualElement item = getItemRef(index);
704 if (item != null && item.isSelectable())
705 cursor = index;
706
707 stickyWindow=true;
708 redraw();
709 //setRotator();
710 }
711
712 protected synchronized void fitCursorByTop() {
713 if (cursor >= itemLayoutY.length)

Callers 15

pointerPressedMethod · 0.95
keyUpMethod · 0.95
PrivacyFormMethod · 0.80
popStateMethod · 0.80
exitDiscoveryMethod · 0.80
ServerBoxMethod · 0.80
InviteFormMethod · 0.80
ConferenceFormMethod · 0.80
createFormMethod · 0.80
chDirMethod · 0.80
TransferSendFileMethod · 0.80
MessageListMethod · 0.80

Calls 4

getItemCountMethod · 0.95
getItemRefMethod · 0.95
isSelectableMethod · 0.95
redrawMethod · 0.95

Tested by

no test coverage detected