com.jgoodies.looks.plastic
Class PlasticFormattedTextFieldUI

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.BasicFormattedTextFieldUI
                      extended by com.jgoodies.looks.plastic.PlasticFormattedTextFieldUI
All Implemented Interfaces:
ViewFactory

public final class PlasticFormattedTextFieldUI
extends BasicFormattedTextFieldUI

The JGoodies Plastic L&F implementation of TextFieldUI. In addition to its superclass MetalTextFieldUI, it can use a caret that selects all text when the field gains focus via the keyboard.

Version:
$Revision: 1.2 $
Author:
Karsten Lentzsch

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
 
Constructor Summary
PlasticFormattedTextFieldUI()
           
 
Method Summary
protected  Caret createCaret()
          Creates the caret for a field.
static ComponentUI createUI(JComponent c)
          Creates a UI for a JFormattedTextField.
 
Methods inherited from class javax.swing.plaf.basic.BasicFormattedTextFieldUI
getPropertyPrefix
 
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
create, getBaseline, getBaselineResizeBehavior
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, 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
 

Constructor Detail

PlasticFormattedTextFieldUI

public PlasticFormattedTextFieldUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Creates a UI for a JFormattedTextField.

Parameters:
c - the formatted text field
Returns:
the UI

createCaret

protected Caret createCaret()
Creates the caret for a field.

Overrides:
createCaret in class BasicTextUI
Returns:
the caret


Copyright © 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.