Class BaseCommand.BaseBuilder<T extends BaseCommand<MCM>,MCM extends BaseCommandMenuContentModel,B extends BaseCommand.BaseBuilder<T,MCM,B>>
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.model.BaseCommand.BaseBuilder<T,MCM,B>
-
- Direct Known Subclasses:
BasicRibbonBandUI.BandCollapseCommand.Builder
,ColorSelectorCommand.Builder
,Command.Builder
,RibbonApplicationMenuCommand.Builder
- Enclosing class:
- BaseCommand<MCM extends BaseCommandMenuContentModel>
public abstract static class BaseCommand.BaseBuilder<T extends BaseCommand<MCM>,MCM extends BaseCommandMenuContentModel,B extends BaseCommand.BaseBuilder<T,MCM,B>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandAction
action
protected BaseCommand.CommandActionPreview
actionPreview
protected RichTooltip
actionRichTooltip
protected java.lang.String
extraText
protected RadianceIcon.Factory
iconFactory
protected boolean
isActionEnabled
protected boolean
isSecondaryEnabled
protected boolean
isToggle
protected boolean
isToggleSelected
protected MCM
secondaryContentModel
protected BaseCommand.SecondaryLifecycle
secondaryLifecycle
protected RichTooltip
secondaryRichTooltip
protected java.lang.Object
tag
protected java.lang.String
text
protected CommandToggleGroupModel
toggleGroupModel
-
Constructor Summary
Constructors Constructor Description BaseBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build()
protected void
configureBaseCommand(BaseCommand<MCM> command)
B
inToggleGroup(CommandToggleGroupModel toggleGroup)
B
inToggleGroupAsSelected(CommandToggleGroupModel toggleGroup)
B
setAction(CommandAction action)
B
setActionEnabled(boolean isActionEnabled)
B
setActionPreview(BaseCommand.CommandActionPreview actionPreview)
B
setActionRichTooltip(RichTooltip actionRichTooltip)
B
setExtraText(java.lang.String extraText)
B
setIconFactory(RadianceIcon.Factory iconFactory)
B
setSecondaryContentModel(MCM secondaryContentModel)
B
setSecondaryEnabled(boolean isSecondaryEnabled)
B
setSecondaryLifecycle(BaseCommand.SecondaryLifecycle secondaryLifecycle)
B
setSecondaryRichTooltip(RichTooltip secondaryRichTooltip)
B
setTag(java.lang.Object tag)
B
setText(java.lang.String text)
B
setToggle()
B
setToggleSelected(boolean toggleSelected)
-
-
-
Field Detail
-
text
protected java.lang.String text
-
extraText
protected java.lang.String extraText
-
iconFactory
protected RadianceIcon.Factory iconFactory
-
action
protected CommandAction action
-
actionPreview
protected BaseCommand.CommandActionPreview actionPreview
-
actionRichTooltip
protected RichTooltip actionRichTooltip
-
secondaryContentModel
protected MCM extends BaseCommandMenuContentModel secondaryContentModel
-
secondaryLifecycle
protected BaseCommand.SecondaryLifecycle secondaryLifecycle
-
secondaryRichTooltip
protected RichTooltip secondaryRichTooltip
-
isActionEnabled
protected boolean isActionEnabled
-
isSecondaryEnabled
protected boolean isSecondaryEnabled
-
isToggle
protected boolean isToggle
-
isToggleSelected
protected boolean isToggleSelected
-
toggleGroupModel
protected CommandToggleGroupModel toggleGroupModel
-
tag
protected java.lang.Object tag
-
-
Method Detail
-
configureBaseCommand
protected void configureBaseCommand(BaseCommand<MCM> command)
-
build
public abstract T build()
-
setText
public B setText(java.lang.String text)
-
setIconFactory
public B setIconFactory(RadianceIcon.Factory iconFactory)
-
setExtraText
public B setExtraText(java.lang.String extraText)
-
setAction
public B setAction(CommandAction action)
-
setActionRichTooltip
public B setActionRichTooltip(RichTooltip actionRichTooltip)
-
setSecondaryLifecycle
public B setSecondaryLifecycle(BaseCommand.SecondaryLifecycle secondaryLifecycle)
-
setSecondaryRichTooltip
public B setSecondaryRichTooltip(RichTooltip secondaryRichTooltip)
-
setActionEnabled
public B setActionEnabled(boolean isActionEnabled)
-
setSecondaryEnabled
public B setSecondaryEnabled(boolean isSecondaryEnabled)
-
setToggle
public B setToggle()
-
setToggleSelected
public B setToggleSelected(boolean toggleSelected)
-
inToggleGroup
public B inToggleGroup(CommandToggleGroupModel toggleGroup)
-
inToggleGroupAsSelected
public B inToggleGroupAsSelected(CommandToggleGroupModel toggleGroup)
-
setActionPreview
public B setActionPreview(BaseCommand.CommandActionPreview actionPreview)
-
setTag
public B setTag(java.lang.Object tag)
-
-