public enum TextChangedBehavior extends Enum<TextChangedBehavior>
Enum Constant and Description |
---|
CURSOR_TO_BEGIN
Scrolls to the first letter and places the cursor before the text.
|
CURSOR_TO_END
Scrolls to the last letter and places the cursor after the text.
|
SYSTEM_DEFAULT
Lets the system handle the behavior.
|
Modifier and Type | Method and Description |
---|---|
void |
textChanged(JTextComponent txt)
Performs the appropriate action.
|
static TextChangedBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextChangedBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextChangedBehavior SYSTEM_DEFAULT
This is the default behavior.
public static final TextChangedBehavior CURSOR_TO_BEGIN
public static final TextChangedBehavior CURSOR_TO_END
public static TextChangedBehavior[] values()
for (TextChangedBehavior c : TextChangedBehavior.values()) System.out.println(c);
public static TextChangedBehavior valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void textChanged(JTextComponent txt)
txt
- the text componentCopyright © 2003–2021 XDEV Software. All rights reserved.