Class ItemMenuItem
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
ch.nolix.system.webatomiccontrol.itemmenu.ItemMenuItem
- All Implemented Interfaces:
IIdHolder, Resettable, BlanknessRequestable, IElement, IMutableElement, Selectable, SelectionRequestable, IItemMenuItem<ItemMenuItem>
public final class ItemMenuItem
extends AbstractMutableElement
implements IItemMenuItem<ItemMenuItem>
- Author:
- Silvan Wyss
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ItemMenuItemstatic ItemMenuItemfromSpecification(INode<?> specification) getId()getText()voidinternalSetParentMenu(IItemMenu<?, ?> parentMenu) booleanisBlank()booleanvoidreset()Resets the currentResettable.voidselect()voidunselect()static ItemMenuItemwithIdAndText(String id, String text) static ItemMenuItemwithIdAndTextAndSelectAction(String id, String text, Runnable selectAction) static ItemMenuItemwithIdAndTextAndSelectAction(String id, String text, Consumer<IItemMenuItem<?>> selectAction) static ItemMenuItemstatic ItemMenuItemwithTextAndSelectAction(String text, Runnable selectAction) static ItemMenuItemwithTextAndSelectAction(String text, Consumer<IItemMenuItem<?>> selectAction) Methods inherited from class AbstractMutableElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, resetFromFileWithFilePath, toStringMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IIdHolder
getIdInQuotes, hasIdMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecification
-
Field Details
-
DEFAULT_SELECTION_FLAG
public static final boolean DEFAULT_SELECTION_FLAG- See Also:
-
-
Method Details
-
createBlankItem
-
fromSpecification
-
withIdAndText
-
withIdAndTextAndSelectAction
public static ItemMenuItem withIdAndTextAndSelectAction(String id, String text, Runnable selectAction) -
withIdAndTextAndSelectAction
public static ItemMenuItem withIdAndTextAndSelectAction(String id, String text, Consumer<IItemMenuItem<?>> selectAction) -
withText
-
withTextAndSelectAction
-
withTextAndSelectAction
public static ItemMenuItem withTextAndSelectAction(String text, Consumer<IItemMenuItem<?>> selectAction) -
belongsToMenu
public boolean belongsToMenu()- Specified by:
belongsToMenuin interfaceIItemMenuItem<ItemMenuItem>
-
getId
-
getText
- Specified by:
getTextin interfaceIItemMenuItem<ItemMenuItem>
-
isBlank
public boolean isBlank()- Specified by:
isBlankin interfaceBlanknessRequestable- Returns:
- true if
BlanknessRequestableis blank, false otherwise.
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceSelectionRequestable
-
reset
-
select
public void select()- Specified by:
selectin interfaceSelectable
-
unselect
public void unselect()- Specified by:
unselectin interfaceSelectable
-