public static class SwingAction.ActionBuilder extends Object
Constructor and Description |
---|
ActionBuilder() |
ActionBuilder(Action action) |
Modifier and Type | Method and Description |
---|---|
Action |
build() |
SwingAction.ActionBuilder |
withAccelerator(KeyStroke accelerator) |
SwingAction.ActionBuilder |
withAccelerator(String accelerator) |
SwingAction.ActionBuilder |
withCommand(String command) |
SwingAction.ActionBuilder |
withEnabled(boolean enabled) |
SwingAction.ActionBuilder |
withLargeIcon(Icon largeIcon) |
SwingAction.ActionBuilder |
withLongDescription(String longDescription) |
SwingAction.ActionBuilder |
withMnemonic(int mnemonic) |
SwingAction.ActionBuilder |
withMnemonic(String mnemonic) |
SwingAction.ActionBuilder |
withName(String name) |
SwingAction.ActionBuilder |
withRunnable(CallableWithArgs<?> callable)
Deprecated.
|
SwingAction.ActionBuilder |
withRunnable(RunnableWithArgs runnable) |
SwingAction.ActionBuilder |
withSelected(boolean selected) |
SwingAction.ActionBuilder |
withShortDescription(String shortDescription) |
SwingAction.ActionBuilder |
withSmallIcon(Icon smallIcon) |
@Nonnull public SwingAction.ActionBuilder withName(@Nullable String name)
@Nonnull public SwingAction.ActionBuilder withShortDescription(@Nullable String shortDescription)
@Nonnull public SwingAction.ActionBuilder withLongDescription(@Nullable String longDescription)
@Nonnull public SwingAction.ActionBuilder withCommand(@Nullable String command)
@Nonnull public SwingAction.ActionBuilder withMnemonic(@Nullable String mnemonic)
@Nonnull public SwingAction.ActionBuilder withMnemonic(int mnemonic)
@Nonnull public SwingAction.ActionBuilder withAccelerator(@Nullable String accelerator)
@Nonnull public SwingAction.ActionBuilder withAccelerator(@Nullable KeyStroke accelerator)
@Nonnull public SwingAction.ActionBuilder withSmallIcon(@Nullable Icon smallIcon)
@Nonnull public SwingAction.ActionBuilder withLargeIcon(@Nullable Icon largeIcon)
@Nonnull @Deprecated public SwingAction.ActionBuilder withRunnable(@Nullable CallableWithArgs<?> callable)
@Nonnull public SwingAction.ActionBuilder withRunnable(@Nullable RunnableWithArgs runnable)
@Nonnull public SwingAction.ActionBuilder withEnabled(boolean enabled)
@Nonnull public SwingAction.ActionBuilder withSelected(boolean selected)