|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunbbayes.gui.table.ColumnGroup
public class ColumnGroup
Field Summary | |
---|---|
protected int |
margin
The margin to use for renderering. |
protected TableCellRenderer |
renderer
Cell renderer for group header. |
protected String |
text
The ColumnGroup instance name. |
protected Vector |
v
Holds the TableColumn or ColumnGroup objects contained within this ColumnGroup instance. |
Constructor Summary | |
---|---|
ColumnGroup(String text)
Standard ColumnGroup constructor. |
|
ColumnGroup(TableCellRenderer renderer,
String text)
Standard ColumnGroup constructor. |
Method Summary | |
---|---|
void |
add(Object obj)
Add a TableColumn or ColumnGroup object to the ColumnGroup instance. |
Vector |
getColumnGroups(TableColumn c,
Vector g)
Get the ColumnGroup list containing the required table column. |
TableCellRenderer |
getHeaderRenderer()
Returns the TableCellRenderer for the ColumnGroup. |
Object |
getHeaderValue()
Get the ColumnGroup header value. |
Dimension |
getSize(JTable table)
Get the dimension of this ColumnGroup. |
void |
setColumnMargin(int margin)
Sets the margin that ColumnGroup instance will use and all held TableColumns and/or ColumnGroups. |
void |
setHeaderRenderer(TableCellRenderer renderer)
Set the TableCellRenderer for this ColumnGroup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TableCellRenderer renderer
protected Vector v
protected String text
protected int margin
Constructor Detail |
---|
public ColumnGroup(String text)
text
- Name of the ColumnGroup which will be displayed
when the ColumnGroup is renderered.public ColumnGroup(TableCellRenderer renderer, String text)
renderer
- a TableCellRenderer for the group.text
- Name of the ColumnGroup which will be displayed
when the ColumnGroup is renderered.Method Detail |
---|
public void add(Object obj)
obj
- TableColumn or ColumnGrouppublic Vector getColumnGroups(TableColumn c, Vector g)
g
- vector to populate with the ColumnGroup/sc
- TableColumn
public TableCellRenderer getHeaderRenderer()
public void setHeaderRenderer(TableCellRenderer renderer)
renderer
- the renderer to usepublic Object getHeaderValue()
public Dimension getSize(JTable table)
table
- the table the header is being rendered in
public void setColumnMargin(int margin)
margin
- the margin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |