tcMenuJavaAPI
Classes | Public Member Functions | List of all members
com.thecoderscorner.menu.domain.state.AnyMenuState Interface Reference
Inheritance diagram for com.thecoderscorner.menu.domain.state.AnyMenuState:
com.thecoderscorner.menu.domain.state.MenuState< T >

Classes

enum  StateStorageType
 

Public Member Functions

MenuItem getItem ()
 
Object getValue ()
 
boolean isChanged ()
 
boolean isActive ()
 
StateStorageType getStorageType ()
 

Detailed Description

AnyMenuState represents any menu state of any type, it is a convenience that allows for non-generic access to a menu state of any type, where the type is not important. Generally it's best to work with state via com.thecoderscorner.menu.domain.util.MenuItemHelper


Class Documentation

◆ com::thecoderscorner::menu::domain::state::AnyMenuState::StateStorageType

enum com::thecoderscorner::menu::domain::state::AnyMenuState::StateStorageType

Represents the storage type for the state.

Enumerator
BIG_DECIMAL
BOOLEAN
FLOAT
INTEGER
PORTABLE_COLOR
SCROLL_POSITION
STRING
STRING_LIST

Member Function Documentation

◆ getItem()

MenuItem com.thecoderscorner.menu.domain.state.AnyMenuState.getItem ( )
Returns
the item that this state belongs to

Implemented in com.thecoderscorner.menu.domain.state.MenuState< T >.

◆ getStorageType()

StateStorageType com.thecoderscorner.menu.domain.state.AnyMenuState.getStorageType ( )
Returns
the type of data this menu state holds

Implemented in com.thecoderscorner.menu.domain.state.MenuState< T >.

◆ getValue()

Object com.thecoderscorner.menu.domain.state.AnyMenuState.getValue ( )
Returns
the current value of this item, you can get a more refined from the sub class methods

Implemented in com.thecoderscorner.menu.domain.state.MenuState< T >.

◆ isActive()

boolean com.thecoderscorner.menu.domain.state.AnyMenuState.isActive ( )
Returns
true if the state represents the active item

Implemented in com.thecoderscorner.menu.domain.state.MenuState< T >.

◆ isChanged()

boolean com.thecoderscorner.menu.domain.state.AnyMenuState.isChanged ( )
Returns
true if the state has changed

Implemented in com.thecoderscorner.menu.domain.state.MenuState< T >.


The documentation for this interface was generated from the following file: