|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.group.AbstractTreeTableColumnModelAdapter
com.citra.table.group.DefaultTreeTableColumnModelAdapter
com.citra.pivot.DefaultPivotColumnAdapter
public class DefaultPivotColumnAdapter
The default PivotColumnAdapter implementation.
Field Summary | |
---|---|
protected TreeTableColumnModel[] |
columnModels
the column models |
Fields inherited from class com.citra.table.group.DefaultTreeTableColumnModelAdapter |
---|
cc, tree, treeColumnModel |
Fields inherited from class com.citra.table.group.AbstractTreeTableColumnModelAdapter |
---|
changeEvent, changeSupport, columnMargin, columnSelectionAllowed, listenerList, selectionModel, totalColumnWidth |
Fields inherited from interface com.citra.table.group.TreeTableColumnModelAdapter |
---|
TREE_PROPERTY, TREE_TABLE_COLUMN_MODEL_PROPERTY |
Fields inherited from interface com.citra.pivot.PivotConstants |
---|
GRAND_TOTAL_TYPE, NORMAL_TYPE, SUBTOTAL_TYPE |
Constructor Summary | |
---|---|
DefaultPivotColumnAdapter()
Constructs a DefaultPivotColumnAdapter. |
|
DefaultPivotColumnAdapter(TreeTableColumnModel columnModel)
Constructs a DefaultPivotColumnAdapter. |
|
DefaultPivotColumnAdapter(TreeTableColumnModel[] columnModels)
Constructs a DefaultPivotColumnAdapter. |
|
DefaultPivotColumnAdapter(TreeTableColumnModel columnModel1,
TreeTableColumnModel columnModel2)
Constructs a DefaultPivotColumnAdapter. |
Method Summary | |
---|---|
void |
addColumnInvalidatorListener(ColumnInvalidatorListener x)
Adds a listener that is notified when the columns of the model were changed (via additions or removals). |
void |
collapseAll(boolean adapters)
Convenience method to collapse the column tree. |
protected void |
columnAdded(TableColumn tc,
int index)
Invoke this method after columns were added. |
protected PivotColumnAdapter |
createAdapter(TreePath path)
Creates and returns a pivot column adapter for the specified path. |
protected PivotColumnAdapter |
createAdapter(TreeTableColumnModel[] models)
Creates and returns a pivot column adapter having models as its column models. |
protected void |
fireColumnsInvalidated()
Notifies all listeners that have registered interest for notification on this event type. |
PivotColumnAdapter |
getAdapter(TreePath path)
Returns the adapter at the specified tree path. |
int |
getAdapterDepth()
Retrieves the maximum number of adapters beneath this one. |
int |
getPivotType(TreePath path)
Returns the type of the specified path. |
TreeTableColumnModel[] |
getTreeTableColumnModels()
Retrieves the column models currently assigned. |
void |
removeColumnInvalidatorListener(ColumnInvalidatorListener x)
Removes a listener that is notified when the columns of the model were changed (via additions or removals). |
void |
setTreeTableColumnModels(TreeTableColumnModel[] treeColumnModels)
Sets a new column model array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.citra.table.group.TreeTableColumnModelAdapter |
---|
addPropertyChangeListener, getTree, getTreeTableColumnModel, removePropertyChangeListener |
Methods inherited from interface javax.swing.table.TableColumnModel |
---|
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel |
Field Detail |
---|
protected TreeTableColumnModel[] columnModels
Constructor Detail |
---|
public DefaultPivotColumnAdapter()
public DefaultPivotColumnAdapter(TreeTableColumnModel[] columnModels)
public DefaultPivotColumnAdapter(TreeTableColumnModel columnModel)
public DefaultPivotColumnAdapter(TreeTableColumnModel columnModel1, TreeTableColumnModel columnModel2)
Method Detail |
---|
public void addColumnInvalidatorListener(ColumnInvalidatorListener x)
addColumnInvalidatorListener
in interface PivotColumnAdapter
x
- the listener to be addedpublic void collapseAll(boolean adapters)
adapters
- true, whether created adapter columns will also be collapsed, false otherwiseprotected void columnAdded(TableColumn tc, int index)
columnAdded
in class DefaultTreeTableColumnModelAdapter
tc
- the table column that was addedindex
- the index at which the column was addedprotected PivotColumnAdapter createAdapter(TreeTableColumnModel[] models)
models
- the column models of the adapter to create
protected PivotColumnAdapter createAdapter(TreePath path)
path
- the path at which the adapter is created
protected void fireColumnsInvalidated()
public PivotColumnAdapter getAdapter(TreePath path)
getAdapter
in interface PivotColumnAdapter
path
- the given path
public int getAdapterDepth()
getAdapterDepth
in interface PivotColumnAdapter
public int getPivotType(TreePath path)
PivotConstants
interface and may be:
getPivotType
in interface PivotColumnAdapter
path
- the given path
public TreeTableColumnModel[] getTreeTableColumnModels()
public void removeColumnInvalidatorListener(ColumnInvalidatorListener x)
removeColumnInvalidatorListener
in interface PivotColumnAdapter
x
- the listener to be removedpublic void setTreeTableColumnModels(TreeTableColumnModel[] treeColumnModels)
treeColumnModels
- the new column models to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |