|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.model.AbstractModel
com.guiseframework.model.AbstractValueModel<V>
com.guiseframework.model.DefaultListSelectModel<V>
com.guiseframework.model.AbstractListSelectTableModel<com.globalmentor.rdf.RDFResource>
com.guiseframework.component.rdf.RDFResourceTableModel
public class RDFResourceTableModel
A table model based upon a list of RDF resource.
This table recognizes RDFResourceURITableColumnModel columns.
As for other columns, this table only recognizes RDFPropertyTableColumnModel columns and will throw an exception if such a column is not found,
so subclasses using non-RDF property columns should override getCellValue(RDFResource, int, TableColumnModel).
and setCellValue(RDFResource, int, TableColumnModel, Object) to handle those custom columns before delegating to this class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.model.DefaultListSelectModel |
|---|
DefaultListSelectModel.ValueState |
| Nested classes/interfaces inherited from interface com.guiseframework.model.TableModel |
|---|
TableModel.Cell<C> |
| Field Summary |
|---|
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| 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.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Constructor Summary | |
|---|---|
RDFResourceTableModel(TableColumnModel<?>... columns)
Constructs a table model indicating the type of values it can hold, using a default multiple selection strategy. |
|
| Method Summary | ||
|---|---|---|
protected
|
getCellValue(com.globalmentor.rdf.RDFResource resource,
int rowIndex,
TableColumnModel<C> column)
Returns the value's property for the given column. |
|
protected
|
setCellValue(com.globalmentor.rdf.RDFResource resource,
int rowIndex,
TableColumnModel<C> column,
C newCellValue)
Sets the value's property for the given column. |
|
| Methods inherited from class com.guiseframework.model.AbstractListSelectTableModel |
|---|
getCellValue, getCellValue, getCellValueModel, getColumnCount, getColumnIndex, getColumns, getRowCount, setCellValue, setCellValue |
| Methods inherited from class com.guiseframework.model.AbstractValueModel |
|---|
createPropertyVetoException, getValidator, getValueClass, isValidValue, setValidator, validateValue |
| Methods inherited from class com.guiseframework.model.AbstractModel |
|---|
getEventListenerManager, getPlainText |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Methods inherited from interface com.guiseframework.model.ValueModel |
|---|
getValidator, getValueClass, isValidValue, setValidator, validateValue |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public RDFResourceTableModel(TableColumnModel<?>... columns)
columns - The models representing the table columns.| Method Detail |
|---|
protected <C> C getCellValue(com.globalmentor.rdf.RDFResource resource,
int rowIndex,
TableColumnModel<C> column)
getCellValue in class AbstractListSelectTableModel<com.globalmentor.rdf.RDFResource>C - The type of cell values in the given column.resource - The resource in this list select model.rowIndex - The zero-based row index of the value.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.
java.lang.ClassCastException - if the given column is not a RDFPropertyTableColumnModel or one of the other column types supported by this class.
protected <C> void setCellValue(com.globalmentor.rdf.RDFResource resource,
int rowIndex,
TableColumnModel<C> column,
C newCellValue)
setCellValue in class AbstractListSelectTableModel<com.globalmentor.rdf.RDFResource>C - The type of cell values in the given column.resource - The resource in this list select model.rowIndex - The zero-based row index of the value.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.
java.lang.ClassCastException - if the given column is not a RDFPropertyTableColumnModel or one of the other column types supported by this class or the new cell value is not an RDFObject.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||