Package com.thecoderscorner.menu.persist
Class PersistedMenu
java.lang.Object
com.thecoderscorner.menu.persist.PersistedMenu
Represents a persisted menu item, it has additional information needed to reconstitute the item at the right point
in the tree, namely the parentId, and also the type of menu item. This class is used by the JsonMenuItemSerializer
to store menu items.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItem()intgetType()voidvoidsetParentId(int parentId) void
-
Field Details
-
ANALOG_PERSIST_TYPE
- See Also:
-
ENUM_PERSIST_TYPE
- See Also:
-
SUB_PERSIST_TYPE
- See Also:
-
ACTION_PERSIST_TYPE
- See Also:
-
RUNTIME_LIST_PERSIST_TYPE
- See Also:
-
CUSTOM_ITEM_PERSIST_TYPE
- See Also:
-
BOOLEAN_PERSIST_TYPE
- See Also:
-
TEXT_PERSIST_TYPE
- See Also:
-
FLOAT_PERSIST_TYPE
- See Also:
-
RUNTIME_LARGE_NUM_PERSIST_TYPE
- See Also:
-
SCROLL_CHOICE_PERSIST_TYPE
- See Also:
-
RGB32_COLOR_PERSIST_TYPE
- See Also:
-
TCMENU_COPY_PREFIX
- See Also:
-
-
Constructor Details
-
PersistedMenu
public PersistedMenu()
-
-
Method Details
-
getParentId
public int getParentId() -
getItem
-
setParentId
public void setParentId(int parentId) -
setType
-
getType
-