public enum ExpandedState extends Enum<ExpandedState>
Dockable as seen by the
ExpandableToolbarItemStrategyListener and by
ExpandableToolbarItem.| Enum Constant and Description |
|---|
EXPANDED
an expanded
Dockable has the largest possible size |
SHRUNK
a shrunk
Dockable has the smallest possible size |
STRETCHED
a stretched
Dockable has a medium size |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder()
Gets the order of this state.
|
static ExpandedState |
getOrdered(int size)
Orders the
ExpandedStates according to their size, and returns the
size'th state. |
ExpandedState |
larger()
Gets the next larger state.
|
ExpandedState |
smaller()
Gets the next smaller state.
|
static ExpandedState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExpandedState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpandedState EXPANDED
Dockable has the largest possible sizepublic static final ExpandedState STRETCHED
Dockable has a medium sizepublic static final ExpandedState SHRUNK
Dockable has the smallest possible sizepublic static ExpandedState[] values()
for (ExpandedState c : ExpandedState.values()) System.out.println(c);
public static ExpandedState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ExpandedState getOrdered(int size)
ExpandedStates according to their size, and returns the
size'th state.size - the size of the state, where 0 is the smallest state.nullIllegalArgumentException - if size is smaller than 0 or bigger
than the number of available statespublic int getOrder()
x == ExpandedState.getOrdered( x.getOrder() );public ExpandedState smaller()
this if there is no smaller statepublic ExpandedState larger()
null if there is no larger stateCopyright © 2018. All rights reserved.