public class DisplayPersistenceDialogCommandHandler extends AbstractLayerCommandHandler<DisplayPersistenceDialogCommand>
DisplayPersistenceDialogCommand
s.
It is used to open the corresponding dialog for save/load operations regarding the
NatTable state. Will also serve as some kind of storage for the Properties instance
holding the states.Constructor and Description |
---|
DisplayPersistenceDialogCommandHandler()
Create a new DisplayPersistenceDialogCommandHandler.
|
DisplayPersistenceDialogCommandHandler(NatTable natTable)
Create a new DisplayPersistenceDialogCommandHandler.
|
DisplayPersistenceDialogCommandHandler(Properties properties)
Create a new DisplayPersistenceDialogCommandHandler using the specified Properties
instance.
|
DisplayPersistenceDialogCommandHandler(Properties properties,
NatTable natTable)
Create a new DisplayPersistenceDialogCommandHandler using the specified Properties
instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addStateChangeListener(IStateChangedListener listener)
Add the given
IStateChangedListener to the local list of listeners. |
protected boolean |
doCommand(DisplayPersistenceDialogCommand command) |
Class<DisplayPersistenceDialogCommand> |
getCommandClass() |
Properties |
getProperties() |
void |
removeStateChangeListener(IStateChangedListener listener)
Removes the given
IStateChangedListener from the local list of listeners. |
void |
setProperties(Properties properties) |
doCommand
public DisplayPersistenceDialogCommandHandler()
public DisplayPersistenceDialogCommandHandler(NatTable natTable)
natTable
- The NatTable instance for which this handler is registered. If it is
not null
, the current state of that NatTable will be stored as
default configuration. This default configuration can't be modified anymore
in the opened dialog.public DisplayPersistenceDialogCommandHandler(Properties properties)
properties
- The Properties instance that should be used for saving and loading.public DisplayPersistenceDialogCommandHandler(Properties properties, NatTable natTable)
properties
- The Properties instance that should be used for saving and loading.natTable
- The NatTable instance for which this handler is registered. If it is
not null
, the current state of that NatTable will be stored as
default configuration. This default configuration can't be modified anymore
in the opened dialog.protected boolean doCommand(DisplayPersistenceDialogCommand command)
doCommand
in class AbstractLayerCommandHandler<DisplayPersistenceDialogCommand>
public Properties getProperties()
public void setProperties(Properties properties)
properties
- The Properties instance that should be used for saving and loading.public void addStateChangeListener(IStateChangedListener listener)
IStateChangedListener
to the local list of listeners.
The IStateChangedListener
will be registered on every PersistenceDialog
that is opened via this command handler.listener
- The listener to add.public void removeStateChangeListener(IStateChangedListener listener)
IStateChangedListener
from the local list of listeners.listener
- The listener to remove.public Class<DisplayPersistenceDialogCommand> getCommandClass()
Copyright © 2013. All Rights Reserved.