|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.model.ui.AbstractPresentationModel
com.guiseframework.component.AbstractComponent
com.guiseframework.component.AbstractCompositeComponent
com.guiseframework.component.AbstractMultipleCompositeComponent
com.guiseframework.component.AbstractCompositeStateComponent<T,S>
com.guiseframework.component.AbstractCompositeStateControl<TableModel.Cell<?>,Table.CellComponentState>
com.guiseframework.component.Table
public class Table
A table component.
Property changes to a column's UI model are repeated with the component as the source and the column UI model as the target.
| Nested Class Summary | |
|---|---|
protected static class |
Table.CellComponentState
An encapsulation of a component for a cell along with other metadata, such as whether the component was editable when created. |
static interface |
Table.CellRepresentationStrategy<V>
A strategy for generating components to represent table cell model values. |
protected static class |
Table.ColumnUIModel
An encapsulation of the user interface-related model used for a column. |
static class |
Table.DefaultCellMessage<C>
A message model that returns a default representation of the cell in a message. |
static class |
Table.DefaultCellRepresentationStrategy<V>
A default table cell representation strategy. |
static class |
Table.DefaultCellValueModel<C>
A value model that returns and updates a the value of the cell. |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractCompositeStateComponent |
|---|
AbstractCompositeStateComponent.ComponentState |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractComponent |
|---|
AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>, AbstractComponent.AbstractFlyoverStrategy<S extends Component>, AbstractComponent.DefaultFlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Component |
|---|
Component.FlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.model.TableModel |
|---|
TableModel.Cell<C> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Control |
|---|
Control.Status |
| Field Summary | |
|---|---|
static java.lang.String |
DISPLAY_ROW_COUNT_PROPERTY
The display row count bound property. |
static java.lang.String |
DISPLAY_ROW_START_INDEX_PROPERTY
The display row start index bound property. |
protected java.beans.PropertyChangeListener |
updatePrototypesPropertyChangeListener
The property change listener that updates prototype properties. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.component.EditComponent |
|---|
EDITABLE_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Component |
|---|
BOOKMARK_ENABLED_PROPERTY, CONSTRAINTS_PROPERTY, DRAG_ENABLED_PROPERTY, DROP_ENABLED_PROPERTY, FLYOVER_ENABLED_PROPERTY, FLYOVER_STRATEGY_PROPERTY, INPUT_STRATEGY_PROPERTY, NAME_PROPERTY, NOTIFICATION_PROPERTY, ORIENTATION_PROPERTY, THEME_APPLIED_PROPERTY, VALID_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Displayable |
|---|
DISPLAYED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.InfoModel |
|---|
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY |
| Fields inherited from interface com.guiseframework.model.LabelModel |
|---|
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Fields inherited from interface com.guiseframework.component.Control |
|---|
STATUS_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Constructor Summary | |
|---|---|
Table(java.lang.Class<C> valueClass,
C[][] rowValues,
java.lang.String... columnNames)
Value class, table data, and column names constructor with a default data model. |
|
Table(java.lang.Class<C> valueClass,
java.lang.String... columnNames)
Value class and column names constructor with a default data model. |
|
Table(java.lang.Object[][] rowValues,
TableColumnModel<?>... columns)
Table data and columns constructor with a default data model. |
|
Table(TableColumnModel<?>... columns)
Columns constructor with a default data model. |
|
Table(TableModel tableModel)
Table model constructor. |
|
| Method Summary | ||
|---|---|---|
void |
addEditListener(EditListener editListener)
Adds an edit listener. |
|
protected Table.CellComponentState |
createComponentState(TableModel.Cell<?> cell)
Creates a component state to represent the given object. |
|
protected
|
createTypedComponentState(TableModel.Cell<T> cell)
Creates a component state to represent the given object. |
|
protected void |
fireEdited()
Fires an edit event to all registered edit listeners. |
|
protected void |
fireEdited(EditEvent editEvent)
Fires a given edit event to all registered edit listeners. |
|
|
getCellRepresentationStrategy(java.lang.Class<V> valueClass)
Returns the given cell representation strategy assigned to produce representation components for the given value class. |
|
|
getCellRepresentationStrategy(TableColumnModel<V> column)
Returns the given cell representation strategy assigned to produce representation components for the given column. |
|
|
getCellValue(int rowIndex,
TableColumnModel<C> column)
Returns the cell value at the given row and column. |
|
|
getCellValue(TableModel.Cell<C> cell)
Returns the cell value for the given cell. |
|
int |
getColumnCount()
|
|
int |
getColumnIndex(TableColumnModel<?> column)
Determines the logical index of the given table column. |
|
java.util.List<java.lang.String> |
getColumnLabelFontFamilies(TableColumnModel<?> column)
Returns the label font families for a given column. |
|
Extent |
getColumnLabelFontSize(TableColumnModel<?> column)
Returns the label font size for a given column. |
|
FontStyle |
getColumnLabelFontStyle(TableColumnModel<?> column)
Returns the label font style for a given column. |
|
double |
getColumnLabelFontWeight(TableColumnModel<?> column)
Returns the label font weight for a given column. |
|
Extent |
getColumnPaddingExtent(TableColumnModel<?> column,
Border border)
Returns the padding extent of the indicated column border. |
|
Extent |
getColumnPaddingLineFarExtent(TableColumnModel<?> column)
Returns the padding extent of the column line far page near border. |
|
Extent |
getColumnPaddingLineNearExtent(TableColumnModel<?> column)
Returns the padding extent of the column line near page near border. |
|
Extent |
getColumnPaddingPageFarExtent(TableColumnModel<?> column)
Returns the padding extent of the column line far page far border. |
|
Extent |
getColumnPaddingPageNearExtent(TableColumnModel<?> column)
Returns the padding extent of the column line near page far border. |
|
java.util.List<TableColumnModel<?>> |
getColumns()
|
|
Table.ColumnUIModel |
getColumnUIModel(TableColumnModel<?> column)
Retrieves the UI model for the given column. |
|
Component |
getComponent(TableModel.Cell<?> cell)
Retrieves the component for the given object. |
|
int |
getDisplayRowCount()
|
|
int |
getDisplayRowStartIndex()
|
|
ActionPrototype |
getFirstActionPrototype()
|
|
ActionPrototype |
getLastActionPrototype()
|
|
ActionPrototype |
getNextActionPrototype()
|
|
ActionPrototype |
getPreviousActionPrototype()
|
|
int |
getRowCount()
|
|
protected TableModel |
getTableModel()
|
|
void |
goFirst()
Goes to the first set of table rows. |
|
void |
goLast()
Goes to the last set of table rows if the display row count is restricted. |
|
void |
goNext()
Goes to the next set of table rows if the display row count is restricted. |
|
void |
goPrevious()
Goes to the previous set of table rows if the display row count is restricted. |
|
boolean |
isEditable()
|
|
void |
removeEditListener(EditListener editListener)
Removes an edit listener. |
|
|
setCellRepresentationStrategy(java.lang.Class<V> valueClass,
Table.CellRepresentationStrategy<V> cellRepresentationStrategy)
Installs the given cell representation strategy to produce representation components for the given value class. |
|
|
setCellRepresentationStrategy(TableColumnModel<V> column,
Table.CellRepresentationStrategy<V> cellRepresentationStrategy)
Installs the given cell representation strategy to produce representation components for the given column. |
|
|
setCellValue(int rowIndex,
TableColumnModel<C> column,
C newCellValue)
Sets the cell value at the given row and column. |
|
|
setCellValue(TableModel.Cell<C> cell,
C newCellValue)
Sets the cell value for the given cell. |
|
void |
setColumnLabelFontFamilies(java.util.List<java.lang.String> newLabelFontFamilies)
Sets the font families of the labels of all columns. |
|
void |
setColumnLabelFontFamilies(TableColumnModel<?> column,
java.util.List<java.lang.String> newLabelFontFamilies)
Sets the font families of the label for a given column. |
|
void |
setColumnLabelFontSize(Extent newLabelFontSize)
Sets the label font size of all columns. |
|
void |
setColumnLabelFontSize(TableColumnModel<?> column,
Extent newLabelFontSize)
Sets the label font size of a given column. |
|
void |
setColumnLabelFontStyle(FontStyle newLabelFontStyle)
Sets the style of the label font for all columns. |
|
void |
setColumnLabelFontStyle(TableColumnModel<?> column,
FontStyle newLabelFontStyle)
Sets the style of the label font for a given column. |
|
void |
setColumnLabelFontWeight(double newLabelFontWeight)
Sets the weight of the label font of all columns. |
|
void |
setColumnLabelFontWeight(TableColumnModel<?> column,
double newLabelFontWeight)
Sets the weight of the label font of a given column. |
|
void |
setColumnPaddingExtent(Border border,
Extent newPaddingExtent)
Sets the padding extent of a all column borders of all columns. |
|
void |
setColumnPaddingExtent(Extent newPaddingExtent)
Sets the padding extent of all borders of all columns. |
|
void |
setColumnPaddingExtent(TableColumnModel<?> column,
Border border,
Extent newPaddingExtent)
Sets the padding extent of a given column border. |
|
void |
setColumnPaddingExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
Sets the padding extent of all borders of a column. |
|
void |
setColumnPaddingLineFarExtent(Extent newPaddingExtent)
Sets the padding extent of the line far border of all columns. |
|
void |
setColumnPaddingLineFarExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
Sets the padding extent of the column line far border. |
|
void |
setColumnPaddingLineNearExtent(Extent newPaddingExtent)
Sets the padding extent of the line near border of all columns. |
|
void |
setColumnPaddingLineNearExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
Sets the padding extent of the column line near border. |
|
void |
setColumnPaddingPageFarExtent(Extent newPaddingExtent)
Sets the padding extent of the page far border of all columns. |
|
void |
setColumnPaddingPageFarExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
Sets the padding extent of the column page far border. |
|
void |
setColumnPaddingPageNearExtent(Extent newPaddingExtent)
Sets the padding extent of the page near border of all columns. |
|
void |
setColumnPaddingPageNearExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
Sets the padding extent of the column page near border. |
|
void |
setDisplayRowCount(int newDisplayRowCount)
Sets the number of rows to display at one time. |
|
void |
setDisplayRowStartIndex(int newDisplayRowStartIndex)
Sets the index of the first row to display. |
|
void |
setEditable(boolean newEditable)
Sets whether the table is editable and the cells will allow the the user to change their values, if their respective columns are designated as editable as well. |
|
protected void |
updatePrototypes()
Updates the state of the prototypes, such as previous and next. |
|
| Methods inherited from class com.guiseframework.component.AbstractCompositeStateControl |
|---|
determineStatus, getEnableable, getStatus, isEnabled, reset, setEnabled, setNotification, setStatus, updateStatus, updateValid |
| Methods inherited from class com.guiseframework.component.AbstractCompositeStateComponent |
|---|
clearComponentStates, determineComponentState, getComponentState, getComponentStates, getObject, putComponentState, removeComponentState |
| Methods inherited from class com.guiseframework.component.AbstractMultipleCompositeComponent |
|---|
addComponent, getChildComponents, hasChildComponents, removeComponent |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.DepictedObject |
|---|
depict, getDepictID, getSession, processEvent |
| Methods inherited from interface com.guiseframework.model.InfoModel |
|---|
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType |
| Methods inherited from interface com.guiseframework.model.LabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.globalmentor.beans.PropertyConstrainable |
|---|
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener |
| Field Detail |
|---|
public static final java.lang.String DISPLAY_ROW_COUNT_PROPERTY
public static final java.lang.String DISPLAY_ROW_START_INDEX_PROPERTY
protected final java.beans.PropertyChangeListener updatePrototypesPropertyChangeListener
| Constructor Detail |
|---|
public Table(java.lang.Class<C> valueClass,
java.lang.String... columnNames)
C - The type of values in all the cells in the table.valueClass - The class indicating the type of values held in the model.columnNames - The names to serve as label headers for the columns.
java.lang.NullPointerException - if the given value class is null.public Table(TableColumnModel<?>... columns)
columns - The models representing the table columns.
public Table(java.lang.Class<C> valueClass,
C[][] rowValues,
java.lang.String... columnNames)
C - The type of values in all the cells in the table.valueClass - The class indicating the type of values held in the model.rowValues - The two-dimensional list of values, where the first index represents the row and the second represents the column, or null if no default values should be given.columnNames - The names to serve as label headers for the columns.
java.lang.NullPointerException - if the given value class is null.
java.lang.IllegalArgumentException - if the given number of columns does not equal the number of columns in any given data row.
java.lang.ClassCastException - if one of the values in a row is not compatible with the type of its column.
public Table(java.lang.Object[][] rowValues,
TableColumnModel<?>... columns)
rowValues - The two-dimensional list of values, where the first index represents the row and the second represents the column, or null if no default values should be given.columns - The models representing the table columns.
java.lang.IllegalArgumentException - if the given number of columns does not equal the number of columns in any given data row.
java.lang.ClassCastException - if one of the values in a row is not compatible with the type of its column.public Table(TableModel tableModel)
tableModel - The component data model.
java.lang.NullPointerException - if the given table model is null.| Method Detail |
|---|
protected TableModel getTableModel()
public ActionPrototype getFirstActionPrototype()
public ActionPrototype getPreviousActionPrototype()
public ActionPrototype getNextActionPrototype()
public ActionPrototype getLastActionPrototype()
public int getDisplayRowCount()
public void setDisplayRowCount(int newDisplayRowCount)
Integer.
newDisplayRowCount - The number of rows to display at one time, or -1 the row count is not restricted.DISPLAY_ROW_COUNT_PROPERTYpublic int getDisplayRowStartIndex()
public void setDisplayRowStartIndex(int newDisplayRowStartIndex)
Integer.
newDisplayRowStartIndex - The index of the first row to display.
java.lang.IndexOutOfBoundsException - if the given index is less than zero.DISPLAY_ROW_START_INDEX_PROPERTYpublic boolean isEditable()
isEditable in interface EditComponentpublic void setEditable(boolean newEditable)
Boolean.
setEditable in interface EditComponentnewEditable - true if the cells should allow the user to change their values if their respective columns are also designated as editable.TableModel#EDITABLE_PROPERTY
public <V> Table.CellRepresentationStrategy<? super V> setCellRepresentationStrategy(java.lang.Class<V> valueClass,
Table.CellRepresentationStrategy<V> cellRepresentationStrategy)
V - The type of value represented.valueClass - The value class with which the strategy should be associated.cellRepresentationStrategy - The strategy for generating components to represent values of the given type.
setCellRepresentationStrategy(TableColumnModel, CellRepresentationStrategy)public <V> Table.CellRepresentationStrategy<? super V> getCellRepresentationStrategy(java.lang.Class<V> valueClass)
V - The type of value represented.valueClass - The value class with which the strategy should be associated.
null if there is no associated representation strategy.getCellRepresentationStrategy(TableColumnModel)
public <V> Table.CellRepresentationStrategy<? super V> setCellRepresentationStrategy(TableColumnModel<V> column,
Table.CellRepresentationStrategy<V> cellRepresentationStrategy)
V - The type of value the column represents.column - The column with which the strategy should be associated.cellRepresentationStrategy - The strategy for generating components to represent values in the given column.
setCellRepresentationStrategy(Class, CellRepresentationStrategy)public <V> Table.CellRepresentationStrategy<? super V> getCellRepresentationStrategy(TableColumnModel<V> column)
V - The type of value the column represents.column - The column with which the strategy should be associated.
null if there is no associated representation strategy.getCellRepresentationStrategy(Class)public Component getComponent(TableModel.Cell<?> cell)
getComponent in class AbstractCompositeStateComponent<TableModel.Cell<?>,Table.CellComponentState>cell - The object for which a representation component should be returned.
java.lang.IllegalArgumentException - if the given object is not an appropriate object for a component to be created.protected Table.CellComponentState createComponentState(TableModel.Cell<?> cell)
createTypedComponentState(com.guiseframework.model.TableModel.Cell).
createComponentState in class AbstractCompositeStateComponent<TableModel.Cell<?>,Table.CellComponentState>cell - The object with which the component state is to be associated.
java.lang.IllegalArgumentException - if the given object is not an appropriate object for a component state to be created.protected <T> Table.CellComponentState createTypedComponentState(TableModel.Cell<T> cell)
T - The type of value contained in the cell.cell - The object with which the component state is to be associated.
java.lang.IllegalArgumentException - if the given object is not an appropriate object for a component state to be created.
java.lang.IllegalStateException - if there is no registered cell representation strategy appropriate for the cell.public Table.ColumnUIModel getColumnUIModel(TableColumnModel<?> column)
column - The column for which a UI model should be returned.
java.lang.NullPointerException - if the given column is null.public java.util.List<java.lang.String> getColumnLabelFontFamilies(TableColumnModel<?> column)
column - The column for which the label font families should be returned.
null if no label font family names have been specified.
java.lang.NullPointerException - if the given column is null.
public void setColumnLabelFontFamilies(TableColumnModel<?> column,
java.util.List<java.lang.String> newLabelFontFamilies)
column - The column for which the label font families should be set.newLabelFontFamilies - The new prioritized list of label font family names, or null if no label font family names are specified.
java.lang.NullPointerException - if the given column is null.PresentationModel.LABEL_FONT_FAMILIES_PROPERTYpublic void setColumnLabelFontFamilies(java.util.List<java.lang.String> newLabelFontFamilies)
newLabelFontFamilies - The new prioritized list of label font family names, or null if no label font family names are specified.PresentationModel.LABEL_FONT_FAMILIES_PROPERTYpublic Extent getColumnLabelFontSize(TableColumnModel<?> column)
column - The column for which the label font size should be returned.
null if no label font size has been specified.
java.lang.NullPointerException - if the given column is null.
public void setColumnLabelFontSize(TableColumnModel<?> column,
Extent newLabelFontSize)
column - The column for which the label font size should be set.newLabelFontSize - The new size of the label font from baseline to baseline, or null there is no label font size specified.
java.lang.NullPointerException - if the given column is null.PresentationModel.LABEL_FONT_SIZE_PROPERTYpublic void setColumnLabelFontSize(Extent newLabelFontSize)
newLabelFontSize - The new size of the label font from baseline to baseline, or null there is no label font size specified.PresentationModel.LABEL_FONT_SIZE_PROPERTYpublic FontStyle getColumnLabelFontStyle(TableColumnModel<?> column)
column - The column for which the label font style should be returned.
java.lang.NullPointerException - if the given column is null.
public void setColumnLabelFontStyle(TableColumnModel<?> column,
FontStyle newLabelFontStyle)
column - The column for which the label font size should be set.newLabelFontStyle - The style of the label font.
java.lang.NullPointerException - if the given column and/or label font style is null.PresentationModel.LABEL_FONT_STYLE_PROPERTYpublic void setColumnLabelFontStyle(FontStyle newLabelFontStyle)
newLabelFontStyle - The style of the label font.
java.lang.NullPointerException - if the given label font style is null.PresentationModel.LABEL_FONT_STYLE_PROPERTYpublic double getColumnLabelFontWeight(TableColumnModel<?> column)
column - The column for which the label font weight should be returned.
java.lang.NullPointerException - if the given column is null.
public void setColumnLabelFontWeight(TableColumnModel<?> column,
double newLabelFontWeight)
ComponentUIModel#FONT_WEIGHT_NORMAL and ComponentUIModel#FONT_WEIGHT_BOLD be used for the most compatibility across platforms.
This is a bound property of type Double.
column - The column for which the label font weight should be set.newLabelFontWeight - The weight of the label font relative to a normal value of 0.5.
java.lang.NullPointerException - if the given column is null.ComponentUIModel#FONT_WEIGHT_PROPERTY,
ComponentUIModel#FONT_WEIGHT_NORMAL,
ComponentUIModel#FONT_WEIGHT_BOLDpublic void setColumnLabelFontWeight(double newLabelFontWeight)
ComponentUIModel#FONT_WEIGHT_NORMAL and ComponentUIModel#FONT_WEIGHT_BOLD be used for the most compatibility across platforms.
This is a bound property of type Double.
newLabelFontWeight - The weight of the label font relative to a normal value of 0.5.ComponentUIModel#FONT_WEIGHT_PROPERTY,
ComponentUIModel#FONT_WEIGHT_NORMAL,
ComponentUIModel#FONT_WEIGHT_BOLD
public Extent getColumnPaddingExtent(TableColumnModel<?> column,
Border border)
column - The column for which a padding extent should be returned.border - The border for which a padding extent should be returned.
java.lang.NullPointerException - if the given column is null.public Extent getColumnPaddingLineNearExtent(TableColumnModel<?> column)
column - The column for which a padding extent should be returned.
java.lang.NullPointerException - if the given column is null.public Extent getColumnPaddingLineFarExtent(TableColumnModel<?> column)
column - The column for which a padding extent should be returned.
java.lang.NullPointerException - if the given column is null.public Extent getColumnPaddingPageNearExtent(TableColumnModel<?> column)
column - The column for which a padding extent should be returned.
java.lang.NullPointerException - if the given column is null.public Extent getColumnPaddingPageFarExtent(TableColumnModel<?> column)
column - The column for which a padding extent should be returned.
java.lang.NullPointerException - if the given column is null.
public void setColumnPaddingExtent(TableColumnModel<?> column,
Border border,
Extent newPaddingExtent)
column - The column for which the padding extent should be set.border - The border for which the padding extent should be set.newPaddingExtent - The padding extent.
java.lang.NullPointerException - if the given column, border and/or padding extent is null.PresentationModel.PADDING_LINE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_LINE_FAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_FAR_EXTENT_PROPERTY
public void setColumnPaddingLineNearExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
column - The column for which the padding extent should be set.newPaddingExtent - The padding extent.
java.lang.NullPointerException - if the given column and/or padding extent is null.PresentationModel.PADDING_LINE_NEAR_EXTENT_PROPERTY
public void setColumnPaddingLineFarExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
column - The column for which the padding extent should be set.newPaddingExtent - The padding extent, or null if the default padding extent should be used.
java.lang.NullPointerException - if the given column and/or padding extent is null.PresentationModel.PADDING_LINE_FAR_EXTENT_PROPERTY
public void setColumnPaddingPageNearExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
column - The column for which the padding extent should be set.newPaddingExtent - The padding extent, or null if the default padding extent should be used.
java.lang.NullPointerException - if the given columna and/or padding extent is null.PresentationModel.PADDING_PAGE_NEAR_EXTENT_PROPERTY
public void setColumnPaddingPageFarExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
column - The column for which the padding extent should be set.newPaddingExtent - The padding extent, or null if the default padding extent should be used.
java.lang.NullPointerException - if the given column and/or padding extent is null.PresentationModel.PADDING_PAGE_FAR_EXTENT_PROPERTY
public void setColumnPaddingExtent(TableColumnModel<?> column,
Extent newPaddingExtent)
column - The column for which the padding extent should be set.newPaddingExtent - The padding extent.
java.lang.NullPointerException - if the given column and/or padding extent is null.PresentationModel.PADDING_LINE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_LINE_FAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_FAR_EXTENT_PROPERTY
public void setColumnPaddingExtent(Border border,
Extent newPaddingExtent)
border - The border for which the padding extent should be set.newPaddingExtent - The padding extent.
java.lang.NullPointerException - if the border and/or padding extent is null.PresentationModel.PADDING_LINE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_LINE_FAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_FAR_EXTENT_PROPERTYpublic void setColumnPaddingLineNearExtent(Extent newPaddingExtent)
newPaddingExtent - The padding extent.
java.lang.NullPointerException - if the given padding extent is null.PresentationModel.PADDING_LINE_NEAR_EXTENT_PROPERTYpublic void setColumnPaddingLineFarExtent(Extent newPaddingExtent)
newPaddingExtent - The padding extent, or null if the default padding extent should be used.
java.lang.NullPointerException - if the given padding extent is null.PresentationModel.PADDING_LINE_FAR_EXTENT_PROPERTYpublic void setColumnPaddingPageNearExtent(Extent newPaddingExtent)
newPaddingExtent - The padding extent, or null if the default padding extent should be used.
java.lang.NullPointerException - if the given padding extent is null.PresentationModel.PADDING_PAGE_NEAR_EXTENT_PROPERTYpublic void setColumnPaddingPageFarExtent(Extent newPaddingExtent)
newPaddingExtent - The padding extent, or null if the default padding extent should be used.
java.lang.NullPointerException - if the given padding extent is null.PresentationModel.PADDING_PAGE_FAR_EXTENT_PROPERTYpublic void setColumnPaddingExtent(Extent newPaddingExtent)
setColumnPaddingExtent(Border, Extent) for each border.
newPaddingExtent - The padding extent.
java.lang.NullPointerException - if the given padding extent is null.PresentationModel.PADDING_LINE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_LINE_FAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_NEAR_EXTENT_PROPERTY,
PresentationModel.PADDING_PAGE_FAR_EXTENT_PROPERTYprotected void updatePrototypes()
public void goFirst()
public void goPrevious()
getDisplayRowStartIndex(),
getDisplayRowCount()public void goNext()
getDisplayRowStartIndex(),
getDisplayRowCount()public void goLast()
getDisplayRowStartIndex(),
getDisplayRowCount()public int getColumnIndex(TableColumnModel<?> column)
getColumnIndex in interface TableModelcolumn - One of the table columns.
public java.util.List<TableColumnModel<?>> getColumns()
getColumns in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic <C> C getCellValue(TableModel.Cell<C> cell)
getCellValue in interface TableModelC - The type of cell value.cell - The cell containing the row index and column information.
null if there is no value in that cell.
java.lang.IndexOutOfBoundsException - if the given row index represents an invalid location for the table.
java.lang.IllegalArgumentException - if the given column is not one of this table's columns.
public <C> C getCellValue(int rowIndex,
TableColumnModel<C> column)
getCellValue in interface TableModelC - The type of cell values in the given column.rowIndex - The zero-based row index.column - The column for which a value should be returned.
null if there is no value in that cell.
java.lang.IndexOutOfBoundsException - if the given row index represents an invalid location for the table.
java.lang.IllegalArgumentException - if the given column is not one of this table's columns.
public <C> void setCellValue(TableModel.Cell<C> cell,
C newCellValue)
setCellValue in interface TableModelC - The type of cell value.cell - The cell containing the row index and column information.newCellValue - The value to place in the cell at the given row and column, or null if there should be no value in that cell.
java.lang.IndexOutOfBoundsException - if the given row index represents an invalid location for the table.
java.lang.IllegalArgumentException - if the given column is not one of this table's columns.
public <C> void setCellValue(int rowIndex,
TableColumnModel<C> column,
C newCellValue)
setCellValue in interface TableModelC - The type of cell values in the given column.rowIndex - The zero-based row index.column - The column for which a value should be returned.newCellValue - The value to place in the cell at the given row and column, or null if there should be no value in that cell.
java.lang.IndexOutOfBoundsException - if the given row index represents an invalid location for the table.
java.lang.IllegalArgumentException - if the given column is not one of this table's columns.public void addEditListener(EditListener editListener)
addEditListener in interface EditListenableeditListener - The edit listener to add.public void removeEditListener(EditListener editListener)
removeEditListener in interface EditListenableeditListener - The edit listener to remove.protected void fireEdited()
#fireEdited(EditEvent)).
EditListener,
EditEventprotected void fireEdited(EditEvent editEvent)
editEvent - The edit event to fire.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||