|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SCTextfield is the interface for textfield components.
Method Summary | |
void |
cut()
Cuts any selected text from the textfield and copies it into the clipboard. |
char |
getEchoChar()
Gets echo character. |
boolean |
isEditable()
Indicates whether or not this text component is editable. |
boolean |
isPassword()
Gets the password flag. |
void |
paste()
Pastes clipboard text into the text component. |
void |
replaceSelection(java.lang.String newText)
Replaces any selected text with the specified text. |
void |
setEchoChar(char character)
Sets the echo character. |
void |
setEditable(boolean editable)
Sets the flag that determines whether or not this textfield is editable. |
void |
setPassword(boolean password)
Sets the password flag. |
Methods inherited from interface com.ibm.hi.customizer.beans.scci.SCTextComponent |
clearSelection, copy, getCaretPosition, getColumns, getSelectedText, getSelectionEnd, getSelectionStart, getText, getText, select, selectAll, setCaretPosition, setSelectionEnd, setSelectionStart, setText, setText |
Methods inherited from interface com.ibm.hi.customizer.beans.scci.SCCustomComponent |
getBackgroundColor, getCaption, getForegroundColor, getGlobalRead, getGlobalWrite, getHelpCaption, getHostLinkLength, getHostLinkPosition, getTabNumber, hasFocus, isTempHidden, isVisible, readGlobalVariable, requestFocus, setBackgroundColor, setCaption, setForegroundColor, setGlobalRead, setGlobalWrite, setHelpCaption, setTempHidden, setVisible, toString, writeGlobalVariable |
Method Detail |
public void setEchoChar(char character)
The echo character is only used if this textfield's
password property is set to true
.
The default echo character is '*'
character
- the echo character for this textfield.getEchoChar()
,
setPassword(boolean)
public char getEchoChar()
setEchoChar(char)
,
setPassword(boolean)
public void setPassword(boolean password)
If the flag is set to true
, this textfield will become
a password field, echoing an echo character, rather than
the actual text; if the flag is set to false
, this
textfield will disregard the echo character and display the actual text.
password
- a flag indicating whether this textfield
should be a password field or notsetEchoChar(char)
,
isPassword()
public boolean isPassword()
true
if this text component is
a password field; false
otherwise.setPassword(boolean)
public void setEditable(boolean editable)
If the flag is set to true
, this textfield
becomes user editable. If the flag is set to false
,
the user cannot change the text of this textfield.
editable
- a flag indicating whether this textfield
should be user editable.isEditable()
public boolean isEditable()
true
if this text component is
editable; false
otherwise.setEditable(boolean)
public void cut()
SCTextComponent.copy()
public void replaceSelection(java.lang.String newText)
newText
- the new text to replace the selected textSCTextComponent.select(int, int)
public void paste()
SCTextComponent.copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |