Class ConstantColumnAdapter<Bean,Value>
- java.lang.Object
-
- io.github.jonestimd.swing.table.model.AbstractColumnAdapter<Bean,Value>
-
- io.github.jonestimd.swing.table.model.ConstantColumnAdapter<Bean,Value>
-
- All Implemented Interfaces:
ReadAccessor<Bean,Value>
,ReadWriteAccessor<Bean,Value>
,WriteAccessor<Bean,Value>
,ColumnAdapter<Bean,Value>
- Direct Known Subclasses:
FunctionColumnAdapter
,ReadOnlyColumnAdapter
public abstract class ConstantColumnAdapter<Bean,Value> extends AbstractColumnAdapter<Bean,Value>
Bean adapter for a table column that is always editable or always read-only.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstantColumnAdapter(java.util.ResourceBundle bundle, java.lang.String tableResourcePrefix, java.lang.String columnId, java.lang.Class<? super Value> valueType, boolean editable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? super Value>
getType()
Get the property value type.boolean
isEditable(Bean row)
-
Methods inherited from class io.github.jonestimd.swing.table.model.AbstractColumnAdapter
getColumnId, getName, getResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.jonestimd.swing.table.model.ColumnAdapter
getCursor, handleClick
-
Methods inherited from interface io.github.jonestimd.beans.ReadAccessor
getValue
-
Methods inherited from interface io.github.jonestimd.beans.WriteAccessor
setValue
-
-
-
-
Constructor Detail
-
ConstantColumnAdapter
protected ConstantColumnAdapter(java.util.ResourceBundle bundle, java.lang.String tableResourcePrefix, java.lang.String columnId, java.lang.Class<? super Value> valueType, boolean editable)
-
-
Method Detail
-
getType
public java.lang.Class<? super Value> getType()
Description copied from interface:ColumnAdapter
Get the property value type.
-
isEditable
public boolean isEditable(Bean row)
- Returns:
- true if the property is editable for the specified bean.
-
-