charva.awt.util

Class MultiLineLabel


public class MultiLineLabel
extends Component

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

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

Constructor Summary

MultiLineLabel(String[] textarray_)

Method Summary

void
debug(int level_)
void
draw()
int
getHeight()
Dimension
getSize()
This may be wrong, but it'll do for now.
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(String[] textarray_)

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, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor

Field Details

CENTER

public static final int CENTER
Field Value:
2

LEFT

public static final int LEFT
Field Value:
1

RIGHT

public static final int RIGHT
Field Value:
3

Constructor Details

MultiLineLabel

public MultiLineLabel(String[] textarray_)

Method Details

debug

public void debug(int level_)
Overrides:
debug in interface Component

draw

public void draw()
Overrides:
draw in interface Component

getHeight

public int getHeight()
Overrides:
getHeight in interface Component

getSize

public Dimension getSize()
This may be wrong, but it'll do for now.
Overrides:
getSize in interface Component

getText

public String[] getText()

getWidth

public int getWidth()
Overrides:
getWidth in interface Component

isFocusTraversable

public boolean isFocusTraversable()
This component will not receive focus when Tab or Shift-Tab is pressed.
Overrides:
isFocusTraversable in interface Component

minimumSize

public Dimension minimumSize()
Overrides:
minimumSize in interface Component

processKeyEvent

public void processKeyEvent(KeyEvent ke_)
The MultiLineLabel class ignores key events. A MultiLineLabel should never have input focus anyway.
Overrides:
processKeyEvent in interface Component

requestFocus

public void requestFocus()
The MultiLineLabel component never gets the keyboard input focus.
Overrides:
requestFocus in interface Component

setText

public void setText(String[] textarray_)