|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.DefaultTableColumnModel
org.jdesktop.swingx.table.DefaultTableColumnModelExt
public class DefaultTableColumnModelExt
A default implementation supporting invisible columns. Note (JW): hot fixed issues #156, #157. To really do it need enhanced TableColumnModelEvent and -Listeners that are aware of the event.
Field Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableColumnModel |
---|
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth |
Constructor Summary | |
---|---|
DefaultTableColumnModelExt()
Creates a new instance of DefaultTableColumnModelExt |
Method Summary | |
---|---|
void |
addColumn(TableColumn aColumn)
|
int |
getColumnCount(boolean includeHidden)
returns the number of contained columns including invisible if the parameter is true. |
TableColumnExt |
getColumnExt(Object identifier)
returns the first TableColumnExt with the given identifier or null if none is found. |
List |
getColumns(boolean includeHidden)
Returns all of the columns in the TableColumnModel, including invisible ones if the parameter is true. |
Set |
getInvisibleColumns()
Returns a list containing all of the columns that are invisible. |
boolean |
isAddedFromInvisibleEvent(int newIndex)
hot fix for #157: listeners that are aware of the possible existence of invisible columns should check if the received columnAdded originated from moving a column from invisible to visible. |
boolean |
isRemovedToInvisibleEvent(int oldIndex)
hot fix for #157: listeners that are aware of the possible existence of invisible columns should check if the received columnRemoved originated from moving a column from visible to invisible. |
protected void |
moveToInvisible(TableColumnExt col)
|
protected void |
moveToVisible(TableColumnExt col)
|
void |
removeColumn(TableColumn column)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableColumnModel |
---|
addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel |
Constructor Detail |
---|
public DefaultTableColumnModelExt()
Method Detail |
---|
public List getColumns(boolean includeHidden)
TableColumnModelExt
getColumns
in interface TableColumnModelExt
includeHidden
- if true the returned list contains all columns
otherwise only the subset of visible columns.public int getColumnCount(boolean includeHidden)
TableColumnModelExt
getColumnCount
in interface TableColumnModelExt
public TableColumnExt getColumnExt(Object identifier)
getColumnExt
in interface TableColumnModelExt
TableColumnExt
with the given identifier
or null if none is foundpublic Set getInvisibleColumns()
TableColumnModelExt
getInvisibleColumns
in interface TableColumnModelExt
public boolean isRemovedToInvisibleEvent(int oldIndex)
oldIndex
- the fromIndex of the columnEvent
public boolean isAddedFromInvisibleEvent(int newIndex)
newIndex
- the toIndex of the columnEvent
public void removeColumn(TableColumn column)
removeColumn
in interface TableColumnModel
removeColumn
in class DefaultTableColumnModel
public void addColumn(TableColumn aColumn)
addColumn
in interface TableColumnModel
addColumn
in class DefaultTableColumnModel
protected void moveToInvisible(TableColumnExt col)
protected void moveToVisible(TableColumnExt col)
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |