: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw
Class LwLabel

java.lang.Object
  |
  +--org.zaval.lw.LwCanvas
        |
        +--org.zaval.lw.LwLabel
All Implemented Interfaces:
Layoutable, LwComponent, Validationable
Direct Known Subclasses:
LwTextField

public class LwLabel
extends LwCanvas

This light weight component is used to show a text by using LwTextRender as the face view.


Fields inherited from class org.zaval.lw.LwCanvas
bits, bottom, height, isValidValue, left, parent, psHeight, psWidth, right, skins, temporary, top, width, x, y
 
Constructor Summary
LwLabel()
          Constructs the component.
LwLabel(LwTextRender r)
          Constructs the component with the specified text render.
LwLabel(java.lang.String t)
          Constructs the component with the specified string.
LwLabel(TextModel t)
          Constructs the component with the specified text model.
 
Method Summary
 java.awt.Color getForeground()
          Gets the text color.
 java.lang.String getText()
          Gets the text that is shown with the class as a string.
 TextModel getTextModel()
          Gets the text model that is shown with the class.
 LwTextRender getTextRender()
          Gets the face view as a LwTextReneder instance.
 void setForeground(java.awt.Color c)
          Sets the text color.
 void setText(java.lang.String s)
          Sets the specified string to be shown with the class.
 
Methods inherited from class org.zaval.lw.LwCanvas
calcInsets, calcPreferredSize, canHaveFocus, customize, cvp, getBackground, getBottom, getBounds, getHeight, getInsets, getLeft, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getPSImpl, getRight, getSize, getTop, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isValid, isVisible, paint, recalc, repaint, repaint, repaint, requestFocus, setBackground, setEnabled, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, update, validate, viewManChanged, vrp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LwLabel

public LwLabel()
Constructs the component. The text string is set to "".

LwLabel

public LwLabel(java.lang.String t)
Constructs the component with the specified string.
Parameters:
t - the specified string.

LwLabel

public LwLabel(TextModel t)
Constructs the component with the specified text model.
Parameters:
t - the specified text model.

LwLabel

public LwLabel(LwTextRender r)
Constructs the component with the specified text render.
Parameters:
r - the specified text render.
Method Detail

getTextRender

public LwTextRender getTextRender()
Gets the face view as a LwTextReneder instance.
Returns:
a text render instance.

getText

public java.lang.String getText()
Gets the text that is shown with the class as a string.
Returns:
a string.

getTextModel

public TextModel getTextModel()
Gets the text model that is shown with the class. The text model is represented with org.zaval.data.TextModel interface.
Returns:
a text model.

setText

public void setText(java.lang.String s)
Sets the specified string to be shown with the class.
Parameters:
s - the specified string.

setForeground

public void setForeground(java.awt.Color c)
Sets the text color. The method uses appropriate method of the text render that is used as the face view.
Parameters:
c - the specified text color.

getForeground

public java.awt.Color getForeground()
Gets the text color.
Returns:
a text color.


: up