|
|||||||||
| Home >> All >> org >> greenstone >> gatherer >> [ cdm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.greenstone.gatherer.cdm
Class MetadataSetManager

java.lang.Objectjavax.swing.AbstractListModel
javax.swing.DefaultListModel
org.greenstone.gatherer.cdm.DynamicListModel
org.greenstone.gatherer.cdm.MetadataSetManager
- All Implemented Interfaces:
- javax.swing.ComboBoxModel, javax.swing.ListModel, org.greenstone.gatherer.msm.MSMListener, java.io.Serializable
- public class MetadataSetManager
- extends DynamicListModel
- implements org.greenstone.gatherer.msm.MSMListener
- extends DynamicListModel
Unlike its namesake in the msm package, this class really only knows how to produce a simple visual representation of the currently imported metadata sets. It is also read-only, so should be fairly straight forward.
- Version:
- 2.3
| Nested Class Summary | |
private class |
MetadataSetManager.Control
This class creates and lays-out the various controls for reviewing the metadata sets, and their commands as they would appear in the collection configuration file. |
private class |
MetadataSetManager.SetWrapper
Provides a convience wrapper around a metadata set, that allows it to appear in the JList the same way it would in the collection configuration file. |
| Field Summary | |
private MetadataSetManager.Control |
controls
The visual contols used to review the metadata sets. |
private org.greenstone.gatherer.Gatherer |
gatherer
A reference to the Gatherer. |
private DynamicListModel |
model
A reference to ourselves so our inner classes can refer to us. |
| Fields inherited from class org.greenstone.gatherer.cdm.DynamicListModel |
|
| Fields inherited from class javax.swing.DefaultListModel |
|
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
MetadataSetManager(org.greenstone.gatherer.Gatherer gatherer)
Constructor. |
|
| Method Summary | |
void |
destroy()
Destructor. |
void |
elementChanged(org.greenstone.gatherer.msm.MSMEvent event)
Called when an element is changed within a set in the MSM, prompting us to refresh our list of elements being shown. |
private java.lang.String |
get(java.lang.String key)
Method to retrieve a phrase from the dictionary based on a key. |
private java.lang.String |
get(java.lang.String key,
java.lang.String[] args)
Method to retrieve a phrase from the dictionary based on a key. |
MetadataSetManager.Control |
getControls()
A method for retrieve the controls for this manager. |
void |
invalidateControls()
A method to invalidate the current set of controls, as they become obselete. |
private void |
loadMetadataSets()
Retrieves the current list of loaded metadata sets, and builds a list model around them. |
void |
metadataChanged(org.greenstone.gatherer.msm.MSMEvent event)
Called when a metadata value has undergone significant change. |
void |
setChanged(org.greenstone.gatherer.msm.MSMEvent event)
Called when a set is added or removed from the MSM. |
java.awt.Rectangle |
setSelectedElement(java.lang.String element)
Select the selected element, given its name, and return the bounds of the selection. |
java.lang.String |
toString()
Prints out the contents of this manager, as they would appear in the collection configuration file. |
void |
valueChanged(org.greenstone.gatherer.msm.MSMEvent event)
Called when a significant change has occured to a value tree for a certain element, however we take no further action. |
| Methods inherited from class org.greenstone.gatherer.cdm.DynamicListModel |
addElement, getSelectedItem, refresh, setAutoOrder, setSelectedItem |
| Methods inherited from class javax.swing.DefaultListModel |
add, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, trimToSize |
| Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.ListModel |
addListDataListener, getElementAt, getSize, removeListDataListener |
| Field Detail |
controls
private MetadataSetManager.Control controls
- The visual contols used to review the metadata sets.
gatherer
private org.greenstone.gatherer.Gatherer gatherer
- A reference to the Gatherer.
model
private DynamicListModel model
- A reference to ourselves so our inner classes can refer to us.
| Constructor Detail |
MetadataSetManager
public MetadataSetManager(org.greenstone.gatherer.Gatherer gatherer)
- Constructor.
| Method Detail |
destroy
public void destroy()
- Destructor. Remove any references of this class from persistant objects.
elementChanged
public void elementChanged(org.greenstone.gatherer.msm.MSMEvent event)
- Called when an element is changed within a set in the MSM, prompting us to refresh our list of elements being shown.
- Specified by:
elementChangedin interfaceorg.greenstone.gatherer.msm.MSMListener
getControls
public MetadataSetManager.Control getControls()
- A method for retrieve the controls for this manager.
invalidateControls
public void invalidateControls()
- A method to invalidate the current set of controls, as they become obselete.
metadataChanged
public void metadataChanged(org.greenstone.gatherer.msm.MSMEvent event)
- Called when a metadata value has undergone significant change.
- Specified by:
metadataChangedin interfaceorg.greenstone.gatherer.msm.MSMListener
setChanged
public void setChanged(org.greenstone.gatherer.msm.MSMEvent event)
- Called when a set is added or removed from the MSM.
- Specified by:
setChangedin interfaceorg.greenstone.gatherer.msm.MSMListener
setSelectedElement
public java.awt.Rectangle setSelectedElement(java.lang.String element)
- Select the selected element, given its name, and return the bounds of the selection. Used during search and replace.
toString
public java.lang.String toString()
- Prints out the contents of this manager, as they would appear in the collection configuration file.
valueChanged
public void valueChanged(org.greenstone.gatherer.msm.MSMEvent event)
- Called when a significant change has occured to a value tree for a certain element, however we take no further action.
- Specified by:
valueChangedin interfaceorg.greenstone.gatherer.msm.MSMListener
get
private java.lang.String get(java.lang.String key)
- Method to retrieve a phrase from the dictionary based on a key.
get
private java.lang.String get(java.lang.String key, java.lang.String[] args)
- Method to retrieve a phrase from the dictionary based on a key.
loadMetadataSets
private void loadMetadataSets()
- Retrieves the current list of loaded metadata sets, and builds a list model around them.
|
|||||||||
| Home >> All >> org >> greenstone >> gatherer >> [ cdm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC