|
|||||||||
| 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.DefaultLabelModel
com.guiseframework.model.DefaultInfoModel
com.guiseframework.model.DefaultTableColumnModel<V>
V - The type of values contained in the table column.public class DefaultTableColumnModel<V>
The default implementation of a column in a table. The table column model by default is not editable.
| 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.TableColumnModel |
|---|
STYLE_ID_PROPERTY, VALIDATOR_PROPERTY, VISIBLE_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 |
| Constructor Summary | |
|---|---|
DefaultTableColumnModel(java.lang.Class<V> valueClass)
Value class constructor. |
|
DefaultTableColumnModel(java.lang.Class<V> valueClass,
java.lang.String label)
Value class and label constructor. |
|
DefaultTableColumnModel(java.lang.Class<V> valueClass,
java.lang.String label,
java.net.URI glyphURI)
Value class, label, and glyph URI constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getStyleID()
|
Validator<V> |
getValidator()
|
java.lang.Class<V> |
getValueClass()
|
boolean |
isEditable()
|
boolean |
isVisible()
|
void |
setEditable(boolean newEditable)
Sets whether the cells in this table column model are editable and will allow the the user to change their values. |
void |
setStyleID(java.lang.String newStyleID)
Identifies the style for the column. |
void |
setValidator(Validator<V> newValidator)
Sets the validator. |
void |
setVisible(boolean newVisible)
Sets whether the column is visible. |
| Methods inherited from class com.guiseframework.model.DefaultInfoModel |
|---|
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType |
| Methods inherited from class com.guiseframework.model.DefaultLabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType, toString |
| 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, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public DefaultTableColumnModel(java.lang.Class<V> valueClass)
valueClass - The class indicating the type of values held in the model.
java.lang.NullPointerException - if the given value class is null.
public DefaultTableColumnModel(java.lang.Class<V> valueClass,
java.lang.String label)
valueClass - The class indicating the type of values held in the model.label - The text of the label, or null if there should be no label.
public DefaultTableColumnModel(java.lang.Class<V> valueClass,
java.lang.String label,
java.net.URI glyphURI)
valueClass - The class indicating the type of values held in the model.label - The text of the label, or null if there should be no label.glyphURI - The glyph URI, which may be a resource URI, or null if there is no glyph URI.| Method Detail |
|---|
public java.lang.Class<V> getValueClass()
getValueClass in interface TableColumnModel<V>public boolean isEditable()
isEditable in interface TableColumnModel<V>public void setEditable(boolean newEditable)
Boolean.
setEditable in interface TableColumnModel<V>newEditable - true if the table column cells should allow the user to change their values.TableColumnModel#EDITABLE_PROPERTYpublic java.lang.String getStyleID()
getStyleID in interface TableColumnModel<V>null if there is no style ID.public void setStyleID(java.lang.String newStyleID)
setStyleID in interface TableColumnModel<V>newStyleID - The style identifier, or null if there is no style ID.TableColumnModel.STYLE_ID_PROPERTYpublic Validator<V> getValidator()
getValidator in interface TableColumnModel<V>null if no validator is installed.public void setValidator(Validator<V> newValidator)
setValidator in interface TableColumnModel<V>newValidator - The validator for cells in this column, or null if no validator should be used.TableColumnModel.VALIDATOR_PROPERTYpublic boolean isVisible()
isVisible in interface TableColumnModel<V>public void setVisible(boolean newVisible)
Boolean.
setVisible in interface TableColumnModel<V>newVisible - true if the column should be visible, else false.TableColumnModel.VISIBLE_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||