public class State<T> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
disabled
true: The item is not usable although it maybe shown
This can be due to authorization reasons |
protected boolean |
focussed
true : User focus is on particular/specific item (now)
|
protected boolean |
hidden
true: The item exists in cincept but is not show to the user.
|
protected T |
item |
protected boolean |
selected
true : If the Item is selected
|
Modifier and Type | Method and Description |
---|---|
T |
getItem() |
boolean |
isDisabled()
true: The menu is not usable although it maybe shown
This can be due to authorization reasons |
boolean |
isFocussed()
true : User focus is on particular/specific Item (now)
|
boolean |
isHidden()
true: The Item exists in concept but is not show to the user.
|
boolean |
isSelected()
true : Item is part of the selected hierarchy
|
void |
setDisabled(boolean disabled)
true: The menu is not usable altough it maybe shown
This can be due to authorization reasons |
void |
setFocussed(boolean focussed)
true : User focus is on particular/specific Menu item (now)
|
void |
setHidden(boolean hidden)
true: The Item exists in concept but is not show to the user.
|
void |
setItem(T item) |
void |
setSelected(boolean selected)
true : Item is part of the selected hierarchy
|
String |
toString() |
protected T item
protected boolean selected
protected boolean focussed
protected boolean hidden
protected boolean disabled
public State()
public State(T item)
public boolean isSelected()
public void setSelected(boolean selected)
public boolean isFocussed()
public void setFocussed(boolean focussed)
public boolean isHidden()
public void setHidden(boolean hidden)
public boolean isDisabled()
public void setDisabled(boolean disabled)
public T getItem()
public void setItem(T item)
Copyright © 2018. All rights reserved.