public static class SwingAction.ActionBuilder
extends java.lang.Object
Constructor and Description |
---|
ActionBuilder() |
ActionBuilder(javax.swing.Action action) |
public ActionBuilder()
@Nonnull public ActionBuilder(@Nullable javax.swing.Action action)
@Nonnull public SwingAction.ActionBuilder withName(@Nullable java.lang.String name)
@Nonnull public SwingAction.ActionBuilder withShortDescription(@Nullable java.lang.String shortDescription)
@Nonnull public SwingAction.ActionBuilder withLongDescription(@Nullable java.lang.String longDescription)
@Nonnull public SwingAction.ActionBuilder withCommand(@Nullable java.lang.String command)
@Nonnull public SwingAction.ActionBuilder withMnemonic(@Nullable java.lang.String mnemonic)
@Nonnull public SwingAction.ActionBuilder withMnemonic(int mnemonic)
@Nonnull public SwingAction.ActionBuilder withAccelerator(@Nullable java.lang.String accelerator)
@Nonnull public SwingAction.ActionBuilder withAccelerator(@Nullable javax.swing.KeyStroke accelerator)
@Nonnull public SwingAction.ActionBuilder withSmallIcon(@Nullable javax.swing.Icon smallIcon)
@Nonnull public SwingAction.ActionBuilder withLargeIcon(@Nullable javax.swing.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)
@Nonnull public javax.swing.Action build()