|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pushingpixels.flamingo.api.common.CommandButtonDisplayState
public abstract class CommandButtonDisplayState
Display state for command buttons. This class provides a number of core display states, and it is possible to create additional custom states by using the protected constructor and implementing the relevant abstract methods.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
CommandButtonDisplayState(java.lang.String displayName,
int preferredIconSize)
Creates a new element state. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
protected CommandButtonDisplayState(java.lang.String displayName, int preferredIconSize)
displayName
- Display name.preferredIconSize
- Preferred icon size.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |