|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.ultraswing.CPanel | +--com.ultraswing.CSplitPane2 | +--com.ultraswing.CTableRowHeader
Table row header object
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CTableRowHeader(JTable table)
Constructs a row header object |
|
CTableRowHeader(JTable table,
List headerValues)
Constructs a row header object |
Method Summary | |
Component |
getComponentAt(int x,
int y)
|
Component |
getComponentAt(Point p)
|
Dimension |
getPreferredSize()
|
int |
getRowHeight()
Returns the height of a table row, in pixels |
int |
getRowHeight(int row)
Returns the height, in pixels, of the cells in row. |
int |
getTotalHeight()
Returns the total height of all headers |
boolean |
isSameHeight()
Determines whether all header should have same height |
void |
setSameHeight(boolean b)
If passed b is true, all the headers have same height |
void |
setValueAt(JComponent c,
int row)
Sets the value of the cell at row |
void |
setWidth(int width)
Sets the width of this row header object |
Methods inherited from class com.ultraswing.CPanel |
contains, getPrefferedSize, onResize, paintBorder, processComponentEvent, setBackground, setBackgroundImage, setGradientBackground |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CTableRowHeader(JTable table)
table
- the table this header belongs topublic CTableRowHeader(JTable table, List headerValues)
table
- the table this header belongs toheaderValues
- header valuesMethod Detail |
public void setSameHeight(boolean b)
b
is true, all the headers have same height
public boolean isSameHeight()
public int getTotalHeight()
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public int getRowHeight()
public int getRowHeight(int row)
row
- the row whose height is to be returnedpublic void setWidth(int width)
public void setValueAt(JComponent c, int row)
c
- the value of this cellrow
- row indexpublic Component getComponentAt(int x, int y)
getComponentAt
in class Container
public Component getComponentAt(Point p)
getComponentAt
in class Container
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |