public abstract class CommandButtonDisplayState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CommandButtonDisplayState |
BIG
Big state.
|
static CommandButtonDisplayState |
FIT_TO_ICON
Fit to icon state.
|
static CommandButtonDisplayState |
MEDIUM
Medium state.
|
static CommandButtonDisplayState |
SMALL
Small state.
|
static CommandButtonDisplayState |
TILE
Tile state.
|
Modifier | Constructor and Description |
---|---|
protected |
CommandButtonDisplayState(java.lang.String displayName,
int preferredIconSize)
Creates a new element state.
|
Modifier and Type | Method and Description |
---|---|
abstract CommandButtonLayoutManager |
createLayoutManager(AbstractCommandButton commandButton)
Creates a layout manager for the specified button.
|
java.lang.String |
getDisplayName()
Returns the display name for this state.
|
int |
getPreferredIconSize()
Returns the preferred icon size for this state.
|
java.lang.String |
toString() |
public static final CommandButtonDisplayState FIT_TO_ICON
public static final CommandButtonDisplayState BIG
public static final CommandButtonDisplayState TILE
public static final CommandButtonDisplayState MEDIUM
public static final CommandButtonDisplayState SMALL
protected CommandButtonDisplayState(java.lang.String displayName, int preferredIconSize)
displayName
- Display name.preferredIconSize
- Preferred icon size.public java.lang.String getDisplayName()
CommandButtonDisplayState(String, int)
public int getPreferredIconSize()
CommandButtonDisplayState(String, int)
public abstract CommandButtonLayoutManager createLayoutManager(AbstractCommandButton commandButton)
commandButton
- Command button.public java.lang.String toString()
toString
in class java.lang.Object