com.alee.laf.text
Class WebTextFieldUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
com.alee.laf.text.WebTextFieldUI
- All Implemented Interfaces:
- ShapeProvider, BorderMethods, SwingMethods, javax.swing.SwingConstants, javax.swing.text.ViewFactory
- Direct Known Subclasses:
- WebFormattedTextFieldUI
public class WebTextFieldUI
- extends javax.swing.plaf.basic.BasicTextFieldUI
- implements ShapeProvider, javax.swing.SwingConstants, BorderMethods
User: mgarin Date: 16.05.11 Time: 16:39
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI |
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI |
create, getBaseline, getBaselineResizeBehavior, getPropertyPrefix |
Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModel |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebTextFieldUI
public WebTextFieldUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in class javax.swing.plaf.basic.BasicTextUI
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in class javax.swing.plaf.basic.BasicTextUI
provideShape
public java.awt.Shape provideShape()
- Description copied from interface:
ShapeProvider
- Returns component shape.
- Specified by:
provideShape
in interface ShapeProvider
- Returns:
- component shape
getLeadingComponent
public javax.swing.JComponent getLeadingComponent()
setLeadingComponent
public void setLeadingComponent(javax.swing.JComponent leadingComponent)
getTrailingComponent
public javax.swing.JComponent getTrailingComponent()
setTrailingComponent
public void setTrailingComponent(javax.swing.JComponent trailingComponent)
setFieldMargin
public void setFieldMargin(java.awt.Insets margin)
getFieldMargin
public java.awt.Insets getFieldMargin()
getInputPrompt
public java.lang.String getInputPrompt()
setInputPrompt
public void setInputPrompt(java.lang.String inputPrompt)
getInputPromptFont
public java.awt.Font getInputPromptFont()
setInputPromptFont
public void setInputPromptFont(java.awt.Font inputPromptFont)
getInputPromptForeground
public java.awt.Color getInputPromptForeground()
setInputPromptForeground
public void setInputPromptForeground(java.awt.Color inputPromptForeground)
getInputPromptPosition
public int getInputPromptPosition()
setInputPromptPosition
public void setInputPromptPosition(int inputPromptPosition)
isHideInputPromptOnFocus
public boolean isHideInputPromptOnFocus()
setHideInputPromptOnFocus
public void setHideInputPromptOnFocus(boolean hideInputPromptOnFocus)
isDrawShade
public boolean isDrawShade()
setDrawShade
public void setDrawShade(boolean drawShade)
getShadeWidth
public int getShadeWidth()
setShadeWidth
public void setShadeWidth(int shadeWidth)
isDrawBackground
public boolean isDrawBackground()
setDrawBackground
public void setDrawBackground(boolean drawBackground)
isWebColored
public boolean isWebColored()
setWebColored
public void setWebColored(boolean webColored)
getRound
public int getRound()
setRound
public void setRound(int round)
isDrawBorder
public boolean isDrawBorder()
setDrawBorder
public void setDrawBorder(boolean drawBorder)
isDrawFocus
public boolean isDrawFocus()
setDrawFocus
public void setDrawFocus(boolean drawFocus)
getPainter
public Painter getPainter()
setPainter
public void setPainter(Painter painter)
updateBorder
public void updateBorder()
- Updates custom WebLaF border.
- Specified by:
updateBorder
in interface BorderMethods
paintSafely
protected void paintSafely(java.awt.Graphics g)
- Overrides:
paintSafely
in class javax.swing.plaf.basic.BasicTextUI
paintBackground
protected void paintBackground(java.awt.Graphics g)
- Overrides:
paintBackground
in class javax.swing.plaf.basic.BasicTextUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in class javax.swing.plaf.basic.BasicTextUI