public abstract static class UIItemList.Item extends Object
Constructor and Description |
---|
Item() |
Modifier and Type | Method and Description |
---|---|
int |
getActiveColor(UI ui)
Active background color for this item
|
abstract String |
getLabel()
String label that displays on this item
|
UIItemList.Section |
getSection()
Section that this item belongs to
|
boolean |
isActive()
Whether this item is in a special active state
|
boolean |
isChecked()
Whether the item is checked, applies only if checkbox mode set on the list.
|
void |
onActivate()
Action handler, invoked when item is activated
|
void |
onCheck(boolean checked)
Action handler invoked when item is checked
|
void |
onDeactivate()
Action handler, invoked when item is deactivated.
|
void |
onDelete()
Action handler, invoked when item is deleted
|
void |
onFocus()
Action handler, invoked when item is focused
|
void |
onRename(String name)
Action handler, invoked when an item is renamed.
|
void |
onReorder(int order)
Action handler, invoked when an item is reordered.
|
public boolean isActive()
public boolean isChecked()
public int getActiveColor(UI ui)
ui
- UI contextpublic abstract String getLabel()
public void onActivate()
public void onCheck(boolean checked)
checked
- If checkedpublic void onDeactivate()
public void onRename(String name)
name
- New name for itempublic void onReorder(int order)
order
- New position for itempublic void onDelete()
public void onFocus()
public UIItemList.Section getSection()
LX library by Mark C. Slee. © 2012-2020