Class Command.BaseBuilder<T extends Command,B extends Command.BaseBuilder<T,B>>
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.model.Command.BaseBuilder<T,B>
-
- Direct Known Subclasses:
ColorSelectorCommand.Builder,Command.Builder
- Enclosing class:
- Command
public abstract static class Command.BaseBuilder<T extends Command,B extends Command.BaseBuilder<T,B>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandActionactionprotected Command.CommandActionPreviewactionPreviewprotected RichTooltipactionRichTooltipprotected org.pushingpixels.neon.api.icon.ResizableIcon.FactorydisabledIconFactoryprotected java.lang.StringextraTextprotected org.pushingpixels.neon.api.icon.ResizableIcon.FactoryiconFactoryprotected booleanisActionEnabledprotected booleanisSecondaryEnabledprotected booleanisToggleprotected booleanisToggleSelectedprotected CommandMenuContentModelsecondaryContentModelprotected RichTooltipsecondaryRichTooltipprotected java.lang.Stringtextprotected CommandToggleGroupModeltoggleGroupModel
-
Constructor Summary
Constructors Constructor Description BaseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureBaseCommand(Command command)BinToggleGroup(CommandToggleGroupModel toggleGroup)BinToggleGroupAsSelected(CommandToggleGroupModel toggleGroup)BsetAction(CommandAction action)BsetActionEnabled(boolean isActionEnabled)BsetActionPreview(Command.CommandActionPreview actionPreview)BsetActionRichTooltip(RichTooltip actionRichTooltip)BsetDisabledIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory)BsetExtraText(java.lang.String extraText)BsetIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory)BsetSecondaryContentModel(CommandMenuContentModel secondaryContentModel)BsetSecondaryEnabled(boolean isSecondaryEnabled)BsetSecondaryRichTooltip(RichTooltip secondaryRichTooltip)BsetText(java.lang.String text)BsetToggle()BsetToggleSelected(boolean toggleSelected)
-
-
-
Field Detail
-
text
protected java.lang.String text
-
extraText
protected java.lang.String extraText
-
iconFactory
protected org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory
-
disabledIconFactory
protected org.pushingpixels.neon.api.icon.ResizableIcon.Factory disabledIconFactory
-
action
protected CommandAction action
-
actionPreview
protected Command.CommandActionPreview actionPreview
-
actionRichTooltip
protected RichTooltip actionRichTooltip
-
secondaryContentModel
protected CommandMenuContentModel secondaryContentModel
-
secondaryRichTooltip
protected RichTooltip secondaryRichTooltip
-
isActionEnabled
protected boolean isActionEnabled
-
isSecondaryEnabled
protected boolean isSecondaryEnabled
-
isToggle
protected boolean isToggle
-
isToggleSelected
protected boolean isToggleSelected
-
toggleGroupModel
protected CommandToggleGroupModel toggleGroupModel
-
-
Method Detail
-
configureBaseCommand
protected void configureBaseCommand(Command command)
-
setText
public B setText(java.lang.String text)
-
setIconFactory
public B setIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory)
-
setDisabledIconFactory
public B setDisabledIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory)
-
setExtraText
public B setExtraText(java.lang.String extraText)
-
setAction
public B setAction(CommandAction action)
-
setActionRichTooltip
public B setActionRichTooltip(RichTooltip actionRichTooltip)
-
setSecondaryContentModel
public B setSecondaryContentModel(CommandMenuContentModel secondaryContentModel)
-
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(Command.CommandActionPreview actionPreview)
-
-