org.eclipse.nebula.widgets.nattable.persistence.command
Class StateChangeEvent

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.persistence.command.StateChangeEvent

public class StateChangeEvent
extends Object

Event that will be fired if the NatTable states/view configurations are changed using the PersistenceDialog.

Will only contain the name of the view configuration (might also be known as state prefix) and the type of change made to it. It will not carry the Properties itself.

Author:
Dirk Fauth
See Also:
IStateChangedListener

Nested Class Summary
static class StateChangeEvent.StateChangeType
          Enum for the type of change that was done to a NatTable view configuration.
 
Constructor Summary
StateChangeEvent(String viewConfigName, StateChangeEvent.StateChangeType type)
          Create a new StateChangeEvent for the given view configuration name and type of change.
 
Method Summary
 StateChangeEvent.StateChangeType getType()
           
 String getViewConfigName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateChangeEvent

public StateChangeEvent(String viewConfigName,
                        StateChangeEvent.StateChangeType type)
Create a new StateChangeEvent for the given view configuration name and type of change.

Parameters:
viewConfigName - The name of the view configuration (or prefix) that has been changed.
type - The type of change that was done to a view configuration.
Method Detail

getType

public StateChangeEvent.StateChangeType getType()
Returns:
The type of change that was done to a view configuration.

getViewConfigName

public String getViewConfigName()
Returns:
The name of the view configuration (or prefix) that has been changed.


Copyright © 2015. All rights reserved.