adams.gui.event
Class SortSetupEvent

java.lang.Object
  extended by java.util.EventObject
      extended by adams.gui.event.SortSetupEvent
All Implemented Interfaces:
Serializable

public class SortSetupEvent
extends EventObject

Event that gets sent when the SortPanel setup changes.

Version:
$Revision: 6363 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Nested Class Summary
static class SortSetupEvent.EventType
          The type of event.
 
Field Summary
protected  SortDefinitionPanel m_SortDefinitionPanel
          the definition panel that was added/removed.
protected  SortSetupEvent.EventType m_Type
          what type of event occurred.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SortSetupEvent(SortPanel source, SortDefinitionPanel definition, SortSetupEvent.EventType type)
          Initializes the event.
 
Method Summary
 SortDefinitionPanel getSortDefinitionPanel()
          Returns the SortDefinitionPanel that was added/removed.
 SortPanel getSortPanel()
          Returns the SortPanel that triggered the event
 SortSetupEvent.EventType getType()
          Returns the event type.
 String toString()
          Returns a short description of the object.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_SortDefinitionPanel

protected SortDefinitionPanel m_SortDefinitionPanel
the definition panel that was added/removed.


m_Type

protected SortSetupEvent.EventType m_Type
what type of event occurred.

Constructor Detail

SortSetupEvent

public SortSetupEvent(SortPanel source,
                      SortDefinitionPanel definition,
                      SortSetupEvent.EventType type)
Initializes the event.

Parameters:
source - the SortPanel that triggered the event
definition - the definition panel that was added or removed, null if reset
type - the type of event
Method Detail

getSortPanel

public SortPanel getSortPanel()
Returns the SortPanel that triggered the event

Returns:
the panel

getSortDefinitionPanel

public SortDefinitionPanel getSortDefinitionPanel()
Returns the SortDefinitionPanel that was added/removed.

Returns:
the panel, null in case of reset

getType

public SortSetupEvent.EventType getType()
Returns the event type.

Returns:
true if the panel was added

toString

public String toString()
Returns a short description of the object.

Overrides:
toString in class EventObject
Returns:
the description


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.