javax.rad.ui.component
Interface ITextField

All Superinterfaces:
IAlignmentConstants, IComponent, ILabel, INamedObject, IResource
All Known Subinterfaces:
IPasswordField, ITextArea
All Known Implementing Classes:
AbstractUITextField, SwingPasswordField, SwingTextArea, SwingTextComponent, SwingTextField, UIPasswordField, UITextArea, UITextField

public interface ITextField
extends ILabel

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

See Also:
TextField, JTextField

Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Method Summary
 int getColumns()
          Returns the number of columns in this ITextField.
 boolean isBorderVisible()
          Returns whether the the border of the text field is visible.
 boolean isEditable()
          Returns the boolean indicating whether this ITextField is editable or not.
 void selectAll()
          Selects the whole text, and sets the caret position to the end.
 void setBorderVisible(boolean pVisible)
          Sets the border of the text field visible or invisible.
 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.
 
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
 

Method Detail

getColumns

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

Returns:
the number of columns >= 0

setColumns

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

Parameters:
pColumns - the number of columns >= 0
Throws:
IllegalArgumentException - if columns is less than 0

setEditable

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

Parameters:
pEditable - the boolean to be set

isEditable

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

Returns:
the boolean value
See Also:
setEditable(boolean)

setBorderVisible

void setBorderVisible(boolean pVisible)
Sets the border of the text field visible or invisible.

Parameters:
pVisible - true to set the border visible or false to hide the border

isBorderVisible

boolean isBorderVisible()
Returns whether the the border of the text field is visible.

Returns:
true if the border is visible, false if the border is invisible

selectAll

void selectAll()
Selects the whole text, and sets the caret position to the end.



Copyright © 2009 SIB Visions GmbH. All Rights Reserved.