public abstract class CommandButtonDisplayState extends Object
Modifier and Type | Field | 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 | Description |
---|---|---|
protected |
CommandButtonDisplayState(String displayName,
int preferredIconSize) |
Creates a new element state.
|
Modifier and Type | Method | Description |
---|---|---|
abstract CommandButtonLayoutManager |
createLayoutManager(AbstractCommandButton commandButton) |
Creates a layout manager for the specified button.
|
String |
getDisplayName() |
Returns the display name for this state.
|
int |
getPreferredIconSize() |
Returns the preferred icon size for this state.
|
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(String displayName, int preferredIconSize)
displayName
- Display name.preferredIconSize
- Preferred icon size.public String getDisplayName()
CommandButtonDisplayState(String, int)
public int getPreferredIconSize()
CommandButtonDisplayState(String, int)
public abstract CommandButtonLayoutManager createLayoutManager(AbstractCommandButton commandButton)
commandButton
- Command button.