Class AbstractTableAction<Viewer extends org.eclipse.jface.viewers.AbstractTableViewer>
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.table.action.AbstractTableAction<Viewer>
-
- Type Parameters:
Viewer
- the table viewer implementation to use
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
TableRendererAction
public abstract class AbstractTableAction<Viewer extends org.eclipse.jface.viewers.AbstractTableViewer> extends java.lang.Object implements Action
Base class for table actions.- Since:
- 1.18
- Author:
- Mat Hansen
-
-
Constructor Summary
Constructors Constructor Description AbstractTableAction(ViewerActionContext<? extends Viewer> actionContext)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ViewerActionContext<? extends Viewer>
getActionContext()
Returns theViewerActionContext
.protected org.eclipse.emf.edit.domain.EditingDomain
getEditingDomainForContainment()
protected int
getNumberOfVisibleRows()
Returns the number of visible viewer rows for the table control.protected org.eclipse.jface.viewers.AbstractTableViewer
getTableViewer()
Returns the table viewer object.protected boolean
isLowerBoundReached()
Returns true when the lower bound of the table setting has been reached.protected boolean
isOrdered()
Returns true when the table feature is ordered.protected boolean
isTableDisabled()
Returns whether the table is read-only.protected boolean
isUpperBoundReached()
Returns true when the upper bound of the table setting has been reached.protected boolean
isViewerSelectionInvalid()
Returns true when the table is read-only.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emfforms.spi.swt.table.action.Action
canExecute, execute, getId
-
-
-
-
Constructor Detail
-
AbstractTableAction
public AbstractTableAction(ViewerActionContext<? extends Viewer> actionContext)
The constructor.- Parameters:
actionContext
- theViewerActionContext
-
-
Method Detail
-
getActionContext
protected ViewerActionContext<? extends Viewer> getActionContext()
Returns theViewerActionContext
.- Returns:
- the context the
ViewerActionContext
-
getTableViewer
protected org.eclipse.jface.viewers.AbstractTableViewer getTableViewer()
Returns the table viewer object.- Returns:
- the table viewer
-
getEditingDomainForContainment
protected org.eclipse.emf.edit.domain.EditingDomain getEditingDomainForContainment()
- Returns:
- the editingDomain
-
isTableDisabled
protected boolean isTableDisabled()
Returns whether the table is read-only.- Returns:
- true when the table is read-only, false otherwise
-
isLowerBoundReached
protected boolean isLowerBoundReached()
Returns true when the lower bound of the table setting has been reached.- Returns:
- true when the lower bound of the table setting has been reached, false otherwise
-
isUpperBoundReached
protected boolean isUpperBoundReached()
Returns true when the upper bound of the table setting has been reached.- Returns:
- true when the upper bound of the table setting has been reached, false otherwise
-
isOrdered
protected boolean isOrdered()
Returns true when the table feature is ordered.- Returns:
- true when the table feature is ordered, false otherwise
-
isViewerSelectionInvalid
protected boolean isViewerSelectionInvalid()
Returns true when the table is read-only.- Returns:
- true when the table is read-only, false otherwise
-
getNumberOfVisibleRows
protected int getNumberOfVisibleRows()
Returns the number of visible viewer rows for the table control.- Returns:
- the number of visible rows
-
-