|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.component.AbstractUITextField<C>
C - instance of ITextFieldpublic abstract class AbstractUITextField<C extends ITextField>
Platform and technology independent text field. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
TextField,
JTextField| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
protected |
AbstractUITextField(C pTextField)
Creates a new instance of UITextField. |
| Method Summary | |
|---|---|
int |
getColumns()
Returns the number of columns in this ITextField. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
java.lang.String |
getText()
Returns the text string that the label displays. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
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. |
void |
setEnabled(boolean pEnabled)
Enables or disables this component, depending on the value of the parameter pEnable. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setText(java.lang.String pText)
Defines the single line of text this component will display. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
void |
updateTranslation()
Notification for updating the translation. |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
protected AbstractUITextField(C pTextField)
UITextField.
pTextField - the ITextField.ITextField| Method Detail |
|---|
public java.lang.String getText()
getText in interface ILabelILabel.setText(java.lang.String)public void setText(java.lang.String pText)
setText in interface ILabelpText - the textpublic int getHorizontalAlignment()
getHorizontalAlignment in interface IAlignmentConstantspublic void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantspHorizontalAlignment - the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment in interface IAlignmentConstantspublic void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantspVerticalAlignment - the new vertical alignmentpublic int getColumns()
ITextField.
getColumns in interface ITextFieldpublic void setColumns(int pColumns)
ITextField,
and then invalidate the layout.
setColumns in interface ITextFieldpColumns - the number of columns >= 0public void setEditable(boolean pEditable)
ITextField should be editable.
setEditable in interface ITextFieldpEditable - the boolean to be setpublic boolean isEditable()
ITextField is editable or not.
isEditable in interface ITextFieldITextField.setEditable(boolean)public void setBorderVisible(boolean pVisible)
setBorderVisible in interface ITextFieldpVisible - true to set the border visible or false to hide
the borderpublic boolean isBorderVisible()
isBorderVisible in interface ITextFieldtrue if the border is visible, false if the border is invisiblepublic void selectAll()
selectAll in interface ITextFieldpublic void setEnabled(boolean pEnabled)
pEnable. An enabled component can respond to user
input and generate events. Components are enabled initially by default.
setEnabled in interface IComponentsetEnabled in class UIComponent<C extends ITextField>pEnabled - if true, this component is
enabled; otherwise this component is disabledIComponent.isEnabled()public void updateTranslation()
UIComponent will be added to a displayable containment hierarchy,
when its containment hierarchy is made displayable or the translation table will
be changed.
updateTranslation in class UIComponent<C extends ITextField>UIComponent.setTranslation(TranslationMap),
UIComponent.addNotify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||