Class AbstractPageProperties<V>

java.lang.Object
com.amalgamasimulation.desktop.appelements.builders.AbstractPageProperties<V>
Type Parameters:
V - the type of the rows
Direct Known Subclasses:
TablePageProperties, TreePageProperties

public abstract class AbstractPageProperties<V> extends Object
Common settings of an EMF page with a table or a tree. The builder fills them, and the page reads them.
Author:
Ionov Ivan
  • Method Details

    • addObservableFeatures

      public void addObservableFeatures(org.eclipse.emf.ecore.EStructuralFeature... features)
      Adds features to the ones already set.
      Parameters:
      features - features of the row object
    • observablePath

      public void observablePath(org.eclipse.emf.ecore.EStructuralFeature... features)
      Adds a path of references from the row. An empty path and null are skipped.
      Parameters:
      features - features from the row to the observed feature
    • getStyle

      public int getStyle()
      Returns the SWT style, SWT.MULTI by default.
      Returns:
      the SWT style
    • isCheckBox

      public boolean isCheckBox()
      Returns whether the rows have check boxes.
      Returns:
      true if the rows have check boxes
    • isRowHeader

      public boolean isRowHeader()
      Returns whether there is a column with row numbers.
      Returns:
      true if there is a column with row numbers
    • isHighlightOnDoubleClick

      public boolean isHighlightOnDoubleClick()
      Returns whether a double click sends PlatformTopics.HIGHLIGHT.
      Returns:
      true if a double click sends PlatformTopics.HIGHLIGHT
    • isNavigateOnDoubleClick

      public boolean isNavigateOnDoubleClick()
      Returns whether a double click sends PlatformTopics.NAVIGATE_TO.
      Returns:
      true if a double click sends PlatformTopics.NAVIGATE_TO
    • getObservableFeatures

      public org.eclipse.emf.ecore.EStructuralFeature[] getObservableFeatures()
      Returns the row features that redraw the row.
      Returns:
      the row features that redraw the row
    • getObservablePaths

      public List<org.eclipse.emf.ecore.EStructuralFeature[]> getObservablePaths()
      Returns the paths of references from the row.
      Returns:
      the paths of references from the row
    • getIdPattern

      public String getIdPattern()
      Returns the id pattern for new elements, or null.
      Returns:
      the id pattern for new elements, or null
    • getAlsoShownFor

      public List<AbstractTreeElementType> getAlsoShownFor()
      Returns other tree elements for which the page is also shown.
      Returns:
      other tree elements for which the page is also shown