com.alee.laf.text
Class WebPasswordFieldUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TextUI
          extended by javax.swing.plaf.basic.BasicTextUI
              extended by javax.swing.plaf.basic.BasicTextFieldUI
                  extended by javax.swing.plaf.basic.BasicPasswordFieldUI
                      extended by com.alee.laf.text.WebPasswordFieldUI
All Implemented Interfaces:
ShapeProvider, BorderMethods, SwingMethods, javax.swing.SwingConstants, javax.swing.text.ViewFactory

public class WebPasswordFieldUI
extends javax.swing.plaf.basic.BasicPasswordFieldUI
implements ShapeProvider, javax.swing.SwingConstants, BorderMethods

User: mgarin Date: 16.05.11 Time: 20:37


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
 
Field Summary
 
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
 
Constructor Summary
WebPasswordFieldUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Insets getFieldMargin()
           
 java.lang.String getInputPrompt()
           
 java.awt.Font getInputPromptFont()
           
 java.awt.Color getInputPromptForeground()
           
 int getInputPromptPosition()
           
 javax.swing.JComponent getLeadingComponent()
           
 Painter getPainter()
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
 int getRound()
           
 int getShadeWidth()
           
 javax.swing.JComponent getTrailingComponent()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isDrawBackground()
           
 boolean isDrawBorder()
           
 boolean isDrawFocus()
           
 boolean isDrawShade()
           
 boolean isHideInputPromptOnFocus()
           
 boolean isWebColored()
           
protected  void paintBackground(java.awt.Graphics g)
           
protected  void paintSafely(java.awt.Graphics g)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setDrawBackground(boolean drawBackground)
           
 void setDrawBorder(boolean drawBorder)
           
 void setDrawFocus(boolean drawFocus)
           
 void setDrawShade(boolean drawShade)
           
 void setFieldMargin(java.awt.Insets margin)
           
 void setHideInputPromptOnFocus(boolean hideInputPromptOnFocus)
           
 void setInputPrompt(java.lang.String inputPrompt)
           
 void setInputPromptFont(java.awt.Font inputPromptFont)
           
 void setInputPromptForeground(java.awt.Color inputPromptForeground)
           
 void setInputPromptPosition(int inputPromptPosition)
           
 void setLeadingComponent(javax.swing.JComponent leadingComponent)
           
 void setPainter(Painter painter)
           
 void setRound(int round)
           
 void setShadeWidth(int shadeWidth)
           
 void setTrailingComponent(javax.swing.JComponent trailingComponent)
           
 void setWebColored(boolean webColored)
           
 void uninstallUI(javax.swing.JComponent c)
           
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicPasswordFieldUI
create, getPropertyPrefix, installDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
getBaseline, getBaselineResizeBehavior
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, 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
 

Constructor Detail

WebPasswordFieldUI

public WebPasswordFieldUI()
Method Detail

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