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 classBaseCommand.BaseBuilder<T extends BaseCommand<MCM>, MCM extends BaseCommandMenuContentModel, B extends BaseCommand.BaseBuilder<T,MCM, B>> static interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CommandActionprivate BaseCommand.CommandActionPreviewprivate RichTooltipprivate Stringprivate RadianceIcon.Factoryprivate booleanprivate booleanprivate booleanprivate booleanprivate MCMprivate BaseCommand.SecondaryLifecycleprivate RichTooltipprivate Objectprivate Stringprivate CommandToggleGroupModelprivate final WeakChangeSupportStores the listeners on this model.private final WeakPropertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified change listener to track changes to the underlying source.voidprotected voidprivate voidgetTag()getText()booleanbooleanbooleanbooleanisToggle()booleanvoidRemoves the specified change listener from tracking changes to the underlying source.voidvoidsetAction(CommandAction actionListener) voidsetActionEnabled(boolean actionEnabled) voidsetActionPreview(BaseCommand.CommandActionPreview actionPreview) voidsetActionRichTooltip(RichTooltip actionRichTooltip) voidsetExtraText(String extraText) voidsetIconFactory(RadianceIcon.Factory iconFactory) voidsetSecondaryEnabled(boolean secondaryEnabled) voidsetSecondaryRichTooltip(RichTooltip secondaryRichTooltip) voidvoidvoidsetToggleSelected(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:ChangeAwareAdds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to add.- See Also:
-
removeChangeListener
Description copied from interface:ChangeAwareRemoves the specified change listener from tracking changes to the underlying source.- Specified by:
removeChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to remove.- See Also:
-
fireStateChanged
private void fireStateChanged() -
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfacePropertyChangeAware
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfacePropertyChangeAware
-