|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeBox
Like listbox but contains a tree of items
Nested Class Summary | |
---|---|
static interface |
TreeBox.DragSingleSelectionHandler
Interface to implement if you need to know about selection and dragging |
static interface |
TreeBox.Handler
Interface implemented by users to handle the tree |
static interface |
TreeBox.Item
Interface implemented by users to pass on information about the tree of options. |
static interface |
TreeBox.MultiSelectionHandler
Interface to implement if you need to know about selection & allow multiple |
static interface |
TreeBox.SingleSelectionHandler
Interface to implement if you need to know about selection |
Method Summary | |
---|---|
void |
select(TreeBox.Item i)
Selects the given item. |
void |
select(TreeBox.Item[] items)
Selects the given items. |
void |
setHandler(TreeBox.Handler h)
Sets the handler used to build the tree of items. |
void |
setHeight(int height)
Sets height of box (if not called, will use preferred size). |
void |
setWidth(int width)
Sets width of box (if not called, will use preferred size). |
void |
update()
Call if the Handler's list of items might have changed |
Methods inherited from interface com.leafdigital.ui.api.Widget |
---|
getID, getOwner, informClosed, isVisible, setOwner, setVisible |
Method Detail |
---|
void setHandler(TreeBox.Handler h)
h
- Handlervoid update()
void select(TreeBox.Item i)
i
- Item to select (null for none)void select(TreeBox.Item[] items)
items
- Items to select (empty list for none)void setWidth(int width)
width
- Desired widthvoid setHeight(int height)
height
- Desired height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |