javax.rad.ui.component
Interface ILabel

All Superinterfaces:
IAlignmentConstants, IComponent, INamedObject, IResource
All Known Subinterfaces:
IActionComponent, IButton, ICheckBox, ICheckBoxMenuItem, IGroupPanel, IMenu, IMenuItem, IPasswordField, IRadioButton, ITextArea, ITextField, IToggleActionComponent, IToggleButton
All Known Implementing Classes:
AbstractUIActionComponent, AbstractUIButton, AbstractUIMenuItem, AbstractUITextField, AbstractUIToggleButton, SwingAbstractButton, SwingButton, SwingCheckBox, SwingCheckBoxMenuItem, SwingGroupPanel, SwingLabel, SwingMenu, SwingMenuItem, SwingPasswordField, SwingRadioButton, SwingTextArea, SwingTextComponent, SwingTextField, SwingToggleButton, UIButton, UICheckBox, UICheckBoxMenuItem, UIGroupPanel, UILabel, UIMenu, UIMenuItem, UIPasswordField, UIRadioButton, UITextArea, UITextField, UIToggleButton

public interface ILabel
extends IComponent, IAlignmentConstants

Platform and technology independent Label definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .

See Also:
Label, JLabel

Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Method Summary
 String getText()
          Returns the text string that the label displays.
 void setText(String pText)
          Defines the single line of text this component will display.
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Method Detail

getText

String getText()
Returns the text string that the label displays.

Returns:
a String
See Also:
setText(java.lang.String)

setText

void setText(String pText)
Defines the single line of text this component will display. If the value of text is null or empty string, nothing is displayed.

Parameters:
pText - the text


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.