|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcharva.awt.Component
charva.awt.util.MultiLineLabel
Implements a label that displays multiple lines of text.
| Field Summary | |
static int |
CENTER
|
static int |
LEFT
|
static int |
RIGHT
|
| 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 | |
MultiLineLabel(java.lang.String[] textarray_)
|
|
| Method Summary | |
void |
debug(int level_)
|
void |
draw()
To be implemented by concrete subclasses. |
int |
getHeight()
|
Dimension |
getSize()
This may be wrong, but it'll do for now. |
java.lang.String[] |
getText()
|
int |
getWidth()
|
boolean |
isFocusTraversable()
This component will not receive focus when Tab or Shift-Tab is pressed. |
Dimension |
minimumSize()
|
void |
processKeyEvent(KeyEvent ke_)
The MultiLineLabel class ignores key events. |
void |
requestFocus()
The MultiLineLabel component never gets the keyboard input focus. |
void |
setText(java.lang.String[] textarray_)
|
| 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, 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 |
| Field Detail |
public static final int LEFT
public static final int CENTER
public static final int RIGHT
| Constructor Detail |
public MultiLineLabel(java.lang.String[] textarray_)
| Method Detail |
public Dimension minimumSize()
minimumSize in class Componentpublic void draw()
Component
draw in class Componentpublic Dimension getSize()
getSize in class Componentpublic int getWidth()
getWidth in class Componentpublic int getHeight()
getHeight in class Componentpublic void setText(java.lang.String[] textarray_)
public java.lang.String[] getText()
public boolean isFocusTraversable()
isFocusTraversable in class Componentpublic void processKeyEvent(KeyEvent ke_)
processKeyEvent in class Componentpublic void requestFocus()
requestFocus in class Componentpublic void debug(int level_)
debug in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||