uk.ac.kcl.cch.jb.pliny.parts
Interface IButtonHolderPart

All Superinterfaces:
org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.core.runtime.IAdaptable
All Known Implementing Classes:
LinkableObjectPart

public interface IButtonHolderPart
extends org.eclipse.gef.GraphicalEditPart

identifes that this GEF edit part displays buttons that manage the switching between open(expanded) and minimized display, and between displaying the map/reference area and the content area.

Author:
John Bradley

Field Summary
 
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Method Summary
 BaseObject getHeldObject()
          returns the BaseObject object that is the model for this editPart.
 boolean getMapStatus()
          returns the current reference/content display status of the edit part.
 void openFullEditor()
          requests the opening of the full editor for the surrogate of the LinkableOject associated with this GEF editpart.
 void switchMapStatus()
          toggles reference/content display status of the edit part.
 void switchOpenStatus()
          toggles open/mininized status of the edit part.
 
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
 
Methods inherited from interface org.eclipse.gef.EditPart
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

switchOpenStatus

public void switchOpenStatus()
toggles open/mininized status of the edit part.


openFullEditor

public void openFullEditor()
requests the opening of the full editor for the surrogate of the LinkableOject associated with this GEF editpart.


switchMapStatus

public void switchMapStatus()
toggles reference/content display status of the edit part.


getMapStatus

public boolean getMapStatus()
returns the current reference/content display status of the edit part.

Returns:
true if reference (map) display is currently set.

getHeldObject

public BaseObject getHeldObject()
returns the BaseObject object that is the model for this editPart.

Returns:
BaseObject