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 CommandButtonPresentationStateBig state.static final CommandButtonPresentationStateFit-to-icon + big stateprivate StringDisplay name for this state.static final CommandButtonPresentationStateMedium state.static final CommandButtonPresentationStateFit-to-icon + medium stateprivate intPreferred icon size for this state.static final CommandButtonPresentationStateSmall state.static final CommandButtonPresentationStateFit-to-icon + small statestatic final CommandButtonPresentationStateTile state.static final CommandButtonPresentationStateFit-to-icon + tile state -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommandButtonPresentationState(String displayName, int preferredIconSize) Creates a new command button presentation state. -
Method Summary
Modifier and TypeMethodDescriptionabstract CommandButtonLayoutManagerCreates a layout manager for this state.Returns the display name for this state.intReturns 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
-
-
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
-