public abstract class AbstractTextFieldPainter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI,D extends IDecoration<E,D>> extends AbstractTextEditorPainter<E,U,D> implements IAbstractTextFieldPainter<E,U>, javax.swing.SwingConstants
documentChangeListeners, hideInputPromptOnFocus, inputPromptFont, inputPromptForeground, inputPromptHorizontalPosition, inputPromptOnlyWhenEditable, inputPromptVerticalPositionancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
AbstractTextFieldPainter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorders()
Returns borders required for visual data provided by this painter.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
getDecorationStates, getEditorRect, isInputPromptVisible, paintContent, paintInputPromptadjustBounds, asList, collectDecorationStates, getDecoration, getDecorations, getDecorationSize, getPreferredSize, getSectionPainters, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, isPlainBackgroundPaintAllowed, paint, propertyChange, provideShape, uninstallFocusListener, uninstallHierarchyListener, uninstallHoverListener, updateDecorationState, usesState, usesStateaddPainterListener, b, borderChange, getCompleteBorder, i, i, i, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLeadingComponent, getTrailingComponentgetInputPrompt, isInputPromptVisibleaddPainterListener, getPreferredSize, isOpaque, paint, removePainterListenerpublic void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI>install in class AbstractTextEditorPainter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI,D extends IDecoration<E,D>>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI>uninstall in class AbstractTextEditorPainter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIpublic java.awt.Insets getBorders()
Painter
You may pass null in case additional borders aren't needed for this painter.
getBorders in interface Painter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI>getBorders in class AbstractDecorationPainter<E extends javax.swing.text.JTextComponent,U extends javax.swing.plaf.basic.BasicTextUI,D extends IDecoration<E,D>>null in case those aren't needed