public class IlvPaletteSaveAsAction extends IlvPaletteAction
setPalette(IlvPalette palette)
method.
The palette is saved by the palette manager associated with this action.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 |
---|
IlvPaletteSaveAsAction(Component parent,
IlvPaletteManager paletteManager)
Creates the action to save the palette.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Process the action
|
IlvPalette |
getPalette()
Returns the palette on which this action is performed.
|
void |
setPalette(IlvPalette palette)
Sets the palette to save.
|
getPaletteManager, getParent, setPaletteManager
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final String ACTION_NAME
public static final String ACTION_TOOLTIP
public static final ImageIcon ACTION_ICON
public IlvPaletteSaveAsAction(Component parent, IlvPaletteManager paletteManager)
parent
- The parent of dialog(s) created by this action.paletteManager
- The palette manager associated with this action.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class IlvPaletteAction
public IlvPalette getPalette()
public void setPalette(IlvPalette palette)
palette
- The palette to save.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.