|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scuflui.shared.ModelMap
public class ModelMap
Map of the models present in the workbench associated with their names, together with the ability to manipulate this. Contains, from version 1.5 onwards, methods to set and notify components of changes to the underlying set of named models. A 'model' can be any Object that has an effect on the UI
| Nested Class Summary | |
|---|---|
static interface |
ModelMap.ModelChangeListener
Register with the static class to inform workbench like systems that the underlying map of named model objects has been altered in some way. |
| Field Summary | |
|---|---|
static java.lang.String |
CURRENT_PERSPECTIVE
Used as a modelName for setModel() and getNamedModel() - notes the current active perspective in the GUI. |
static java.lang.String |
CURRENT_WORKFLOW
Used as a modelName for setModel() and getNamedModel() - notes the current active workflow in the GUI. |
| Method Summary | |
|---|---|
void |
addModelListener(ModelMap.ModelChangeListener listener)
|
static ModelMap |
getInstance()
|
java.util.Set<java.lang.Object> |
getModels()
Return the model set |
java.lang.Object |
getNamedModel(java.lang.String string)
|
void |
removeModelListener(ModelMap.ModelChangeListener listener)
|
void |
setModel(java.lang.String modelName,
java.lang.Object model)
Manipulate the current model map |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CURRENT_WORKFLOW
public static final java.lang.String CURRENT_PERSPECTIVE
| Method Detail |
|---|
public static ModelMap getInstance()
public java.util.Set<java.lang.Object> getModels()
public void setModel(java.lang.String modelName,
java.lang.Object model)
modelName - name of the model to act onmodel - null to destroy the model or a reference to the
new model to set. If it didn't already exist a modelCreated
event will be fired otherwise modelChanged is called.public void addModelListener(ModelMap.ModelChangeListener listener)
public void removeModelListener(ModelMap.ModelChangeListener listener)
public java.lang.Object getNamedModel(java.lang.String string)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||