Package org.luwrain.controls
Class TreeArea
java.lang.Object
org.luwrain.controls.TreeArea
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceprotected static classstatic final classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TreeArea.ClickHandlerprotected final ControlContextprotected intprotected intprotected TreeArea.VisibleItem[]protected final TreeArea.Modelprotected Stringprotected TreeArea.Node -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidannounce(TreeArea.VisibleItem item, boolean briefAnnouncement) protected Stringprotected TreeArea.NodeconstructNode(Object obj, TreeArea.Node parent, boolean fillChildren) protected voidprotected TreeArea.VisibleItem[]protected TreeArea.VisibleItem[]generateVisibleItems(TreeArea.Node node, int level) Action[]intintprotected intgetInitialHotPointX(int index) getLine(int index) intgetModel()protected booleanbooleanonAreaQuery(AreaQuery query) protected voidprotected booleanonCollapse(InputEvent event) protected booleanonExpand(InputEvent event) booleanonInputEvent(InputEvent event) protected booleanonKeyDown(InputEvent event, boolean briefAnnouncement) protected booleanonKeyEnter(InputEvent event) protected booleanonKeyLeft(InputEvent event) protected booleanonKeyRight(InputEvent event) protected booleanonKeySpace(InputEvent event) protected booleanonKeyUp(InputEvent event, boolean briefAnnouncement) booleanonSystemEvent(SystemEvent event) voidrefresh()protected voidrefreshNode(TreeArea.Node node) selected()voidvoidbooleanselectObject(Object obj) voidsetClickHandler(TreeArea.ClickHandler clickHandler)
-
Field Details
-
context
-
model
-
name
-
root
-
items
-
hotPointX
protected int hotPointX -
hotPointY
protected int hotPointY -
clickHandler
-
-
Constructor Details
-
TreeArea
-
-
Method Details
-
getClickHandler
-
setClickHandler
-
getModel
-
getLineCount
public int getLineCount()- Specified by:
getLineCountin interfaceLines
-
getLine
-
getHotPointX
public int getHotPointX()- Specified by:
getHotPointXin interfaceArea- Specified by:
getHotPointXin interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointYin interfaceArea- Specified by:
getHotPointYin interfaceHotPoint
-
onInputEvent
- Specified by:
onInputEventin interfaceArea
-
onSystemEvent
- Specified by:
onSystemEventin interfaceArea
-
onAreaQuery
- Specified by:
onAreaQueryin interfaceArea
-
getAreaActions
- Specified by:
getAreaActionsin interfaceArea
-
getAreaName
- Specified by:
getAreaNamein interfaceArea
-
refresh
public void refresh() -
selected
-
selectObject
-
selectEmptyLastLine
public void selectEmptyLastLine() -
selectFirstItem
public void selectFirstItem() -
onClick
-
fillChildrenForNonLeaf
-
constructNode
-
refreshNode
-
onKeySpace
-
onKeyEnter
-
onExpand
-
onCollapse
-
onKeyDown
-
onKeyUp
-
onKeyRight
-
onKeyLeft
-
generateVisibleItems
-
generateAllVisibleItems
-
isLeaf
-
announce
-
constructLineForScreen
-
getInitialHotPointX
protected int getInitialHotPointX(int index)
-