Class TableEditPart

java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.csstudio.opibuilder.editparts.AbstractBaseEditPart
org.csstudio.opibuilder.widgets.editparts.TableEditPart
All Implemented Interfaces:
IAdaptable, org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.gef.NodeEditPart, org.eclipse.gef.RequestConstants

public class TableEditPart extends AbstractBaseEditPart
EditPart of Table widget.
  • Constructor Details

    • TableEditPart

      public TableEditPart()
  • Method Details

    • doCreateFigure

      protected org.eclipse.draw2d.IFigure doCreateFigure()
      Description copied from class: AbstractBaseEditPart
      Create and initialize the widget figure with the property values in model.
      Specified by:
      doCreateFigure in class AbstractBaseEditPart
      Returns:
      the widget figure
    • getMenuTriggeredCell

      public Point getMenuTriggeredCell()
      Get the cell under mouse when menu is triggered.
      Returns:
      the cell. point.x is row index. point.y is column index. null if no cell under mouse.
    • getWidgetModel

      public TableModel getWidgetModel()
      Overrides:
      getWidgetModel in class AbstractBaseEditPart
    • getAdapter

      public Object getAdapter(Class key)
      Specified by:
      getAdapter in interface IAdaptable
      Overrides:
      getAdapter in class AbstractBaseEditPart
    • registerPropertyChangeHandlers

      protected void registerPropertyChangeHandlers()
      Description copied from class: AbstractBaseEditPart
      Register the property change handlers. Subclass should register its property change handlers in this method.
      Specified by:
      registerPropertyChangeHandlers in class AbstractBaseEditPart
    • getTable

      public SpreadSheetTable getTable()
      Get the native spread sheet table held by this widget.
    • setAllowedHeaders

      public void setAllowedHeaders(String[] headers)
      Set allowed header titles. If this is set, the insert column dialog will have a combo box instead of text for title input.
    • getAllowedHeaders

      public String[] getAllowedHeaders()