Package io.guise.framework.model
Interface TableColumnModel<V>
- Type Parameters:
V
- The type of values contained in the table column.
- All Superinterfaces:
InfoModel
,LabelModel
,Model
,com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
- All Known Implementing Classes:
CalendarMonthTableModel.WeekDayTableColumnModel
,DefaultTableColumnModel
A column in a table.
- Author:
- Garret Wilson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The bound property of the column style ID.static final String
The validator bound property.static final String
The bound property of whether the column is visible.Fields inherited from interface io.guise.framework.model.InfoModel
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY
Fields inherited from interface io.guise.framework.model.LabelModel
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
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
(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 interface io.guise.framework.model.InfoModel
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType
Methods inherited from interface io.guise.framework.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 Details
-
STYLE_ID_PROPERTY
The bound property of the column style ID. -
VALIDATOR_PROPERTY
The validator bound property. -
VISIBLE_PROPERTY
The bound property of whether the column is visible.
-
-
Method Details
-
getValueClass
- Returns:
- The class representing the type of values this model can hold.
-
isEditable
boolean isEditable()- Returns:
- Whether the cells in this table column model are editable and will allow the the user to change their values.
-
setEditable
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. This is a bound property of typeBoolean
.- Parameters:
newEditable
-true
if the table column cells should allow the user to change their values.- See Also:
-
getStyleID
String getStyleID()- Returns:
- The style identifier, or
null
if there is no style ID.
-
setStyleID
Identifies the style for the column. This is a bound property.- Parameters:
newStyleID
- The style identifier, ornull
if there is no style ID.- See Also:
-
getValidator
- Returns:
- The validator for cells in this column, or
null
if no validator is installed.
-
setValidator
Sets the validator. This is a bound property- Parameters:
newValidator
- The validator for cells in this column, ornull
if no validator should be used.- See Also:
-
isVisible
boolean isVisible()- Returns:
- Whether the column is visible.
-
setVisible
void setVisible(boolean newVisible) Sets whether the column is visible. This is a bound property of typeBoolean
.- Parameters:
newVisible
-true
if the column should be visible, elsefalse
.- See Also:
-