|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.tableview.BaseColumnHeader
public abstract class BaseColumnHeader
A ColumnHeader manages the column header area of the TableView.
The defaultRenderer is to be used when no headerRenderer is defined by a TableColumn. If the default renderer is null then a new default renderer will created.
BaseTableView.setColumnHeader(com.sas.servlet.tbeans.tableview.BaseColumnHeader),
TableColumn.setHeaderRenderer(com.sas.servlet.tbeans.tableview.TableCellRenderer)| Constructor Summary | |
|---|---|
BaseColumnHeader()
Constructs a ColumnHeader with a default TableColumnModel. |
|
BaseColumnHeader(BaseTableView table)
Constructs a ColumnHeader which is initialized with a TableView and a default TableColumnModel. |
|
BaseColumnHeader(BaseTableView table,
TableColumnModel cm)
Constructs a ColumnHeader which is initialized with a TableView and a column model. |
|
BaseColumnHeader(TableColumnModel cm)
Constructs a ColumnHeader which is initialized with a column model. |
|
| Method Summary | |
|---|---|
TableColumnModel |
createDefaultColumnModel()
Returns the default column model object which is a DefaultTableColumnModel. |
TableColumnModel |
getColumnModel()
Returns the TableColumnModel that contains all column information of this table header. |
java.util.List |
getHeldIndices()
Returns a list of the indices that are being held. |
java.util.List |
getHeldIndices(int orientation)
Returns a list of the indices that are being held for the given orientation. |
void |
hold(int modelIndex)
"Holds" the given index using the default orientation. |
void |
hold(int modelIndex,
int orientation)
"Holds" the given index using the orientation specified. |
boolean |
isHeld(int modelIndex)
Returns true if the given modelIndex is held for any orientation,
false otherwise. |
boolean |
isHeld(int modelIndex,
int orientation)
Returns true if the given modelIndex is held for the given
orientation, false otherwise. |
boolean |
isHoldingAllowed(int orientation)
Returns true if holding for a given orientation is allowed or false otherwise. |
boolean |
isHoldingEnabled()
Returns true is holding is enabled, should return false if holding is not allowed. |
void |
release(int modelIndex)
Releases the given modelIndex from being held, so it will
return to its original place in the view. |
void |
releaseAll()
Releases all held indices and returns them to their previous location. |
void |
setColumnModel(TableColumnModel columnModel)
Sets the column model for this table to newModel. |
void |
setHoldingEnabled(boolean enableHolding)
Sets the state of whether holding of indices is enabled or not. |
| Methods inherited from class com.sas.servlet.tbeans.tableview.BaseHeader |
|---|
createDefaultRenderer, getDefaultRenderer, getLocale, getTable, setDefaultRenderer, setLocale, setTable |
| Constructor Detail |
|---|
public BaseColumnHeader()
public BaseColumnHeader(TableColumnModel cm)
columnModel - the column model for the tablepublic BaseColumnHeader(BaseTableView table)
table - the tableview associated with the header
public BaseColumnHeader(BaseTableView table,
TableColumnModel cm)
table - the tableview associated with the headercolumnModel - the column model for the table| Method Detail |
|---|
public void setColumnModel(TableColumnModel columnModel)
columnModel - the new data source for this table
java.lang.IllegalArgumentException - if newModel is nullpublic TableColumnModel getColumnModel()
public TableColumnModel createDefaultColumnModel()
public java.util.List getHeldIndices()
HoldInterface
getHeldIndices in interface HoldInterfaceHoldInterface.getHeldIndices(int)public java.util.List getHeldIndices(int orientation)
HoldInterface
getHeldIndices in interface HoldInterfaceorientation -
HoldInterface.getHeldIndices()public void hold(int modelIndex)
HoldInterfaceThe order in which the indices are held controls the order in which they are displayed.
Should do nothing if the index is already held.
hold in interface HoldInterfacemodelIndex - HoldInterface.hold(int, int),
HoldInterface.release(int),
HoldInterface.releaseAll()
public void hold(int modelIndex,
int orientation)
HoldInterfaceThe order in which the indices are held controls the order in which they are displayed.
Should do nothing if the index is already held.
hold in interface HoldInterfacemodelIndex - orientation - HoldInterface.hold(int),
HoldInterface.release(int),
HoldInterface.releaseAll()public boolean isHeld(int modelIndex)
HoldInterfacemodelIndex is held for any orientation,
false otherwise.
isHeld in interface HoldInterfacemodelIndex -
HoldInterface.isHeld(int, int)
public boolean isHeld(int modelIndex,
int orientation)
HoldInterfacemodelIndex is held for the given
orientation, false otherwise.
isHeld in interface HoldInterfacemodelIndex - orientation -
HoldInterface.isHeld(int)public boolean isHoldingAllowed(int orientation)
HoldInterface
isHoldingAllowed in interface HoldInterfaceorientation -
public boolean isHoldingEnabled()
HoldInterface
isHoldingEnabled in interface HoldInterfaceHoldInterface.setHoldingEnabled(boolean)public void release(int modelIndex)
HoldInterfacemodelIndex from being held, so it will
return to its original place in the view. If the modelIndex
is not held, nothing is done.
release in interface HoldInterfacemodelIndex - HoldInterface.hold(int),
HoldInterface.hold(int, int),
HoldInterface.releaseAll()public void releaseAll()
HoldInterface
releaseAll in interface HoldInterfaceHoldInterface.hold(int),
HoldInterface.hold(int, int),
HoldInterface.release(int)public void setHoldingEnabled(boolean enableHolding)
HoldInterface
setHoldingEnabled in interface HoldInterfaceenableHolding - HoldInterface.isHoldingEnabled()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||