com.sibvisions.rad.ui.web.impl.component
Class WebTextField

java.lang.Object
  extended by com.sibvisions.rad.ui.web.impl.WebResource
      extended by com.sibvisions.rad.ui.web.impl.WebComponent
          extended by com.sibvisions.rad.ui.web.impl.component.WebTextField
All Implemented Interfaces:
ILabel, ITextField, IAlignmentConstants, IComponent, IResource
Direct Known Subclasses:
WebPasswordField, WebTextArea

public class WebTextField
extends WebComponent
implements ITextField

Web server implementation of ITextField.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent
componentId
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
WebTextField()
          Creates a new instance of WebTextField.
 
Method Summary
 int getColumns()
          Returns the number of columns in this ITextField.
 String getText()
          Returns the text string that the label displays.
 boolean isEditable()
          Returns the boolean indicating whether this ITextField is editable or not.
 void setColumns(int pColumns)
          Sets the number of columns in this ITextField, and then invalidate the layout.
 void setEditable(boolean pEditable)
          Sets the specified boolean to indicate whether or not this ITextField should be editable.
 void setText(String pText)
          Defines the single line of text this component will display.
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, finalize, getAsString, getBackground, getBounds, getChangedProperties, getComponentId, getComponentName, getConstraints, getCursor, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getProperty, getSize, getToolTipText, getVerticalAlignment, isBackgroundSet, isChanged, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setComponentId, setConstraints, setCursor, setEnabled, setFactory, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setProperty, setProperty, setSize, setToolTipText, setVerticalAlignment, setVisible
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource
getNullableAsString, getResource, setAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, 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, setHorizontalAlignment, setVerticalAlignment
 

Constructor Detail

WebTextField

public WebTextField()
Creates a new instance of WebTextField.

See Also:
ITextField
Method Detail

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

getColumns

public int getColumns()
Returns the number of columns in this ITextField.

Specified by:
getColumns in interface ITextField
Returns:
the number of columns >= 0

setColumns

public void setColumns(int pColumns)
Sets the number of columns in this ITextField, and then invalidate the layout.

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

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)

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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.