Class BaseCommand<MCM extends BaseCommandMenuContentModel>
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.BaseCommand<MCM>
- All Implemented Interfaces:
ChangeAware
,ContentModel
,PropertyChangeAware
- Direct Known Subclasses:
BasicRibbonBandUI.BandCollapseCommand
,ColorSelectorCommand
,Command
,RibbonApplicationMenuCommand
public abstract class BaseCommand<MCM extends BaseCommandMenuContentModel>
extends Object
implements ContentModel, ChangeAware, PropertyChangeAware
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
BaseCommand.BaseBuilder<T extends BaseCommand<MCM>,
MCM extends BaseCommandMenuContentModel, B extends BaseCommand.BaseBuilder<T, MCM, B>> static interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CommandAction
private BaseCommand.CommandActionPreview
private RichTooltip
private String
private RadianceIcon.Factory
private boolean
private boolean
private boolean
private boolean
private MCM
private BaseCommand.SecondaryLifecycle
private RichTooltip
private Object
private String
private CommandToggleGroupModel
private final WeakChangeSupport
Stores the listeners on this model.private final WeakPropertyChangeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified change listener to track changes to the underlying source.void
protected void
private void
getTag()
getText()
boolean
boolean
boolean
boolean
isToggle()
boolean
void
Removes the specified change listener from tracking changes to the underlying source.void
void
setAction
(CommandAction actionListener) void
setActionEnabled
(boolean actionEnabled) void
setActionPreview
(BaseCommand.CommandActionPreview actionPreview) void
setActionRichTooltip
(RichTooltip actionRichTooltip) void
setExtraText
(String extraText) void
setIconFactory
(RadianceIcon.Factory iconFactory) void
setSecondaryEnabled
(boolean secondaryEnabled) void
setSecondaryRichTooltip
(RichTooltip secondaryRichTooltip) void
void
void
setToggleSelected
(boolean isToggleSelected)
-
Field Details
-
text
-
extraText
-
iconFactory
-
action
-
actionPreview
-
isActionEnabled
private boolean isActionEnabled -
isToggle
private boolean isToggle -
isToggleSelected
private boolean isToggleSelected -
actionRichTooltip
-
secondaryContentModel
-
secondaryLifecycle
-
secondaryRichTooltip
-
isSecondaryEnabled
private boolean isSecondaryEnabled -
toggleGroupModel
-
tag
-
weakChangeSupport
Stores the listeners on this model. -
weakPropertyChangeSupport
-
-
Constructor Details
-
BaseCommand
protected BaseCommand()
-
-
Method Details
-
checkConsistency
protected void checkConsistency() -
getText
-
setText
-
getIconFactory
-
setIconFactory
-
getExtraText
-
setExtraText
-
getAction
-
setAction
-
getActionRichTooltip
-
setActionRichTooltip
-
hasSecondaryContent
public boolean hasSecondaryContent() -
getSecondaryContentModel
-
getSecondaryLifecycle
-
getSecondaryRichTooltip
-
setSecondaryRichTooltip
-
isActionEnabled
public boolean isActionEnabled() -
setActionEnabled
public void setActionEnabled(boolean actionEnabled) -
isSecondaryEnabled
public boolean isSecondaryEnabled() -
setSecondaryEnabled
public void setSecondaryEnabled(boolean secondaryEnabled) -
isToggle
public boolean isToggle() -
isToggleSelected
public boolean isToggleSelected() -
setToggleSelected
public void setToggleSelected(boolean isToggleSelected) -
getToggleGroupModel
-
getActionPreview
-
setActionPreview
-
getTag
-
setTag
-
addChangeListener
Description copied from interface:ChangeAware
Adds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListener
in interfaceChangeAware
- Parameters:
l
- Change listener to add.- See Also:
-
removeChangeListener
Description copied from interface:ChangeAware
Removes the specified change listener from tracking changes to the underlying source.- Specified by:
removeChangeListener
in interfaceChangeAware
- Parameters:
l
- Change listener to remove.- See Also:
-
fireStateChanged
private void fireStateChanged() -
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfacePropertyChangeAware
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfacePropertyChangeAware
-