Class EmptyColumnAdapter<T,V>
- java.lang.Object
-
- io.github.jonestimd.swing.table.model.EmptyColumnAdapter<T,V>
-
- All Implemented Interfaces:
ReadAccessor<T,V>
,ReadWriteAccessor<T,V>
,WriteAccessor<T,V>
,ColumnAdapter<T,V>
public class EmptyColumnAdapter<T,V> extends java.lang.Object implements ColumnAdapter<T,V>
No-op adapter for filler columns in aMixedRowTableModel
.
-
-
Constructor Summary
Constructors Constructor Description EmptyColumnAdapter(java.lang.String identifier, java.lang.Class<V> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getColumnId()
java.lang.String
getName()
Get the name to be displayed in the table column header.java.lang.String
getResource(java.lang.String resourceId, java.lang.String defaultValue)
Get a resource value for the table column.java.lang.Class<V>
getType()
Get the property value type.V
getValue(T row)
boolean
isEditable(T row)
void
setValue(T row, V value)
-
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
-
-
-
-
Constructor Detail
-
EmptyColumnAdapter
public EmptyColumnAdapter(java.lang.String identifier, java.lang.Class<V> type)
- Parameters:
identifier
- the column identifiertype
- the value type
-
-
Method Detail
-
getColumnId
public java.lang.String getColumnId()
- Specified by:
getColumnId
in interfaceColumnAdapter<T,V>
- Returns:
- the table column ID
-
getResource
public java.lang.String getResource(java.lang.String resourceId, java.lang.String defaultValue)
Description copied from interface:ColumnAdapter
Get a resource value for the table column.- Specified by:
getResource
in interfaceColumnAdapter<T,V>
-
getName
public java.lang.String getName()
Description copied from interface:ColumnAdapter
Get the name to be displayed in the table column header.- Specified by:
getName
in interfaceColumnAdapter<T,V>
-
getType
public java.lang.Class<V> getType()
Description copied from interface:ColumnAdapter
Get the property value type.- Specified by:
getType
in interfaceColumnAdapter<T,V>
-
isEditable
public boolean isEditable(T row)
- Specified by:
isEditable
in interfaceColumnAdapter<T,V>
- Returns:
- true if the property is editable for the specified bean.
-
-