charvax.swing

Class JComponent

Known Direct Subclasses:
AbstractButton, JComboBox, JFileChooser, JLabel, JList, JProgressBar, JScrollBar, JTable, JTextComponent

public abstract class JComponent
extends Component

The base class for charva.swing components. JComponent provides a border property that implicitly defines the component's insets. Note that JComponent is a subclass of Component, not of Container (whereas java.swing.JComponent is a subclass of java.awt.Container).

Field Summary

protected Border
_border

Fields inherited from class charva.awt.Component

BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT, _alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible

Constructor Summary

JComponent()
Constructor

Method Summary

void
draw()
Draws the border of the component (if there is one).
Border
getBorder()
Insets
getInsets()
void
setBorder(Border border_)

Methods inherited from class charva.awt.Component

addFocusListener, addKeyListener, contains, contains, debug, draw, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor

Field Details

_border

protected Border _border

Constructor Details

JComponent

public JComponent()
Constructor

Method Details

draw

public void draw()
Draws the border of the component (if there is one).
Overrides:
draw in interface Component

getBorder

public Border getBorder()

getInsets

public Insets getInsets()

setBorder

public void setBorder(Border border_)