Created by IntelliJ IDEA.
Creates a new ActionCommand with the specified id that is bound to the
specified
CommandManager
.
Provides common methods required by all builders.
Base class for all command builders.
Created by IntelliJ IDEA.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Creates a new JPanel
with a double buffer
and a flow layout.
Implementations of this class are used used to construct face instances from the commands
configuration file.
This is the base implementation of file commands.
Creates a new AbstractFileCommand with the specified file filters.
The command provides generic file open behaviour.
Creates a new command with the specified id and FileFilter
Creates a new command with the specified id and list of FileFilter
Creates a new command with the specified id and FileFilter
.
Creates a new command with the specified id and list of FileFilter
.
This class is used to manage the insertion of a single group member into a java.awt.Container
.
Provides a custom group implementation that manages a list of recently used files.
Creates a new anonymous group.
Creates a new group with the specified id.
Constructs a new group with the specified Id that is bound to the default command manager.
This implementation provides the basic infrastructure for translating the icon
values to method calls.
This command provides generic behaviour for the standard "save as" operation.
Creates new instance with the specified id and FileFilter
.
Creates new instance with the specified id and FileFilters
.
Creates new instance with the specified id and FileFilter
.
Creates new instance with the specified id and FileFilter
list.
Constructs a new Abstract visitor using the specified visitation mode.
Accepts files that end with the specified extension.
ActionCommands provide the base for all executable commands.
Creates a new anonymous ActionCommand.
Creates a new ActionCommand with the specified id that is bound to the
specified
CommandManager
.
Created by IntelliJ IDEA.
This interface allows the interception of command execution.
Adds a command to the groups expansion point and rebuilds all dependant widgets.
Adds a command to the groups expansion point and optionally rebuilds all
dependant widgets.
Adds all the specified files to the list.
This method is responsible for adding this members buttons to the specified container.
Adds a the specified face to the command.
Inserts a glue member into the group and rebuilds all dependant widgets.
Inserts a glue member into the group and optionally rebuilds all dependant widgets.
Adds the specified group to this groups expansion point as an inline member.
Adds the specified group to this groups expansion point as an inline member.
Creates and adds a new empty face with the specified name.
Invoked whenever a command is added to a group.
Adds a property change listener to this command.
Adds a property change listener to this command.
Inserts a separator into the command list and rebuilds all the groups dependant widgets.
Inserts a separator into the command list and optionally rebuilds all the groups dependant widgets.
Adds a new javax.swing.event.UndoableEditListener
to this command.
Adds a new javax.swing.event.UndoableEditListener
to this command.
Invoked after the command is executed.
Invoked after the command is executed.
Called just after a commands execution.
Get the commands invoking window and deactivates its glass pane.
Called after a command has completed execution.
Called just after a commands execution.
Applies the selected state to the toggle and updates all its buttons.
Checks if the the two values are equal.
Overrides the default implementation to also installFace an ActionListener
to the button.
Attaches this command to the specified button.
Attempts to set the selected state of the command.
Created by IntelliJ IDEA.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Invoked before the command is executed.
Invoked before the command is executed.
Called just prior to a commands execution.
Does nothing and returns true
Get the commands invoking window and activates its glass pane.
Called just prior to a commands execution.
Called just prior to a commands execution.
Binds this group to the specified container.
Binds this group to the specified container.
Invoked on the first time the command is executed.
Interprets the accelerator string for the specified command and returns
a representative KeyStroke.
Builds an <a> tag for the specified command using the commands text attribute to
populate the links text and the short description to populate the tooltip.
Builds an <a> tag for the specified command using the commands text attribute to
populate the links text and the short description to populate the tooltip.
Builds an <a> tag for the specified command but that uses the specified text instead
of the Commands normal text.
Scans the specified face element, extracts all the faces specified and adds them to
the face.
Configures the text properties of the face from the specified face element.
BUTTON - static field in class org.pietschy.command.
Face This interface defines factory methods that all commands use when creating buttons.
Creates and returns an iterator over the buttons.
Checks that the specified file has an extension defined.
This is the base class for all Commands.
Creates a new anonymous command.
Constructs a new Command object with the specified Id.
Creaets a new delegate with the specified id.
Fired both before and after a command executes.
Constructs a new event for the specified
Command
.
Creates a new anonymous GroupCommand.
Creates a new command groups with the specified id.
A javax.swing.event.HyperlinkListener
that will interogate the href of the
link and fire the appropriate command.
Creates a new
HyperlinkListener
that will search for commands using the
specified default
CommandManager
instance.
Creates a new
HyperlinkListener
that will search for commands using the
specified
CommandManager
.
The CommandListener interface provides notification of a commands execution.
The CommandManger is the core of the GUI Command libarary.
Constructs and initializes the command manager.
Constructs and initializes the command manager.
Constructs and initializes the command manager.
Constructs and initializes the command manager.
Pass on events from our parent.
Invoked when a new command is registered with the container.
Overrides the default behaviour to build a group of commands the control the visibility
of all other registered commands.
Overrides the default behaviour to build a group of commands the control the visibility
of all other registered commands.
Creates a new anonymous CompoundCommand.
Constructs a new Command object with the specified Id.
Creates a new command with the specified Id.
Configures this instance to manage the specified button container using the factory and faceid provided.
Initialises the command from the current loaded set of properties.
Implementers of this class are responsible for building a
Face
element for the
specified configuration data.
Implementers of this class are responsible for building a
Face
element for the
specified configuration data.
Safely sets the accelerator for the specified menu.
Configures the specified button using the specified
RenderContext
.
Configures the specified button using the specified
RenderContext
.
Configures the specified button using the specified
RenderContext
.
Configures the appearance of the specified button.
Reconfigures the appearances of all buttons bound to this command.
Reconfigures all the buttons attached to this command that have the specified face.
This method is called to configure newly created buttons.
This method is called to configureMenu newly created buttons.
Configures the specified button using the specified
RenderContext
.
Configures the specified button using the specified
RenderContext
.
Configures the text attributes of the button.
This method is called to confirm the save if the selected file already exists.
This is method can be overridden to prevent the action from proceeding.
Checks if this group contains the specified command.
? * A factory method for JButton
s.
Creates a new button that is attached to the command.
Create a new button for this command using the specified
ButtonFactory
.
Creates a new button using the specified id's for the button and menu faces and the specified factories for the
button and menu items.
Creates a new button that is attached to the command using the specified face.
Creates a new vertical JButtonBar using the "page-selector" face.
Creates a new JButtonBar with the specified orientation using the "page-selector" face.
Creates a new JButtonBar with the specified orientation using the specified face.
A factory method for JCheckBox
s.
Creates a checkbox for this command using the default button factory and the button face.
Creates a checkbox for this command using the specifed button factory and the button face.
Creates a checkbox for this command using the default button factory and the specified face.
Creates a new JCheckBoxMenuItem
.
Constructs a new
Face
witht the specified
FaceId
and that uses the
specified
FaceManager
to locate parent faces.
Creates a new empty face with the specified
id
and uses the specified
CommandManager
for locating its parent.
Creates a new anonymous group that uses the specified container.
Creates a new group with the specified Id that uses the specified container.
Converts the the iconValue into a method call on this class.
Creates a new icon based on the specified parameter string.
Creates a new menu item for this command.
Creates a new menu item for this command using the specified
Face
and the specified
MenuFactory
.
Creates a new menu item for this command.
Creates a new JCheckBoxMenuItem
that is bound to this command.
Creates a new menu item for this command using the specifed
Face
name and the
currently configured
MenuFactory
.
Creates a new JPopupMenu
.
Creates a popup menu for this group using the specified
Face
id and
MenuFactory
.
A factory method for JRadioButton
s.
Creates a new JRadioButton
.
Creates a new JRadioButton
.
Creates a new JRadioButtonMenuItem
.
A factory method for ToggleButtons.
Creates a new JToggleButton
.
Creates a new JToggleButton
.
Creates a new
exclusive group
with the specified Id that uses
the specified container.
Creates a new JToolBar
bound to this GroupCommand.
A factory method for toolbars.
Creates a toolbar using the specified facename for the toolbar and the
specified toolbar factory for the buttons.
DefaultGlassPaneHander is an implementation of
GlassPaneHandler
that simply
displays the wait cursor and beeps when ever the user clicks.
The visitor traverse the entire graph of commands under the top level group.
DEFAULT - static field in class org.pietschy.command.
Face The DefaultFaceRender provides the base methods for configuring buttons and
menus as well as a standard implementation that is suitable for most platforms.
DefaultGlassPaneHander is an implementation of
GlassPaneHandler
that simply
displays the wait cursor and beeps when ever the user clicks.
Provides a default implementation of
GroupContainerManager
that removes all elemnents and rebuilds
from scratch.
Returns an instance of the CommandManager.
Provides a default implementation of
MenuFactory
that creates standard
swing menus.
Creates a new factory that creates non-floatable toolbars and rollover enabled buttons.
The DelgateContainer interface marks a JComponent as being a provider of
CommandDelegate
s.
DelegateManager class acts as a singleton factory for all
DelegateMediator
instances.
This event is fired whenever a
DelegateMediator
s current container
list changes.
Delegating commands allow a single command to delegate its behaviour to another object.
Creates a new DelegatingCommand with the specified id and that is bound to the
specifed
CommandManager
.
Creates a new DelegatingCommand with the specified id.
Demo - class org.pietschy.command.demo.
Demo GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Constructs a new frame that is initially invisible.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Creates a new JPanel
with a double buffer
and a flow layout.
Overrides the default implementation to remove the ActionListener
installed by
attach(javax.swing.AbstractButton, String)
.
Detaches this command from the specified button.
This method removes any listeners from this command managers parent (if it exists).
Gets the rendering context for the specified component, or null if it doesn't
have one.
Gets the modifiers that are used to create the accelerators.
Gets an action that mirrors the default face of this command.
Gets an action that mirrors this the specified face of this command.
Gets the value of this commands actionCommand string.
Convenience method for getHint(ActionCommand.HINT_ACTION_EVENT)
.
Gets a list of face names that can be used in place of the specified name if it
hasn't been registered with the command.
Overrides the default implementation to provide defaults for the page-selector face if
it hasn't been specified.
Gets an attribute from an element.
Gets the button factory to use for this command.
Gets the default
ButtonFactory
to use for buttons created by this command manager.
This method will find the first button from this command in the specified container.
Gets the class loader the library is to use.
Gets the ActionCommand that clears the files from the group.
Gets the command that was registered.
Gets the command associated with the HoverEvent.
Gets the specifed command from this container.
Gets the specifed command from this container.
Gets the command that opens the specified file.
Gets the associated
CommandManager
for the builder to use as required.
Gets the commands managers current condition evaluator.
Gets the context object specified in the constructor.
Gets this commands default face.
Gets this commands default face.
Gets the number of files the group will display at any one time.
Returns a string representing the elements position in the command heirarchy.
Gets the textural value of an element.
Searches the container hierarchy and gets the first executor it finds.
Gets the file that is currently excluded from the list or null if all the
files are included.
Gets the Face associated with the hover event.
Gets the best matching face for the specified name.
Gets the face with the specified name.
The face id to use when creating new buttons or menus.
Retreives the faces that are registered for the specified parent id.
The factory to use when createing new buttons or menus.
Gets the file choose the command will use.
Gets the text to display in the dialog that confirms file overwrite.
Gets all files in the group.
Gets the specifed group from the container.
Gets any hints that may have been specified by a call to
execute(java.util.Map)
or that have been explicitly set by
putHint(Object,Object)
.
Gets any hints that may have been specified by a call to
execute(java.util.Map)
or that have been explicitly set by
putHint(Object,Object)
.
Gets any hints that may have been specified by a call to
execute(java.util.Map)
or that have been explicitly set by
putHint(Object,Object)
.
Gets the horizontal text position of this face.
Gets the vertical text position of this face.
Gets this commands identifier.
Gets the Id of this delegate.
Gets the Insets
this factory is applying to the buttons it creates.
Gets any arguments required by the delegate.
Convenience method to get the object that invoked the command.
Convenience method to get the Window ancestor of the object that invoked the command.
Gets the container this instance is managing.
Gets a new logger for the command library.
This is a convenience method that gets the
DelegateMediator
based on the specified
components window ancestor.
Gets the DelegateMediator for the specified window.
Returns the number of members in this group.
Gets the
MenuFactory
to use for this command when creating menu items.
Gets the
MenuFactory
that is to be used by commands to create menu items.
Convenience method to get any modifiers that were specified.
Gets an
ActionCommand
that when invoked will redo the last undone
UndoableEditEvent
.
Gets the java.util.ResourceBundle
for resolving i18n configuration parameters.
Returns the Test as displayed by attachments of this command.
Gets the toolbar factory to use for this command.
Gets the default
ToolbarFactory
to be used by commands to create toolbars and their
associated buttons.
Gets the javax.swing.event.UndoableEditListener
s regstered with this command.
Gets the javax.swing.event.UndoableEditListener
s regstered with this command.
Gets an
ActionCommand
that when invoked will undo the last registered
UndoableEditEvent
.
Gets the vertical text position of this face.
GlassPaneHanders are used by the ModalInterceptor to configure the glasspane
while a long running process is in progress.
GlassPaneInterceptor provides a simple interceptor that activates the glass pane before
a command executes and deactivates it afterward.
Creates a new interceptor that uses the specified component as the glass pane.
A helper class that GroupCommands use to populate and manages its popup/command Container
s.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
This factory interface is used by the library when ever a new GroupCommand is required.
This interface is used to monitor changes in the members of a
CommandGroup
.
GroupMembers are responsible for managing the children of a
CommandGroup
.
This factory interface is used by the library to create instances of
GroupMember
.
This method is invoked if the user cancels the file chooser dialog.
Main entry point for command subclasses that must be implemented to provide
command specific behaviour.
Main entry point for command subclasses that must be implemented to provide
command specific behaviour.
Main entry point for command subclasses that must be implemented to provide
command specific behaviour.
This method is called whenever the Command is executed.
Executes all the sub commands.
This implementation will call
build()
on the first execution and delegate
the handling of the request to
lazyExecute()
.
Main entry point for command subclasses that must be implemented to provide
command specific behaviour.
Main entry point for command subclasses that must be implemented to provide
command specific behaviour.
This method is called whenever the Command is executed.
Delegates to
performEdit()
and notifies any
UndoableEditListener
s of any edit
that performEdit returns.
Called to handle any exceptions that occur during the invocation of the delegate method.
Entry for subclasses to handle the selection process.
Entry for subclasses to handle the selection process.
Entry for subclasses to handle the selection process.
Entry for subclasses to handle the selection process.
Handles a particular selection request on a particular command.
The key for the action event hint.
The key for the invoker hint.
The key for the invoker window hint.
The key for the modifiers hint.
Notification that the mouse has moved off a command.
Notification that the mouse has moved off a command.
Fired when the mouse enters and exits a command.
This interface provides notification of when the mouse have hovered over a Command.
Notification that the mouse has moved over a command.
Notification that the mouse has moved over a command.
HTML - static field in class org.pietschy.command.
Face Icon factories are used by the command manager to create icons whenever the
icon type is specified as icon-factory
.
The exception thrown when an icon can't be loaded from a command configuration file.
ID - static field in class org.pietschy.command.demo.about.
AboutCommand Configures this instance to manage the specified menu container using the factory and faceid provided.
A convenience method for adding the shared interceptor to the specified command.
Adds a the specified face to the command.
Installs a shortcut into the components input and action maps using the
accelerator specified by the default face.
Installs a shortcut into the components input and action maps using the
accelerator of the specified face.
Returns an instance of the CommandManager.
Checks if the list will have accelerator for each entry.
Used to configure javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean)
.
Checks if the specified
Command
can be added to this group.
Ensures that only
ToggleCommand
instances are added to this group.
Checks if this is an anonymous command.
Tests if this command is attached to the specified button.
Checks if the renderer will be configuring mnemonics on buttons.
Checks if this command will be centering the chooser on the invoker window.
Checks if the specified element is empty.
Checks if this group allows the last selected command to be deselected.
Checks if this groups allows empty selection.
Checks the enabled state of this action and it's attached buttons.
Checks if this delegate is enabled.
Checks if this factory is creating floatable toolbars.
Checks if the factory is building focusable toolbars.
Checks if the command identified by the specified id is a group.
Tests if the specified element has been conditionally included.
Checks if the group should include files for which java.io.File.exists()
returns
false.
Checks if the specified window contains the the on which that raised the hover event.
A convenience method for GUI Commands to check if we're running in an
apple Mac environment.
Checks if the renderer will be configuring mnemonics on menu items.
Checks if tooltip are globally enabled on menus.
Checks if tooltip are globally enabled on menus.
Checks if multiple selection is enabled.
Tests if this face's name is the same as the specified name.
Check if the the other window is a child or is related to the parent.
Checks if the last FileFilter
used by the user will be remembered.
Checks if this factory is creating rollover enabled buttons.
Checks the the current button context is rendering a toolbar.
Checks if the buttons of this command are visible.
The LazyCommand defers the construction of the command until the first execution.
Creates a new anonymous ActionCommand.
Creates a new ActionCommand with the specified id that is bound to the
specified
CommandManager
.
Invoked after build and then again whenever the command is executed.
Load the command definitions in the specified file.
Load the command definitions in the specified file.
Load the command definitions using the specified reader.
Load the command definitions using the specified reader.
Loads the groups file list from the specified preference node.
Load the command definitions from the specified URL.
Load the command definitions from the specified URL.
Thrown when the
CommandManager
is unable to load a configuration file.
Constructs a new exception with the specified detail message and
cause.
Loads the icon specified by the element.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
This class extends
ToggleCommandGroup
to provide a widget based on the
JButtonBar component from http://l2fprod.com/.
Creates a new group with the specified Id and that uses the specified
CommandManager
.
Parses a string of the form '<parentId>[<faceName>]' to generate
a new faceid based on the current face.
Parses a string of the form '<parentId>[<faceName>]'.
pcs - field in class org.pietschy.command.
Face Subclasses must override to perform the actual edit.
This method is called when the user selects one or more files to open.
Called to perform the save operation.
POPUP - static field in class org.pietschy.command.
Face Notifies all the javax.swing.event.UndoableEditListener
s of the undoable event.
Notifies all the javax.swing.event.UndoableEditListener
s of the undoable event.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Adds the specified hint to be available the next time execute
is called.
Adds the specified hints to be available the next time execute
is called.
Called to trigger the manager to rebuild its container using the specified collection of
GroupMember
s.
The ReflectionCommand invokes a target method using reflection.
Creates a new reflection command that invokess a static no arg method.
Creates a new reflection command that invokes a static class method with arguments.
Creates a new reflection command that invokes a non static method on the specified object.
Creates a new reflection command that invokes a static no arg method.
Registers this command with the manager so it can be accessed by the
rest of the application.
This interface allows the
DelegateManager
to determine which windows should be
considered for command container discovery during focus events.
Removes this specified command from the group and rebuilds all dependant widgets.
Removes this specified command from the group and optionally rebuilds all dependant widgets.
Invoked whenever a command is remvoved from a group.
Removes the listener from this command
Removes the listener from this command
Removes an javax.swing.event.UndoableEditListener
from this command.
Removes an javax.swing.event.UndoableEditListener
from this command.
This command will traverse a group heirarchy and remove the specified command.
Constructs an new RemoveVisitor that will deeply traverse the group and all its child groups.
Constructs an new RemoveVisitor that will traverse the group according the to visit mode.
Renders the specified button using the currently configured
FaceRenderer
.
The RenderContext constains the information about buttons and menus that are
created by the library.
The RenderManager provides a simple static method that can be used to configure the specified
button using the current
FaceRenderer
.
This method will find the first button from this command in the javax.swing.RootPaneContainer
and set
it to be the default button by calling javax.swing.JRootPane.setDefaultButton
.
Warning this method does nothing as toggle commands are implmented using
JToggleButton
s and default buttons must be instances of JButton
.
This method will find the first button from this command in the specified container
and call javax.swing.JComponent.requestFocus
followed by Container.repaint
.
Resest this group back to its original state before any commands were programatically added.
Resest this group back to its original state before any commands were programatically added.
Creates a new ResetVisitor that will traverse the group according to the specified mode.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Created by IntelliJ IDEA.
Configures the group to installFace accelerators for the list.
Sets the modifiers that are used to create the accelerators.
Used to configure javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean)
.
Sets the value of this commands actionCommand string.
Sets the
ButtonFactory
for this command to use for default when creating
buttons.
Sets if the renderer will be configuring mnemonics on buttons.
Configures if command will centre the chooser over the invoker or centre in the desktop.
Sets the class loader the libary is to use for opertations like loading icons from the
classpath.
Sets the associated
CommandManager
for the builder to use as required.
Sets the commands managers condition evaluator.
Configures the default factory to be used when creating buttons.
Configures the default factory to be used when creating menus.
Sets the discriminator to use when tracking focus events.
Configures the default factory to be used when creating toolbars and toolbar buttons.
Sets the delegate for this command to use.
Sets the delegate id this command is to track.
Loads the specified demo panel into the main frame.
Configures the number of files to display in the group.
Configures if this group allows the last selected command to be deselected.
Sets if this groups allows empty selection.
Updates the enabled state of this command and any attached buttons.
Sets the enabled state of the delegate.
Sets the file to exclude from the list.
Sets the file to exclude from the list.
Configures if this factory is creating floatable toolbars.
Configure the factory to create focusable toolbars.
Sets the horizontal position for the text on this face.
Configures if the group should include files for which java.io.File.exists()
returns
false.
Sets the Insets
this factory will apply to the buttons it creates.
Sets the log factory to use for creating new logger instances.
Sets the
MenuFactory
to use for menus created by this command.
Sets the
MenuFactory
that is to be used by commands to create menu items.
Sets if the renderer will be configuring mnemonics on menu items.
Configures the current menu tooltip state and notifies all
faces
that the
state has changed.
Configures the current menu tooltip state and notifies all
faces
that the
state has changed.
Sets the mnemonic to use based on it character index in the string.
Configures if the JFileChooser
allows multiple selection.
Sets the discriminator to use when tracking focus events.
Configures this command to remember the FileFilter
last used by the user.
Sets the
FaceRenderer
to use when configuring buttons and menus.
Sets the java.util.ResourceBundle
for resolving i18n configuration parameters.
Configures if this factory is creating rollover enabled buttons.
Attempts to set the selected state of the command.
Sets the current static container list to be the specified container.
Sets the current static container list to the specified list.
Sets the GlassPaneInterceptorStrategy
this interceptor is to use.
Sets the text for the face.
Sets the
ToolbarFactory
for this command to use for default when creating
buttons on toolbars.
Sets the
ToolbarFactory
that will be the default used by all commands when creating
toolbars and their associated buttons.
Configures the controller to use the specified
UndoContext
.
Sets the vertical position for the text on this face.
Sets the command and all it's buttons to be visible or not.
The visitor will visit the immediate children only (including inline children).
Gets the shared instance of this interceptor.
Called to display the JFileChooser
.
Created by IntelliJ IDEA.
Created by IntelliJ IDEA.
Stores the groups file list to the specified preference node.
SwingActionDelete is an instance of
CommandDelegate
that invokes an existing swing action.
Creates a new delegate with the specified id that invokes the specfied javax.swing.Action
.
Creates a new delegate with the specified id that invokes the javax.swing.Action
in the
specified javax.swing.ActionMap
with the specified action key.
The toggle command class implements a command that has a selected state.
Creates a new anonymous ToggleCommand.
Creates a new toggle command with the specified Id that is bound to
the specified
CommandManager
.
ToggleGroupCommand managed mutually exclusive collections of
ToggleCommands
.
Creates a new anonymous command group with the specified id.
Creates a new command groups with the specified id.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
TOOLBAR - static field in class org.pietschy.command.
Face This interface defines factory methods for creating all types of buttons for use
on a JToolBar
.
Returns a string representation of the object.
Returns a string representation of the object.
This method configures the command to track delegates in the specified java.awt.Window
.
UndoableActionCommands provide a default implementation for commands that can be undone.
Creates a new anonymous UndoableActionCommand.
Creates a new command with the specified id that is bound to the
specified
CommandManager
.
Notifies the controller that an undoable event has happened.
UndoableToggleCommands provide a default implementation for toggle commands that can be undone.
Creates a new anonymous UndoableToggleCommand.
Creates a new command with the specified id that is bound to the
specified
CommandManager
.
UndoContext extends UndoManager
to provide state change notifications to listners.
Creates a new undo controller.
Creates a new controller using the specified
UndoContext
.
Create a new controller using the specified ids for the
undo
and
redo
commands
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
A convenience method for removing the shared interceptor from the specified command.
Removes the short cut installed by a previous call to installShortCut(javax.swing.JComponent, int)
Removes the short cut installed by a previous call to installShortCut(javax.swing.JComponent, String, int)