org.jvnet.substance
Class SubstanceTextFieldUI

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 org.jvnet.substance.SubstanceTextFieldUI
All Implemented Interfaces:
javax.swing.text.ViewFactory

public class SubstanceTextFieldUI
extends javax.swing.plaf.basic.BasicTextFieldUI

UI for text fields in Substance look and feel.

Author:
Kirill Grouchnikov

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
protected  org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
          Listener for fade animations.
protected  java.beans.PropertyChangeListener substancePropertyChangeListener
          Property change listener.
protected  javax.swing.JTextField textField
          The associated text field.
 
Constructor Summary
SubstanceTextFieldUI(javax.swing.JComponent c)
          Simple constructor.
 
Method Summary
 javax.swing.text.View create(javax.swing.text.Element elem)
           
protected  javax.swing.text.Highlighter createHighlighter()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installDefaults()
           
protected  void installListeners()
           
protected  void paintSafely(java.awt.Graphics _g)
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
getBaseline, getBaselineResizeBehavior, getPropertyPrefix
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallUI, 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
 

Field Detail

substanceFadeStateListener

protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
Listener for fade animations.


textField

protected javax.swing.JTextField textField
The associated text field.


substancePropertyChangeListener

protected java.beans.PropertyChangeListener substancePropertyChangeListener
Property change listener.

Constructor Detail

SubstanceTextFieldUI

public SubstanceTextFieldUI(javax.swing.JComponent c)
Simple constructor.

Parameters:
c - Component (text field).
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

paintSafely

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

installListeners

protected void installListeners()
Overrides:
installListeners in class javax.swing.plaf.basic.BasicTextUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicTextUI

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicTextUI

create

public javax.swing.text.View create(javax.swing.text.Element elem)
Specified by:
create in interface javax.swing.text.ViewFactory
Overrides:
create in class javax.swing.plaf.basic.BasicTextFieldUI

createHighlighter

protected javax.swing.text.Highlighter createHighlighter()
Overrides:
createHighlighter in class javax.swing.plaf.basic.BasicTextUI