edu.washington.biostr.sig.brainj3d.core.client
Class ViewCapsule

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean accept(FileGroup node, String subject, String coordinateSpace)
          Check to see if the given node can be added.
 SyncListModel<String> getAdvancedNames()
           
 SyncSelectionModel getAdvancedSelection()
           
 SyncListModel<String> getControlNames()
           
 SyncSelectionModel getControlSelection()
           
 String getCoordinateSpace()
           
 ObservableMap<DataKey,SwingHTMLObject> getData2guiArr()
           
 SyncListModel<DataKey> getDataKeys()
           
 SyncSelectionModel getDataSelection()
           
 Object getIcon()
           
 long getId()
           
 ObservableMap getNames2gui()
           
 IdObject[] getObservers()
          Get all Observable Collections, Lists and Maps that are encapsulated in this.
 ObservableMap<String,Object> getProperties()
           
 FileType getSnapshotType()
           
 FileType[] getSupportedTypes()
           
 SyncSelectionModel getTabs()
           
 String getTitle()
           
 ObservableList<SwingHTMLObject> getToolbar()
           
 SwingHTMLObject getView()
           
 boolean isEdit()
           
 boolean isRedo()
           
 boolean isUndo()
           
 void setEdit(boolean edit)
           
 void setIcon(Icon icon)
           
 void setRedo(boolean redo)
           
 void setSupportedTypes(FileType[] supportedTypes)
           
 void setTitle(String title)
           
 void setUndo(boolean undo)
           
 void setView(SwingHTMLObject view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.