public class WebFormattedTextFieldUI extends javax.swing.plaf.basic.BasicFormattedTextFieldUI implements Styleable, ShapeProvider, MarginSupport, PaddingSupport
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.event.ComponentAdapter |
componentResizeListener
Listeners.
|
protected javax.swing.JFormattedTextField |
field
Runtime variables.
|
protected java.lang.String |
inputPrompt
Input prompt text.
|
protected javax.swing.JComponent |
leadingComponent |
protected java.awt.Insets |
margin |
protected java.awt.Insets |
padding |
protected IFormattedTextFieldPainter |
painter
Component painter.
|
protected javax.swing.JComponent |
trailingComponent |
EMPTYEMPTY| Constructor and Description |
|---|
WebFormattedTextFieldUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebFormattedTextFieldUI for the specified component.
|
java.lang.String |
getInputPrompt()
Returns input prompt text.
|
javax.swing.JComponent |
getLeadingComponent()
Returns field leading component.
|
java.awt.Insets |
getMargin()
Returns current margin.
|
java.awt.Insets |
getPadding()
Returns current padding.
|
Painter |
getPainter()
Returns field painter.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
StyleId |
getStyleId()
Returns component style ID.
|
javax.swing.JComponent |
getTrailingComponent()
Returns field trailing component.
|
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
protected void |
paintSafely(java.awt.Graphics g) |
protected void |
propertyChange(java.beans.PropertyChangeEvent evt) |
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
removeLeadingComponent()
Removes field leading component.
|
void |
removeTrailingComponent()
Removes field trailing component.
|
void |
setInputPrompt(java.lang.String text)
Sets input prompt text.
|
void |
setLeadingComponent(javax.swing.JComponent leadingComponent)
Sets field leading component.
|
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPainter(Painter painter)
Sets field painter.
|
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
setTrailingComponent(javax.swing.JComponent trailingComponent)
Sets field trailing component.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
create, getBaseline, getBaselineResizeBehaviorcreate, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintBackground, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModel@DefaultPainter(value=FormattedTextFieldPainter.class) protected IFormattedTextFieldPainter painter
protected java.lang.String inputPrompt
protected javax.swing.JFormattedTextField field
protected java.awt.Insets margin
protected java.awt.Insets padding
protected javax.swing.JComponent leadingComponent
protected javax.swing.JComponent trailingComponent
protected java.awt.event.ComponentAdapter componentResizeListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicTextUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicTextUIc - component with this UIpublic StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(java.awt.Insets margin)
MarginSupportnull can be provided to set an empty [0,0,0,0] margin.setMargin in interface MarginSupportmargin - new marginpublic java.awt.Insets getPadding()
PaddingSupportgetPadding in interface PaddingSupportpublic void setPadding(java.awt.Insets padding)
PaddingSupportnull can be provided to set an empty [0,0,0,0] padding.setPadding in interface PaddingSupportpadding - new paddingpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new field painterprotected void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in class javax.swing.plaf.basic.BasicTextUIpublic java.lang.String getInputPrompt()
public void setInputPrompt(java.lang.String text)
text - input prompt textpublic javax.swing.JComponent getLeadingComponent()
public void setLeadingComponent(javax.swing.JComponent leadingComponent)
leadingComponent - field leading componentpublic void removeLeadingComponent()
public javax.swing.JComponent getTrailingComponent()
public void setTrailingComponent(javax.swing.JComponent trailingComponent)
trailingComponent - field trailing componentpublic void removeTrailingComponent()
protected void paintSafely(java.awt.Graphics g)
paintSafely in class javax.swing.plaf.basic.BasicTextUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicTextUI