|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charva.awt.Component charvax.swing.table.TableHeader
The TableHeader class is used by the ScrollPane for drawing the column headers of a table. It shares the TableModel of its companion Table object.
Field Summary |
Fields inherited from class charva.awt.Component |
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
TableHeader(TableModel model_)
Constructs a table of numRows_ and numColumns_ of empty cells using a DefaultTableModel. |
Method Summary | |
void |
debug(int level_)
|
void |
draw()
To be implemented by concrete subclasses. |
int |
getHeight()
|
Dimension |
getSize()
We pretend that the table header is two rows in height so that the box gets drawn correctly. |
int |
getWidth()
|
boolean |
isFocusTraversable()
Indicates whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal. |
Dimension |
minimumSize()
|
void |
requestFocus()
This method should be invoked by all subclasses of Component which override this method; because this method generates the FOCUS_GAINED event when the component gains the keyboard focus. |
void |
setModel(TableModel model_)
|
Methods inherited from class charva.awt.Component |
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, invalidate, isDisplayed, isEnabled, isTotallyObscured, isValid, isVisible, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableHeader(TableModel model_)
Method Detail |
public void setModel(TableModel model_)
public boolean isFocusTraversable()
Component
isFocusTraversable
in class Component
public void requestFocus()
Component
requestFocus
in class Component
public void draw()
Component
draw
in class Component
public Dimension getSize()
getSize
in class Component
public Dimension minimumSize()
minimumSize
in class Component
public int getWidth()
getWidth
in class Component
public int getHeight()
getHeight
in class Component
public void debug(int level_)
debug
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |