Class CommandButtonPresentationState
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.CommandButtonPresentationState
-
public abstract class CommandButtonPresentationState extends java.lang.ObjectPresentation state for command buttons. This class provides a number of core presentation states, and it is possible to create additional custom states by using the protected constructor and implementing the relevant abstract methods.
-
-
Field Summary
Fields Modifier and Type Field Description static CommandButtonPresentationStateBIGBig state.static CommandButtonPresentationStateFIT_TO_ICONFit to icon state.static CommandButtonPresentationStateMEDIUMMedium state.static CommandButtonPresentationStateSMALLSmall state.static CommandButtonPresentationStateTILETile state.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommandButtonPresentationState(java.lang.String displayName, int preferredIconSize)Creates a new element state.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CommandButtonLayoutManagercreateLayoutManager(JCommandButton commandButton)Creates a layout manager for the specified button.java.lang.StringgetDisplayName()Returns the display name for this state.intgetPreferredIconSize()Returns the preferred icon size for this state.java.lang.StringtoString()
-
-
-
Field Detail
-
FIT_TO_ICON
public static final CommandButtonPresentationState FIT_TO_ICON
Fit to icon state.
-
BIG
public static final CommandButtonPresentationState BIG
Big state.
-
TILE
public static final CommandButtonPresentationState TILE
Tile state.
-
MEDIUM
public static final CommandButtonPresentationState MEDIUM
Medium state.
-
SMALL
public static final CommandButtonPresentationState SMALL
Small state.
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
Returns the display name for this state.- Returns:
- The display name for this state.
- See Also:
CommandButtonPresentationState(String, int)
-
getPreferredIconSize
public int getPreferredIconSize()
Returns the preferred icon size for this state.- Returns:
- The preferred icon size for this state.
- See Also:
CommandButtonPresentationState(String, int)
-
createLayoutManager
public abstract CommandButtonLayoutManager createLayoutManager(JCommandButton commandButton)
Creates a layout manager for the specified button.- Parameters:
commandButton- Command button.- Returns:
- A layout manager for the specified button.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-