public class PromptTextAreaUI extends PromptTextUI
PromptTextUI
implementation for rendering prompts on
JTextArea
s and uses a JTextArea
as a prompt component.PromptTextUI.PainterHighlighter
Modifier and Type | Field and Description |
---|---|
private static JTextArea |
txt
Shared prompt renderer.
|
delegate, focusHandler, promptComponent
Constructor and Description |
---|
PromptTextAreaUI(TextUI delegate)
Creates a new
PromptTextAreaUI . |
Modifier and Type | Method and Description |
---|---|
protected JTextComponent |
createPromptComponent()
Returns a shared
JTextArea . |
JTextComponent |
getPromptComponent(JTextComponent txt)
Overrides
getPromptComponent(JTextComponent) to additionally
update JTextArea specific properties. |
contains, damageRange, damageRange, equals, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getEditorKit, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, hashCode, installUI, modelToView, modelToView, paint, paintPromptComponent, shouldPaintPrompt, toString, uninstallUI, update, viewToModel, viewToModel
createUI, getBaselineResizeBehavior
public PromptTextAreaUI(TextUI delegate)
PromptTextAreaUI
.delegate
- public JTextComponent getPromptComponent(JTextComponent txt)
getPromptComponent(JTextComponent)
to additionally
update JTextArea
specific properties.getPromptComponent
in class PromptTextUI
protected JTextComponent createPromptComponent()
JTextArea
.createPromptComponent
in class PromptTextUI
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses