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
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 Summary
Modifier and TypeMethodDescriptionvoidaddObservableFeatures(org.eclipse.emf.ecore.EStructuralFeature... features) Adds features to the ones already set.Returns other tree elements for which the page is also shown.Returns the id pattern for new elements, or null.org.eclipse.emf.ecore.EStructuralFeature[]Returns the row features that redraw the row.List<org.eclipse.emf.ecore.EStructuralFeature[]> Returns the paths of references from the row.intgetStyle()Returns the SWT style, SWT.MULTI by default.booleanReturns whether the rows have check boxes.booleanReturns whether a double click sends PlatformTopics.HIGHLIGHT.booleanReturns whether a double click sends PlatformTopics.NAVIGATE_TO.booleanReturns whether there is a column with row numbers.voidobservablePath(org.eclipse.emf.ecore.EStructuralFeature... features) Adds a path of references from the row.
-
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
-
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
Returns the paths of references from the row.- Returns:
- the paths of references from the row
-
getIdPattern
Returns the id pattern for new elements, or null.- Returns:
- the id pattern for new elements, or null
-
getAlsoShownFor
Returns other tree elements for which the page is also shown.- Returns:
- other tree elements for which the page is also shown
-