edu.washington.biostr.sig.brainj3d.core.client
Class ViewCapsule
java.lang.Object
edu.washington.biostr.sig.brainj3d.core.client.ViewCapsule
- All Implemented Interfaces:
- EncapsulatesObserverables, Serializable
public class ViewCapsule
- extends Object
- implements Serializable, EncapsulatesObserverables
The view capsule encapsulates everything that needs to be
exported to the client for a View.
- Author:
- eider
- See Also:
- Serialized Form
|
Constructor Summary |
ViewCapsule(SyncSelectionModel tabs,
SyncListModel<DataKey> dataKeys,
SyncListModel<String> controlNames,
SyncListModel<String> advancedNames,
ObservableMap names2gui,
ObservableMap<DataKey,SwingHTMLObject> data2guiArr,
SyncSelectionModel dataSelection,
SyncSelectionModel controlSelection,
SyncSelectionModel advancedSelection,
SwingHTMLObject view,
String title,
Object icon,
FileType[] supportedTypes,
FileType snapshotType,
String coordinateSpace,
String firstSubject,
ObservableList<SwingHTMLObject> toolbar)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewCapsule
public ViewCapsule(SyncSelectionModel tabs,
SyncListModel<DataKey> dataKeys,
SyncListModel<String> controlNames,
SyncListModel<String> advancedNames,
ObservableMap names2gui,
ObservableMap<DataKey,SwingHTMLObject> data2guiArr,
SyncSelectionModel dataSelection,
SyncSelectionModel controlSelection,
SyncSelectionModel advancedSelection,
SwingHTMLObject view,
String title,
Object icon,
FileType[] supportedTypes,
FileType snapshotType,
String coordinateSpace,
String firstSubject,
ObservableList<SwingHTMLObject> toolbar)
getIcon
public Object getIcon()
setIcon
public void setIcon(Icon icon)
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getView
public SwingHTMLObject getView()
setView
public void setView(SwingHTMLObject view)
getObservers
public IdObject[] getObservers()
- Description copied from interface:
EncapsulatesObserverables
- Get all Observable Collections, Lists and Maps that are encapsulated in
this.
- Specified by:
getObservers in interface EncapsulatesObserverables
- Returns:
getSupportedTypes
public FileType[] getSupportedTypes()
setSupportedTypes
public void setSupportedTypes(FileType[] supportedTypes)
getAdvancedNames
public SyncListModel<String> getAdvancedNames()
- Returns:
- Returns the advancedNames.
getAdvancedSelection
public SyncSelectionModel getAdvancedSelection()
- Returns:
- Returns the advancedSelection.
getControlNames
public SyncListModel<String> getControlNames()
- Returns:
- Returns the controlNames.
getControlSelection
public SyncSelectionModel getControlSelection()
- Returns:
- Returns the controlSelection.
getData2guiArr
public ObservableMap<DataKey,SwingHTMLObject> getData2guiArr()
- Returns:
- Returns the data2guiArr.
getDataKeys
public SyncListModel<DataKey> getDataKeys()
- Returns:
- Returns the dataKeys.
getDataSelection
public SyncSelectionModel getDataSelection()
- Returns:
- Returns the dataSelection.
getNames2gui
public ObservableMap getNames2gui()
- Returns:
- Returns the names2gui.
getTabs
public SyncSelectionModel getTabs()
- Returns:
- Returns the tabs.
isEdit
public boolean isEdit()
- Returns:
- Returns the edit.
setEdit
public void setEdit(boolean edit)
- Parameters:
edit - The edit to set.
isRedo
public boolean isRedo()
setRedo
public void setRedo(boolean redo)
isUndo
public boolean isUndo()
setUndo
public void setUndo(boolean undo)
getProperties
public ObservableMap<String,Object> getProperties()
getSnapshotType
public FileType getSnapshotType()
- Returns:
- Returns the snapshotType.
accept
public boolean accept(FileGroup node,
String subject,
String coordinateSpace)
- Check to see if the given node can be added.
- Parameters:
node - coordinateSpace -
- Returns:
getCoordinateSpace
public String getCoordinateSpace()
getId
public long getId()
getToolbar
public ObservableList<SwingHTMLObject> getToolbar()
Copyright © 2006 University of Washington. All Rights Reserved.