public class WebTextAreaUI extends WTextAreaUI
JTextArea
component.BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
Modifier and Type | Field and Description |
---|---|
protected String |
inputPrompt
Input prompt text.
|
protected JTextArea |
textArea
Runtime variables.
|
Constructor and Description |
---|
WebTextAreaUI() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(JComponent c,
int x,
int y) |
static ComponentUI |
createUI(JComponent c)
Returns an instance of the
WebTextAreaUI for the specified component. |
String |
getInputPrompt()
Returns input prompt text.
|
Dimension |
getPreferredSize(JComponent c) |
void |
installUI(JComponent c) |
protected void |
paintSafely(Graphics g) |
void |
setInputPrompt(String text)
Sets input prompt text.
|
void |
uninstallUI(JComponent c) |
create, getBaseline, getBaselineResizeBehavior, getMinimumSize, getPropertyPrefix, installDefaults, propertyChange
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintBackground, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModel
getAccessibleChild, getAccessibleChildrenCount
protected String inputPrompt
protected transient JTextArea textArea
@NotNull public static ComponentUI createUI(@NotNull JComponent c)
WebTextAreaUI
for the specified component.
This tricky method is used by UIManager
to create component UIs when needed.c
- component that will use UI instanceWebTextAreaUI
public void installUI(@NotNull JComponent c)
installUI
in class BasicTextUI
public void uninstallUI(@NotNull JComponent c)
uninstallUI
in class BasicTextUI
@Nullable public String getInputPrompt()
IInputPrompt
public void setInputPrompt(@Nullable String text)
IInputPrompt
text
- input prompt textpublic boolean contains(@NotNull JComponent c, int x, int y)
contains
in class ComponentUI
protected void paintSafely(@NotNull Graphics g)
paintSafely
in class BasicTextUI
@Nullable public Dimension getPreferredSize(@NotNull JComponent c)
getPreferredSize
in class BasicTextAreaUI
Copyright © 2020. All rights reserved.