|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.TableColumn com.jidesoft.grid.TableColumnGroup
public class TableColumnGroup
TableColumnGroup is used by NestedTableHeader to implement nested column header feature.
Field Summary | |
---|---|
protected Vector |
_columns
|
protected TableColumnGroup |
_parent
|
protected int |
margin
|
Fields inherited from class javax.swing.table.TableColumn |
---|
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width |
Constructor Summary | |
---|---|
TableColumnGroup(JTableHeader tableHeader,
String text)
|
|
TableColumnGroup(String text)
|
|
TableColumnGroup(TableCellRenderer renderer,
String text)
|
Method Summary | |
---|---|
void |
add(Object obj)
Adds TableColumn or TableColumnGroup to this TableColumnGroup. |
protected TableCellRenderer |
createDefaultHeaderRenderer()
|
int |
getChildCount()
Gets the number of children in this TableColumnGroup. |
List |
getChildren()
Gets the list of TableColumns or TableColumnGroups that are in this TableColumnGroup. |
int |
getColumnIndex()
Gets the column index for this TableColumnGroup. |
protected int |
getColumnIndex(TableColumnGroup tableColumnGroup)
|
TableCellRenderer |
getDefaultHeaderRenderer()
|
TableCellRenderer |
getHeaderRenderer()
Gets the header renderer. |
int |
getLastColumnIndex()
Gets the last column index for this TableColumnGroup. |
protected int |
getLastColumnIndex(TableColumnGroup tableColumnGroup)
|
TableColumnGroup |
getParent()
Gets the parent of this TableColumnGroup. |
Dimension |
getSize(JTable table)
Gets the size of the TableColumnGroup. |
JTableHeader |
getTableHeader()
|
String |
getToolTipText()
Gets the ToolTip text. |
protected boolean |
isVisibleColumn(TableColumn col)
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
remove(Object obj)
Removes TableColumn or TableColumnGroup to this TableColumnGroup. |
void |
setHeaderValue(Object headerValue)
|
protected void |
setParent(TableColumnGroup parent)
Sets the parent of this TableColumnGroup. |
void |
setTableHeader(JTableHeader tableHeader)
|
void |
setToolTipText(String toolTipText)
Sets the ToolTip text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Vector _columns
protected int margin
protected TableColumnGroup _parent
Constructor Detail |
---|
public TableColumnGroup(String text)
public TableColumnGroup(TableCellRenderer renderer, String text)
public TableColumnGroup(JTableHeader tableHeader, String text)
Method Detail |
---|
public JTableHeader getTableHeader()
public void setTableHeader(JTableHeader tableHeader)
public void setHeaderValue(Object headerValue)
setHeaderValue
in class TableColumn
protected TableCellRenderer createDefaultHeaderRenderer()
createDefaultHeaderRenderer
in class TableColumn
public TableCellRenderer getHeaderRenderer()
getHeaderRenderer
in class TableColumn
public TableCellRenderer getDefaultHeaderRenderer()
public Dimension getSize(JTable table)
table
- the table.
public TableColumnGroup getParent()
public int getColumnIndex()
public int getLastColumnIndex()
protected int getColumnIndex(TableColumnGroup tableColumnGroup)
protected int getLastColumnIndex(TableColumnGroup tableColumnGroup)
protected void setParent(TableColumnGroup parent)
add(Object)
to add a
TableColumnGroup, we will call this method automatically.
parent
- the parent of this TableColumnGroup.public List getChildren()
public int getChildCount()
protected boolean isVisibleColumn(TableColumn col)
public void add(Object obj)
obj
- TableColumn or TableColumnGrouppublic void remove(Object obj)
obj
- TableColumn or TableColumnGrouppublic void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public String getToolTipText()
public void setToolTipText(String toolTipText)
toolTipText
- the ToolTip text
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |