com.sibvisions.rad.ui.qt.impl.component
Class QtTextArea

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<C>
      extended by com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
          extended by com.sibvisions.rad.ui.qt.impl.QtComponent<QVxTextEdit>
              extended by com.sibvisions.rad.ui.qt.impl.component.QtTextArea
All Implemented Interfaces:
ILabel, ITextArea, ITextField, IAlignmentConstants, IComponent, IResource

public class QtTextArea
extends QtComponent<QVxTextEdit>
implements ITextArea

The QtTextArea is the ITextArea implementation for QT.

See Also:
ITextArea, QTextEdit

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent
parent
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase
factory
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
resource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
QtTextArea()
          Creates a new instance of QtTextArea.
 
Method Summary
 int getColumns()
          Not supported.
 int getRows()
          Not supported.
 String getText()
          Returns the text string that the label displays.
 boolean isEditable()
          Returns the boolean indicating whether this ITextField is editable or not.
 boolean isWordWrap()
          Gets the current state of the word wrap mode.
 void setColumns(int columns)
          Not supported.
 void setEditable(boolean pEditable)
          Sets the specified boolean to indicate whether or not this ITextField should be editable.
 void setHorizontalAlignment(int pHorizontalAlignment)
          Sets the horizontal alignment. Possible values are defined in AlignmentConstants.
 void setRows(int rows)
          Not supported.
 void setText(String pText)
          Defines the single line of text this component will display.
 void setVerticalAlignment(int pVerticalAlignment)
          Sets the vertical alignment. Possible values are defined in AlignmentConstants.
 void setWordWrap(boolean pWordWrap)
          Sets the current state of the word wrap mode.
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent
addStyle, capture, getBackground, getBounds, getCursor, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyleSheet, getToolTipText, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setResourceVisible, setSize, setToolTipText
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getFactory, isVisible, setFactory, setVisible
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
equals, getResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, 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
 

Constructor Detail

QtTextArea

public QtTextArea()
Creates a new instance of QtTextArea.

Method Detail

setRows

public void setRows(int rows)
Not supported.

Sets the number of rows in this ITextArea, and then invalidate the layout.

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

getRows

public int getRows()
Not supported.

Specified by:
getRows in interface ITextArea
Returns:
-1
See Also:
ITextArea.getRows()

setColumns

public void setColumns(int columns)
Not supported.

Sets the number of columns in this ITextField, and then invalidate the layout.

Specified by:
setColumns in interface ITextField
Parameters:
columns - the number of columns >= 0

getColumns

public int getColumns()
Not supported.

Specified by:
getColumns in interface ITextField
Returns:
-1
See Also:
ITextField.getColumns()

setEditable

public void setEditable(boolean pEditable)
Sets the specified boolean to indicate whether or not this ITextField should be editable.

Specified by:
setEditable in interface ITextField
Parameters:
pEditable - the boolean to be set

isEditable

public boolean isEditable()
Returns the boolean indicating whether this ITextField is editable or not.

Specified by:
isEditable in interface ITextField
Returns:
the boolean value
See Also:
ITextField.setEditable(boolean)

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.

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.

getText

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

Specified by:
getText in interface ILabel
Returns:
a String
See Also:
ILabel.setText(java.lang.String)

setText

public 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.

Specified by:
setText in interface ILabel
Parameters:
pText - the text

setHorizontalAlignment

public void setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. Possible values are defined in AlignmentConstants.

Specified by:
setHorizontalAlignment in interface IAlignmentConstants
Overrides:
setHorizontalAlignment in class QtComponent<QVxTextEdit>
Parameters:
pHorizontalAlignment - the new vertical alignment

setVerticalAlignment

public void setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. Possible values are defined in AlignmentConstants.

Specified by:
setVerticalAlignment in interface IAlignmentConstants
Overrides:
setVerticalAlignment in class QtComponent<QVxTextEdit>
Parameters:
pVerticalAlignment - the new vertical alignment


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.