public class GridEditorInput
extends java.lang.Object
implements org.eclipse.ui.IEditorInput
Modifier and Type | Field and Description |
---|---|
boolean |
showCellLabels
Whether or not to show a label (containing the Cell's key) in each Cell.
|
boolean |
showColumnLabels
Whether or not to show the column labels.
|
boolean |
showRowLabels
Whether or not to show the row labels.
|
Constructor and Description |
---|
GridEditorInput(int rows,
int columns)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
java.lang.Object |
getAdapter(java.lang.Class adapter) |
java.util.List<java.lang.String> |
getColumnLabels()
Gets the List of column labels for the editor.
|
int |
getColumns()
Gets the number of columns that should be displayed in the editor.
|
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor() |
java.lang.String |
getName() |
org.eclipse.ui.IPersistableElement |
getPersistable() |
java.util.List<java.lang.String> |
getRowLabels()
Gets the List of row labels for the editor.
|
int |
getRows()
Gets the number of rows that should be displayed in the editor.
|
java.util.List<Cell.State> |
getStates()
Gets the List of Cell states for the editor.
|
java.lang.String |
getToolTipText() |
void |
setColumnLabels(java.util.List<java.lang.String> columnLabels)
Sets the array of column labels for the displayed grid.
|
void |
setRowLabels(java.util.List<java.lang.String> rowLabels)
Sets the array of row labels for the displayed grid.
|
void |
setStates(java.util.List<Cell.State> states)
Sets the array of Cell states for the displayed grid.
|
public boolean showRowLabels
public boolean showColumnLabels
public boolean showCellLabels
public GridEditorInput(int rows, int columns)
rows
- The number of rows in the grid.columns
- The number of columns in the grid.public void setRowLabels(java.util.List<java.lang.String> rowLabels)
rowLabels
- A new List of row labels. The array should be at least as big
as the number of rows in the grid.public void setColumnLabels(java.util.List<java.lang.String> columnLabels)
columnLabels
- A new List of column labels. The array should be at least as
big as the number of columns in the grid.public void setStates(java.util.List<Cell.State> states)
states
- A new List of Cell states. The array should be at least as big
as the number of rows * columns in the grid.public int getRows()
public int getColumns()
public java.util.List<java.lang.String> getRowLabels()
public java.util.List<java.lang.String> getColumnLabels()
public java.util.List<Cell.State> getStates()
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public boolean exists()
exists
in interface org.eclipse.ui.IEditorInput
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor
in interface org.eclipse.ui.IEditorInput
public java.lang.String getName()
getName
in interface org.eclipse.ui.IEditorInput
public org.eclipse.ui.IPersistableElement getPersistable()
getPersistable
in interface org.eclipse.ui.IEditorInput
public java.lang.String getToolTipText()
getToolTipText
in interface org.eclipse.ui.IEditorInput