public class PromptTextAreaUI extends PromptTextUI
PromptTextUI implementation for rendering prompts on
JTextAreas and uses a JTextArea as a prompt component.PromptTextUI.PainterHighlighterdelegate, 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, viewToModelcreateUI, getBaselineResizeBehaviorpublic PromptTextAreaUI(TextUI delegate)
PromptTextAreaUI.delegate - public JTextComponent getPromptComponent(JTextComponent txt)
getPromptComponent(JTextComponent) to additionally
update JTextArea specific properties.getPromptComponent in class PromptTextUIprotected JTextComponent createPromptComponent()
JTextArea.createPromptComponent in class PromptTextUICopyright © 2017. All Rights Reserved.