charvax.swing.table
public class TableHeader extends Component
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
TableHeader(TableModel model_)
Constructs a table of numRows_ and numColumns_ of empty cells
using a DefaultTableModel.
|
Modifier and Type | Method and Description |
---|---|
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_) |
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, invalidate, isDisplayed, isEnabled, isRecursivelyVisible, isTotallyObscured, isValid, isVisible, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor
public TableHeader(TableModel model_)
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
public Dimension getSize()
public Dimension minimumSize()
minimumSize
in class Component