Class CommandButtonPresentationState
java.lang.Object
org.pushingpixels.radiance.component.api.common.CommandButtonPresentationState
Presentation state for command buttons. In addition to a number of core presentation states
provided by the static fields of this class, it is possible to create additional custom states by
using the protected constructor and implementing the relevant abstract
methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandButtonPresentationState
Big state.static final CommandButtonPresentationState
Fit-to-icon + big stateprivate String
Display name for this state.static final CommandButtonPresentationState
Medium state.static final CommandButtonPresentationState
Fit-to-icon + medium stateprivate int
Preferred icon size for this state.static final CommandButtonPresentationState
Small state.static final CommandButtonPresentationState
Fit-to-icon + small statestatic final CommandButtonPresentationState
Tile state.static final CommandButtonPresentationState
Fit-to-icon + tile state -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CommandButtonPresentationState
(String displayName, int preferredIconSize) Creates a new command button presentation state. -
Method Summary
Modifier and TypeMethodDescriptionabstract CommandButtonLayoutManager
Creates a layout manager for this state.Returns the display name for this state.int
Returns the preferred icon size for this state.toString()
-
Field Details
-
BIG
Big state. -
BIG_FIT_TO_ICON
Fit-to-icon + big state -
TILE
Tile state. -
TILE_FIT_TO_ICON
Fit-to-icon + tile state -
MEDIUM
Medium state. -
MEDIUM_FIT_TO_ICON
Fit-to-icon + medium state -
SMALL
Small state. -
SMALL_FIT_TO_ICON
Fit-to-icon + small state -
preferredIconSize
private int preferredIconSizePreferred icon size for this state.- See Also:
-
displayName
Display name for this state.- See Also:
-
-
Constructor Details
-
CommandButtonPresentationState
Creates a new command button presentation state.- Parameters:
displayName
- Display name.preferredIconSize
- Preferred icon size.
-
-
Method Details
-
getDisplayName
Returns the display name for this state.- Returns:
- The display name for this state.
- See Also:
-
getPreferredIconSize
public int getPreferredIconSize()Returns the preferred icon size for this state.- Returns:
- The preferred icon size for this state.
- See Also:
-
createLayoutManager
Creates a layout manager for this state.- Returns:
- A layout manager for this state.
-
toString
-