public class PromptTextAreaUI extends PromptTextUI
PromptTextUI
implementation for rendering prompts on
JTextArea
s and uses a JTextArea
as a prompt component.PromptTextUI.PainterHighlighter
delegate, promptComponent
Constructor | Description |
---|---|
PromptTextAreaUI(TextUI delegate) |
Creates a new
PromptTextAreaUI . |
Modifier and Type | Method | Description |
---|---|---|
protected JTextComponent |
createPromptComponent() |
Returns a shared
JTextArea . |
JTextComponent |
getPromptComponent(JTextComponent txt) |
Overrides
getPromptComponent(JTextComponent) to additionally
update JTextArea specific properties. |
createUI, getBaselineResizeBehavior
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
getToolTipText2D, modelToView2D, viewToModel2D
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
Copyright © 2018. All rights reserved.