|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.swing.SwingAction.ActionBuilder
public static class SwingAction.ActionBuilder
A builder for actions.
| Field Summary | |
|---|---|
private KeyStroke |
accelerator
|
private Action |
action
|
private String |
command
|
private boolean |
enabled
|
private boolean |
enabledSet
|
private Icon |
largeIcon
|
private String |
longDescription
|
private int |
mnemonic
|
private boolean |
mnemonicSet
|
private String |
name
|
private Runnable |
runnable
|
private boolean |
selected
|
private boolean |
selectedSet
|
private String |
shortDescription
|
private Icon |
smallIcon
|
| Constructor Summary | |
SwingAction.ActionBuilder()
|
|
SwingAction.ActionBuilder(Action action)
|
|
| Method Summary | |
|---|---|
Action
|
build()
|
ActionBuilder
|
withAccelerator(String accelerator)
|
ActionBuilder
|
withAccelerator(KeyStroke accelerator)
|
ActionBuilder
|
withClosure(Closure runnable)
|
ActionBuilder
|
withCommand(String command)
|
ActionBuilder
|
withEnabled(boolean enabled)
|
ActionBuilder
|
withLargeIcon(Icon largeIcon)
|
ActionBuilder
|
withLongDescription(String longDescription)
|
ActionBuilder
|
withMnemonic(String mnemonic)
|
ActionBuilder
|
withMnemonic(int mnemonic)
|
ActionBuilder
|
withName(String name)
|
ActionBuilder
|
withRunnable(Runnable runnable)
|
ActionBuilder
|
withRunnable(RunnableWithArgs runnable)
|
ActionBuilder
|
withSelected(boolean selected)
|
ActionBuilder
|
withShortDescription(String shortDescription)
|
ActionBuilder
|
withSmallIcon(Icon smallIcon)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private KeyStroke accelerator
private Action action
private String command
private boolean enabled
private boolean enabledSet
private Icon largeIcon
private String longDescription
private int mnemonic
private boolean mnemonicSet
private String name
private Runnable runnable
private boolean selected
private boolean selectedSet
private String shortDescription
private Icon smallIcon
| Constructor Detail |
|---|
public SwingAction.ActionBuilder()
public SwingAction.ActionBuilder(Action action)
| Method Detail |
|---|
public Action build()
public ActionBuilder withAccelerator(String accelerator)
public ActionBuilder withAccelerator(KeyStroke accelerator)
public ActionBuilder withClosure(Closure runnable)
public ActionBuilder withCommand(String command)
public ActionBuilder withEnabled(boolean enabled)
public ActionBuilder withLargeIcon(Icon largeIcon)
public ActionBuilder withLongDescription(String longDescription)
public ActionBuilder withMnemonic(String mnemonic)
public ActionBuilder withMnemonic(int mnemonic)
public ActionBuilder withName(String name)
public ActionBuilder withRunnable(Runnable runnable)
public ActionBuilder withRunnable(RunnableWithArgs runnable)
public ActionBuilder withSelected(boolean selected)
public ActionBuilder withShortDescription(String shortDescription)
public ActionBuilder withSmallIcon(Icon smallIcon)
Groovy Documentation