T - the type of current value.BooleanMenuState, IntegerMenuState, StringMenuStatepublic abstract class MenuState<T> extends Object
| Constructor | Description |
|---|---|
MenuState(boolean changed,
boolean active,
T value) |
normally these states are created from the menu item, instead of directly
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
|
T |
getValue() |
gets the current value
|
int |
hashCode() |
|
boolean |
isActive() |
gets the active status
|
boolean |
isChanged() |
gets the changed status
|
public MenuState(boolean changed,
boolean active,
T value)
changed - if the item has changedactive - if the item is active.value - the current valuepublic boolean isChanged()
public boolean isActive()
public T getValue()
Copyright © 2018. All rights reserved.