|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ExpandedState>
bibliothek.gui.dock.toolbar.expand.ExpandedState
public enum ExpandedState
Describes the state of a Dockable
as seen by the
ExpandableToolbarItemStrategyListener
and by
ExpandableToolbarItem
.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
int |
getOrder()
Gets the order of this state. |
static ExpandedState |
getOrdered(int size)
Orders the ExpandedState s 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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ExpandedState EXPANDED
Dockable
has the largest possible size
public static final ExpandedState STRETCHED
Dockable
has a medium size
public static final ExpandedState SHRUNK
Dockable
has the smallest possible size
Method Detail |
---|
public 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 name
NullPointerException
- if the argument is nullpublic static ExpandedState getOrdered(int size)
ExpandedState
s according to their size, and returns the
size
'th state.
size
- the size of the state, where 0 is the smallest state.
null
IllegalArgumentException
- 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 state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |