com.alee.laf.text
Class WebTextAreaUI

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.BasicTextAreaUI
                  extended by com.alee.laf.text.WebTextAreaUI
All Implemented Interfaces:
BorderMethods, SwingMethods, javax.swing.SwingConstants, javax.swing.text.ViewFactory

public class WebTextAreaUI
extends javax.swing.plaf.basic.BasicTextAreaUI
implements BorderMethods, javax.swing.SwingConstants

User: mgarin Date: 17.08.11 Time: 23:01


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
WebTextAreaUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.lang.String getInputPrompt()
           
 java.awt.Font getInputPromptFont()
           
 java.awt.Color getInputPromptForeground()
           
 int getInputPromptHorizontalPosition()
           
 int getInputPromptVerticalPosition()
           
 Painter getPainter()
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
 void installUI(javax.swing.JComponent c)
           
 boolean isHideInputPromptOnFocus()
           
protected  void paintBackground(java.awt.Graphics g)
           
protected  void paintSafely(java.awt.Graphics g)
           
 void setHideInputPromptOnFocus(boolean hideInputPromptOnFocus)
           
 void setInputPrompt(java.lang.String inputPrompt)
           
 void setInputPromptFont(java.awt.Font inputPromptFont)
           
 void setInputPromptForeground(java.awt.Color inputPromptForeground)
           
 void setInputPromptHorizontalPosition(int inputPromptHorizontalPosition)
           
 void setInputPromptVerticalPosition(int inputPromptVerticalPosition)
           
 void setPainter(Painter painter)
           
 void uninstallUI(javax.swing.JComponent c)
           
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
create, getBaseline, getBaselineResizeBehavior, getMinimumSize, getPropertyPrefix, installDefaults, propertyChange
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, 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

WebTextAreaUI

public WebTextAreaUI()
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

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)

getInputPromptHorizontalPosition

public int getInputPromptHorizontalPosition()

setInputPromptHorizontalPosition

public void setInputPromptHorizontalPosition(int inputPromptHorizontalPosition)

getInputPromptVerticalPosition

public int getInputPromptVerticalPosition()

setInputPromptVerticalPosition

public void setInputPromptVerticalPosition(int inputPromptVerticalPosition)

isHideInputPromptOnFocus

public boolean isHideInputPromptOnFocus()

setHideInputPromptOnFocus

public void setHideInputPromptOnFocus(boolean hideInputPromptOnFocus)

getPainter

public Painter getPainter()

setPainter

public void setPainter(Painter painter)

updateBorder

public void updateBorder()
Updates custom WebLaF border.

Specified by:
updateBorder in interface BorderMethods

paintBackground

protected void paintBackground(java.awt.Graphics g)
Overrides:
paintBackground in class javax.swing.plaf.basic.BasicTextUI

paintSafely

protected void paintSafely(java.awt.Graphics g)
Overrides:
paintSafely 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.BasicTextAreaUI