public static enum PromptSupport.FocusBehavior extends Enum<PromptSupport.FocusBehavior>
Determines how the JTextComponent is rendered when focused and no
text is present.
| Enum Constant and Description |
|---|
HIDE_PROMPT
Hide the prompt text.
|
HIGHLIGHT_PROMPT
Highlight the prompt text as it would be selected.
|
SHOW_PROMPT
Keep the prompt text visible.
|
| Modifier and Type | Method and Description |
|---|---|
static PromptSupport.FocusBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromptSupport.FocusBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PromptSupport.FocusBehavior SHOW_PROMPT
public static final PromptSupport.FocusBehavior HIGHLIGHT_PROMPT
public static final PromptSupport.FocusBehavior HIDE_PROMPT
public static PromptSupport.FocusBehavior[] values()
for (PromptSupport.FocusBehavior c : PromptSupport.FocusBehavior.values()) System.out.println(c);
public static PromptSupport.FocusBehavior 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 nullCopyright © 2017. All Rights Reserved.