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

Method getFocusedObject

src/main/java/ui/VirtualList.java:386–391  ·  view source on GitHub ↗

возвращает ссылку на объект в фокусе. в классе VirtualList возвращает VirtualElement, на который указывает курсор, однако, возможно переопределить функцию при наследовании @return ссылка на объект в фокусе.

()

Source from the content-addressed store, hash-verified

384 * @return ссылка на объект в фокусе.
385 */
386 public Object getFocusedObject() {
387 if (cursor < getItemCount()) {
388 return getItemRef(cursor);
389 }
390 return null;
391 }
392
393 protected VirtualList parentView;
394

Callers 15

eventOkMethod · 0.95
fitCursorByTopMethod · 0.95
fitCursorByBottomMethod · 0.95
itemPageDownMethod · 0.95
itemPageUpMethod · 0.95
pageLeftMethod · 0.95
pageRightMethod · 0.95
showInfoMethod · 0.95
eventOkMethod · 0.80
eventLongOkMethod · 0.80
delRuleMethod · 0.80
keyClearMethod · 0.80

Calls 2

getItemCountMethod · 0.95
getItemRefMethod · 0.95

Tested by

no test coverage detected