ColorSelectorCommand.Builder, Command.Builderpublic abstract static class Command.BaseBuilder<T extends Command,B extends Command.BaseBuilder<T,B>>
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected CommandAction |
action |
|
protected Command.CommandActionPreview |
actionPreview |
|
protected RichTooltip |
actionRichTooltip |
|
protected org.pushingpixels.neon.api.icon.ResizableIcon.Factory |
disabledIconFactory |
|
protected java.lang.String |
extraText |
|
protected org.pushingpixels.neon.api.icon.ResizableIcon.Factory |
iconFactory |
|
protected boolean |
isActionEnabled |
|
protected boolean |
isSecondaryEnabled |
|
protected boolean |
isToggle |
|
protected boolean |
isToggleSelected |
|
protected CommandMenuContentModel |
secondaryContentModel |
|
protected RichTooltip |
secondaryRichTooltip |
|
protected java.lang.String |
text |
|
protected CommandToggleGroupModel |
toggleGroupModel |
| Constructor | Description |
|---|---|
BaseBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
configureBaseCommand(Command command) |
|
B |
inToggleGroup(CommandToggleGroupModel toggleGroup) |
|
B |
inToggleGroupAsSelected(CommandToggleGroupModel toggleGroup) |
|
B |
setAction(CommandAction action) |
|
B |
setActionEnabled(boolean isActionEnabled) |
|
B |
setActionPreview(Command.CommandActionPreview actionPreview) |
|
B |
setActionRichTooltip(RichTooltip actionRichTooltip) |
|
B |
setDisabledIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory) |
|
B |
setExtraText(java.lang.String extraText) |
|
B |
setIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory) |
|
B |
setSecondaryContentModel(CommandMenuContentModel secondaryContentModel) |
|
B |
setSecondaryEnabled(boolean isSecondaryEnabled) |
|
B |
setSecondaryRichTooltip(RichTooltip secondaryRichTooltip) |
|
B |
setText(java.lang.String text) |
|
B |
setToggle() |
|
B |
setToggleSelected(boolean toggleSelected) |
protected java.lang.String text
protected java.lang.String extraText
protected org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory
protected org.pushingpixels.neon.api.icon.ResizableIcon.Factory disabledIconFactory
protected CommandAction action
protected Command.CommandActionPreview actionPreview
protected RichTooltip actionRichTooltip
protected CommandMenuContentModel secondaryContentModel
protected RichTooltip secondaryRichTooltip
protected boolean isActionEnabled
protected boolean isSecondaryEnabled
protected boolean isToggle
protected boolean isToggleSelected
protected CommandToggleGroupModel toggleGroupModel
protected void configureBaseCommand(Command command)
public B setText(java.lang.String text)
public B setIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory)
public B setDisabledIconFactory(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory)
public B setExtraText(java.lang.String extraText)
public B setAction(CommandAction action)
public B setActionRichTooltip(RichTooltip actionRichTooltip)
public B setSecondaryContentModel(CommandMenuContentModel secondaryContentModel)
public B setSecondaryRichTooltip(RichTooltip secondaryRichTooltip)
public B setActionEnabled(boolean isActionEnabled)
public B setSecondaryEnabled(boolean isSecondaryEnabled)
public B setToggle()
public B setToggleSelected(boolean toggleSelected)
public B inToggleGroup(CommandToggleGroupModel toggleGroup)
public B inToggleGroupAsSelected(CommandToggleGroupModel toggleGroup)
public B setActionPreview(Command.CommandActionPreview actionPreview)