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.StringgetColumnId()java.lang.StringgetName()Get the name to be displayed in the table column header.java.lang.StringgetResource(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.VgetValue(T row)booleanisEditable(T row)voidsetValue(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:
getColumnIdin 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:ColumnAdapterGet a resource value for the table column.- Specified by:
getResourcein interfaceColumnAdapter<T,V>
-
getName
public java.lang.String getName()
Description copied from interface:ColumnAdapterGet the name to be displayed in the table column header.- Specified by:
getNamein interfaceColumnAdapter<T,V>
-
getType
public java.lang.Class<V> getType()
Description copied from interface:ColumnAdapterGet the property value type.- Specified by:
getTypein interfaceColumnAdapter<T,V>
-
isEditable
public boolean isEditable(T row)
- Specified by:
isEditablein interfaceColumnAdapter<T,V>- Returns:
- true if the property is editable for the specified bean.
-
-