javax.rad.genui.component
Class UITextArea

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<C>
          extended by javax.rad.genui.component.AbstractUITextField<ITextArea>
              extended by javax.rad.genui.component.UITextArea
All Implemented Interfaces:
ITranslatable, ILabel, ITextArea, ITextField, IAlignmentConstants, IComponent, IResource, INamedObject

public class UITextArea
extends AbstractUITextField<ITextArea>
implements ITextArea

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


Field Summary
 
Fields inherited from class javax.rad.genui.UIComponent
lLastTranslationModified, parent
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
  UITextArea()
          Creates a new instance of UITextArea.
protected UITextArea(ITextArea pTextArea)
          Creates a new instance of UITextArea with the given text area.
  UITextArea(String pText)
          Creates a new instance of UITextArea.
 
Method Summary
 int getRows()
          Returns the number of rows in this ITextArea.
 boolean isWordWrap()
          Gets the current state of the word wrap mode.
 void setRows(int pRows)
          Sets the number of rows in this ITextArea, and then invalidate the layout.
 void setWordWrap(boolean pWordWrap)
          Sets the current state of the word wrap mode.
 
Methods inherited from class javax.rad.genui.component.AbstractUITextField
getColumns, getHorizontalAlignment, getText, getVerticalAlignment, isBorderVisible, isEditable, selectAll, setBorderVisible, setColumns, setEditable, setEnabled, setHorizontalAlignment, setText, setVerticalAlignment, updateTranslation
 
Methods inherited from class javax.rad.genui.UIComponent
addNotify, beforeAddNotify, capture, createCellFormatter, createNodeFormatter, debug, error, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getResource, getSize, getToolTipText, getTranslation, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, removeNotify, requestFocus, setBackground, setBounds, setBounds, setCursor, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPreferredSize, setPreferredSize, setSize, setSize, setToolTipText, setTranslation, setTranslationEnabled, setVisible, translate
 
Methods inherited from class javax.rad.genui.UIResource
equals, getUIResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.component.ITextField
getColumns, isBorderVisible, isEditable, selectAll, setBorderVisible, setColumns, setEditable
 
Methods inherited from interface javax.rad.ui.component.ILabel
getText, setText
 
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
 

Constructor Detail

UITextArea

public UITextArea()
Creates a new instance of UITextArea.

See Also:
ITextArea

UITextArea

protected UITextArea(ITextArea pTextArea)
Creates a new instance of UITextArea with the given text area.

Parameters:
pTextArea - the text area
See Also:
ITextArea

UITextArea

public UITextArea(String pText)
Creates a new instance of UITextArea.

Parameters:
pText - the text.
See Also:
ITextArea
Method Detail

getRows

public int getRows()
Returns the number of rows in this ITextArea.

Specified by:
getRows in interface ITextArea
Returns:
the number of columns >= 0

setRows

public void setRows(int pRows)
Sets the number of rows in this ITextArea, and then invalidate the layout.

Specified by:
setRows in interface ITextArea
Parameters:
pRows - the number of rows >= 0

isWordWrap

public boolean isWordWrap()
Gets the current state of the word wrap mode.

Specified by:
isWordWrap in interface ITextArea
Returns:
the current state of the word wrap mode.

setWordWrap

public void setWordWrap(boolean pWordWrap)
Sets the current state of the word wrap mode.

Specified by:
setWordWrap in interface ITextArea
Parameters:
pWordWrap - the current state of the word wrap mode.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.