| java.lang.Object uk.co.whisperingwind.framework.ActionFactory
All known Subclasses: uk.co.whisperingwind.vienna.ConfigActionFactory, uk.co.whisperingwind.vienna.SchemaActionFactory, uk.co.whisperingwind.vienna.MainActionFactory,
ActionFactory | public class ActionFactory (Code) | | Factory class to create Action instances. This makes it easier to
handle Actions, particularly in JDK 1.2 (Action was extended in JSK
1.3). The JDK 1.3 version of Action still doesn't behave as I would
like, in particular, it assignes the same icon to a menu item and a
button. I would rather it used a smaller icon on the menu item.
|
Inner Class :public class ToggleAction extends DefaultAction | |
Constructor Summary | |
public | ActionFactory(String path) Construct an ActionFactory which will look for button images in
the specified path. |
Method Summary | |
public DefaultAction | createAction(String command) Create and return a DefaultAction for the given command.
Parameters: command - the name of the command to create. | protected ImageIcon | getIcon(String fileName) Get an ImageIcon from the given file name.
Parameters: fileName - the name of the image file (not the full path). |
ActionFactory | public ActionFactory(String path)(Code) | | Construct an ActionFactory which will look for button images in
the specified path.
Parameters: path - path to a directory containing button images. |
createAction | public DefaultAction createAction(String command)(Code) | | Create and return a DefaultAction for the given command.
Parameters: command - the name of the command to create. a DefaultAction for the requested command,null if the command is unknown. |
getIcon | protected ImageIcon getIcon(String fileName)(Code) | | Get an ImageIcon from the given file name.
Parameters: fileName - the name of the image file (not the full path). ImageIcon for the requested file name. |
|
|