public class IlvPaletteLoadAction extends IlvPaletteAction
Modifier and Type | Field and Description |
---|---|
static ImageIcon |
ACTION_ICON
Icon representation of the action
|
static String |
ACTION_NAME
The name of the action
|
static String |
ACTION_TOOLTIP
A short description of what this action does
|
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
IlvPaletteLoadAction(Component parent,
IlvPaletteManager paletteManager)
Creates the action and sets the palette manager
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Process the action
|
File |
getCurrentDir()
Returns current file chooser directory.
|
boolean |
isEnabled()
Returns true if the action is enabled.
|
void |
setCurrentDir(File dir)
Sets default file chooser directory.
|
getPaletteManager, getParent, setPaletteManager
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
public static final String ACTION_NAME
public static final String ACTION_TOOLTIP
public static final ImageIcon ACTION_ICON
public IlvPaletteLoadAction(Component parent, IlvPaletteManager paletteManager)
parent
- The parent of dialog(s) created by this action.paletteManager
- The palette manager associated with this action.public void setCurrentDir(File dir)
dir
- the new directorypublic File getCurrentDir()
public boolean isEnabled()
isEnabled
in interface Action
isEnabled
in class AbstractAction
Action.isEnabled()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class IlvPaletteAction
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.