All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.ibm.hi.customizer.beans.scci.SCTextfield

public interface SCTextfield
extends SCTextComponent
SCTextfield is the interface for textfield components.


Method Index

 o cut()
Cuts any selected text from the textfield and copies it into the clipboard.
 o getEchoChar()
Gets echo character.
 o isEditable()
Indicates whether or not this text component is editable.
 o isPassword()
Gets the password flag.
 o paste()
Pastes clipboard text into the text component.
 o replaceSelection(String)
Replaces any selected text with the specified text.
 o setEchoChar(char)
Sets the echo character.
 o setEditable(boolean)
Sets the flag that determines whether or not this textfield is editable.
 o setPassword(boolean)
Sets the password flag.

Methods

 o setEchoChar
 public abstract void setEchoChar(char character)
Sets the echo character.

The echo character is only used if this textfield's password property is set to true. The default echo character is '*'

Parameters:
character - the echo character for this textfield.
See Also:
getEchoChar, setPassword
 o getEchoChar
 public abstract char getEchoChar()
Gets echo character.

Returns:
the echo character
See Also:
setEchoChar, setPassword
 o setPassword
 public abstract void setPassword(boolean password)
Sets the password flag.

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.

Parameters:
password - a flag indicating whether this textfield should be a password field or not
See Also:
setEchoChar, isPassword
 o isPassword
 public abstract boolean isPassword()
Gets the password flag.

Returns:
true if this text component is a password field; false otherwise.
See Also:
setPassword
 o setEditable
 public abstract void setEditable(boolean editable)
Sets the flag that determines whether or not this textfield is 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.

Parameters:
editable - a flag indicating whether this textfield should be user editable.
See Also:
isEditable
 o isEditable
 public abstract boolean isEditable()
Indicates whether or not this text component is editable.

Returns:
true if this text component is editable; false otherwise.
See Also:
setEditable
 o cut
 public abstract void cut()
Cuts any selected text from the textfield and copies it into the clipboard.

See Also:
copy
 o replaceSelection
 public abstract void replaceSelection(String newText)
Replaces any selected text with the specified text.

Parameters:
newText - the new text to replace the selected text
See Also:
select
 o paste
 public abstract void paste()
Pastes clipboard text into the text component.

See Also:
copy

All Packages  Class Hierarchy  This Package  Previous  Next  Index