Package org.luwrain.controls
Class TreeArea
java.lang.Object
org.luwrain.controls.TreeArea
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
protected static class
static final class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected TreeArea.ClickHandler
protected final ControlContext
protected int
protected int
protected TreeArea.VisibleItem[]
protected final TreeArea.Model
protected String
protected TreeArea.Node
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
announce
(TreeArea.VisibleItem item, boolean briefAnnouncement) protected String
protected TreeArea.Node
constructNode
(Object obj, TreeArea.Node parent, boolean fillChildren) protected void
protected TreeArea.VisibleItem[]
protected TreeArea.VisibleItem[]
generateVisibleItems
(TreeArea.Node node, int level) Action[]
int
int
protected int
getInitialHotPointX
(int index) getLine
(int index) int
getModel()
protected boolean
boolean
onAreaQuery
(AreaQuery query) protected void
protected boolean
onCollapse
(InputEvent event) protected boolean
onExpand
(InputEvent event) boolean
onInputEvent
(InputEvent event) protected boolean
onKeyDown
(InputEvent event, boolean briefAnnouncement) protected boolean
onKeyEnter
(InputEvent event) protected boolean
onKeyLeft
(InputEvent event) protected boolean
onKeyRight
(InputEvent event) protected boolean
onKeySpace
(InputEvent event) protected boolean
onKeyUp
(InputEvent event, boolean briefAnnouncement) boolean
onSystemEvent
(SystemEvent event) void
refresh()
protected void
refreshNode
(TreeArea.Node node) selected()
void
void
boolean
selectObject
(Object obj) void
setClickHandler
(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:
getLineCount
in interfaceLines
-
getLine
-
getHotPointX
public int getHotPointX()- Specified by:
getHotPointX
in interfaceArea
- Specified by:
getHotPointX
in interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointY
in interfaceArea
- Specified by:
getHotPointY
in interfaceHotPoint
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
-
onAreaQuery
- Specified by:
onAreaQuery
in interfaceArea
-
getAreaActions
- Specified by:
getAreaActions
in interfaceArea
-
getAreaName
- Specified by:
getAreaName
in 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)
-