edu.ucsb.nceas.morpho.util
Class StateChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.swing.event.ChangeEvent
              |
              +--edu.ucsb.nceas.morpho.util.StateChangeEvent

public class StateChangeEvent
extends javax.swing.event.ChangeEvent

An event that represents a state change in the application, showing both the state that changed and the source of the state change.

See Also:
Serialized Form

Field Summary
static java.lang.String CLIPBOARD_HAS_DATA_TO_PASTE
          Public constant to denote that the Paste command has data in the System clipboard to 'Paste'.
static java.lang.String CLIPBOARD_HAS_NO_DATA_TO_PASTE
          Public constant to denote that the Paste command has no data in the System clipboard to 'Paste'.
static java.lang.String CREATE_DATAPACKAGE_FRAME
          Public constant to denote that a datapackage CONTAINING ONE OR MORE ENTITIES has been opened
static java.lang.String CREATE_DATAPACKAGE_FRAME_NO_VERSIONS
          Public constant to denote that a datapackage has been opened, but that no previous versions of the selected package are available
static java.lang.String CREATE_DATAPACKAGE_FRAME_SYNCHRONIZED
          Public constant to denote that a datapackage has been opened, and that the local and network versions of the package *are* in sync
static java.lang.String CREATE_DATAPACKAGE_FRAME_UNSYNCHRONIZED
          Public constant to denote that a datapackage has been opened, and that the local and network versions of the package are *not* in sync
static java.lang.String CREATE_DATAPACKAGE_FRAME_VERSIONS
          Public constant to denote that a datapackage has been opened, and that previous versions of the selected package *are* available
static java.lang.String CREATE_EDITABLE_ENTITY_DATAPACKAGE_FRAME
          Public constant to denote that a datapackage CONTAINING ONE OR MORE ASCII ENTITIES has been opened
static java.lang.String CREATE_ENTITY_DATAPACKAGE_FRAME
          Public constant to denote that a datapackage CONTAINING ENTITIES has been opened
static java.lang.String CREATE_NOENTITY_DATAPACKAGE_FRAME
          Public constant to denote that a datapackage CONTAINING NO ENTITIES OR ASCII DATA has been opened
static java.lang.String CREATE_NONEDITABLE_ENTITY_DATAPACKAGE_FRAME
          Public constant to denote that a datapackage has been opened CONTAINING ONE OR MORE ENTITIES THAT ARE NOT EDITABLE (e.g.
static java.lang.String CREATE_SEARCH_RESULT_FRAME
          Public constant to denote that a search result frame has been opened
static java.lang.String DOM_EDITOR_FINISHED_EDITING
          Public constant to denote that the DOM Editor has finished the current editing task
static java.lang.String METAVIEWER_BEGIN_EDIT
          Public constant to denote that user has issued a command to edit the metadata in the MetaData Viewer.
static java.lang.String METAVIEWER_HIDE_BUTTON_PRESSED
          Public constant to denote that the "Hide" button has been pressed in the MetaData Viewer
static java.lang.String METAVIEWER_HISTORY_BACK
          Public constant to denote that user has requested the previous document from History in the MetaData Viewer.
static java.lang.String METAVIEWER_NAVIGATION
          Public constant to denote that a navigation event has been triggered in the MetaData Viewer.
static java.lang.String SEARCH_RESULT_NONSELECTED
          Public constant to denote that no entry in a search result frame has been selected,
static java.lang.String SEARCH_RESULT_SELECTED
          Public constant to denote that an entry in a search result frame has been selected,
static java.lang.String SEARCH_RESULT_SELECTED_NO_VERSIONS
          Public constant to denote that an entry in a search result frame has been selected, and that no previous versions of the selected package are available
static java.lang.String SEARCH_RESULT_SELECTED_SYNCHRONIZED
          Public constant to denote that an entry in a search result frame has been selected, and that the local and network versions of the selected package *are* in sync
static java.lang.String SEARCH_RESULT_SELECTED_UNSYNCHRONIZED
          Public constant to denote that an entry in a search result frame has been selected, and that the local and network versions of the selected package are *not* in sync
static java.lang.String SEARCH_RESULT_SELECTED_VERSIONS
          Public constant to denote that an entry in a search result frame has been selected, and that previous versions of the selected package *are* available
static java.lang.String SELECT_DATATABLE_COLUMN
          Public constant to denote that a data table column has been selected
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StateChangeEvent(java.awt.Component source, java.lang.String changedState)
          Construct a new StateChange event.
 
Method Summary
 java.lang.String getChangedState()
          Get the value of the changedState for this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SELECT_DATATABLE_COLUMN

public static java.lang.String SELECT_DATATABLE_COLUMN
Public constant to denote that a data table column has been selected

CREATE_DATAPACKAGE_FRAME

public static java.lang.String CREATE_DATAPACKAGE_FRAME
Public constant to denote that a datapackage CONTAINING ONE OR MORE ENTITIES has been opened

CREATE_NOENTITY_DATAPACKAGE_FRAME

public static java.lang.String CREATE_NOENTITY_DATAPACKAGE_FRAME
Public constant to denote that a datapackage CONTAINING NO ENTITIES OR ASCII DATA has been opened

CREATE_ENTITY_DATAPACKAGE_FRAME

public static java.lang.String CREATE_ENTITY_DATAPACKAGE_FRAME
Public constant to denote that a datapackage CONTAINING ENTITIES has been opened

CREATE_EDITABLE_ENTITY_DATAPACKAGE_FRAME

public static java.lang.String CREATE_EDITABLE_ENTITY_DATAPACKAGE_FRAME
Public constant to denote that a datapackage CONTAINING ONE OR MORE ASCII ENTITIES has been opened

CREATE_NONEDITABLE_ENTITY_DATAPACKAGE_FRAME

public static java.lang.String CREATE_NONEDITABLE_ENTITY_DATAPACKAGE_FRAME
Public constant to denote that a datapackage has been opened CONTAINING ONE OR MORE ENTITIES THAT ARE NOT EDITABLE (e.g. binary data such as images etc, or possibly a package that has entity metadata but the corresponding data cannot be read)

CREATE_DATAPACKAGE_FRAME_NO_VERSIONS

public static java.lang.String CREATE_DATAPACKAGE_FRAME_NO_VERSIONS
Public constant to denote that a datapackage has been opened, but that no previous versions of the selected package are available

CREATE_DATAPACKAGE_FRAME_VERSIONS

public static java.lang.String CREATE_DATAPACKAGE_FRAME_VERSIONS
Public constant to denote that a datapackage has been opened, and that previous versions of the selected package *are* available

CREATE_DATAPACKAGE_FRAME_UNSYNCHRONIZED

public static java.lang.String CREATE_DATAPACKAGE_FRAME_UNSYNCHRONIZED
Public constant to denote that a datapackage has been opened, and that the local and network versions of the package are *not* in sync

CREATE_DATAPACKAGE_FRAME_SYNCHRONIZED

public static java.lang.String CREATE_DATAPACKAGE_FRAME_SYNCHRONIZED
Public constant to denote that a datapackage has been opened, and that the local and network versions of the package *are* in sync

CREATE_SEARCH_RESULT_FRAME

public static java.lang.String CREATE_SEARCH_RESULT_FRAME
Public constant to denote that a search result frame has been opened

SEARCH_RESULT_SELECTED

public static java.lang.String SEARCH_RESULT_SELECTED
Public constant to denote that an entry in a search result frame has been selected,

SEARCH_RESULT_NONSELECTED

public static java.lang.String SEARCH_RESULT_NONSELECTED
Public constant to denote that no entry in a search result frame has been selected,

SEARCH_RESULT_SELECTED_UNSYNCHRONIZED

public static java.lang.String SEARCH_RESULT_SELECTED_UNSYNCHRONIZED
Public constant to denote that an entry in a search result frame has been selected, and that the local and network versions of the selected package are *not* in sync

SEARCH_RESULT_SELECTED_SYNCHRONIZED

public static java.lang.String SEARCH_RESULT_SELECTED_SYNCHRONIZED
Public constant to denote that an entry in a search result frame has been selected, and that the local and network versions of the selected package *are* in sync

SEARCH_RESULT_SELECTED_NO_VERSIONS

public static java.lang.String SEARCH_RESULT_SELECTED_NO_VERSIONS
Public constant to denote that an entry in a search result frame has been selected, and that no previous versions of the selected package are available

SEARCH_RESULT_SELECTED_VERSIONS

public static java.lang.String SEARCH_RESULT_SELECTED_VERSIONS
Public constant to denote that an entry in a search result frame has been selected, and that previous versions of the selected package *are* available

METAVIEWER_HIDE_BUTTON_PRESSED

public static java.lang.String METAVIEWER_HIDE_BUTTON_PRESSED
Public constant to denote that the "Hide" button has been pressed in the MetaData Viewer

METAVIEWER_NAVIGATION

public static java.lang.String METAVIEWER_NAVIGATION
Public constant to denote that a navigation event has been triggered in the MetaData Viewer. This could be any navigation event, such as clicking on a URL or traversing the History using the Back button etc.

METAVIEWER_HISTORY_BACK

public static java.lang.String METAVIEWER_HISTORY_BACK
Public constant to denote that user has requested the previous document from History in the MetaData Viewer.

METAVIEWER_BEGIN_EDIT

public static java.lang.String METAVIEWER_BEGIN_EDIT
Public constant to denote that user has issued a command to edit the metadata in the MetaData Viewer.

CLIPBOARD_HAS_DATA_TO_PASTE

public static java.lang.String CLIPBOARD_HAS_DATA_TO_PASTE
Public constant to denote that the Paste command has data in the System clipboard to 'Paste'. This should enable the Paste menu item

CLIPBOARD_HAS_NO_DATA_TO_PASTE

public static java.lang.String CLIPBOARD_HAS_NO_DATA_TO_PASTE
Public constant to denote that the Paste command has no data in the System clipboard to 'Paste'. This should disable the Paste menu item

DOM_EDITOR_FINISHED_EDITING

public static java.lang.String DOM_EDITOR_FINISHED_EDITING
Public constant to denote that the DOM Editor has finished the current editing task
Constructor Detail

StateChangeEvent

public StateChangeEvent(java.awt.Component source,
                        java.lang.String changedState)
Construct a new StateChange event.
Parameters:
source - if the source of the state change is a java.awt.Component, then a reference to that Component should be passed. However, if the object whose state has changed is *not* an instance of java.awt.Component, pass a reference to the closest java.awt.Component (which could be a java.awt.Container in which the object is embedded.
changedState - the label for the state that has changed
Method Detail

getChangedState

public java.lang.String getChangedState()
Get the value of the changedState for this event.
Returns:
the String value for the changed state


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.