Package rma.swing.plaf.basic
Class BasicDateFieldUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
rma.swing.plaf.basic.BasicDateFieldUI
- All Implemented Interfaces:
ViewFactory
Basis of a look and feel for a RMACalendarField.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This layout manager handles the 'standard' layout of combo boxes.Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configures the ellipses button by adding listeners.protected JButton
Creates the ellipses button.protected LayoutManager
Creates the standard DateField layout manager that has the ellipses button to the right and the editor to the left.static ComponentUI
protected Insets
Gets the insets from the DateField.protected String
Fetches the name used as a key to lookup properties through the UIManager.protected Rectangle
Gets the allocation to give the root View.protected void
void
protected void
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
create, getBaseline, getBaselineResizeBehavior
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getNextVisualPositionFrom, getRootView, getToolTipText, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, modelToView2D, paint, paintBackground, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
cachedMinimumSize
-
-
Constructor Details
-
BasicDateFieldUI
public BasicDateFieldUI()Creates a new BasicDateFieldUI.
-
-
Method Details
-
createUI
-
getPropertyPrefix
Fetches the name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties.- Overrides:
getPropertyPrefix
in classBasicTextFieldUI
- Returns:
- the name ("TextField")
-
installUI
- Overrides:
installUI
in classBasicTextUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicTextUI
-
getVisibleEditorRect
Gets the allocation to give the root View. Due to an unfortunate set of historical events this method is inappropriately named. The Rectangle returned has nothing to do with visibility.- Overrides:
getVisibleEditorRect
in classBasicTextUI
- Returns:
- the bounding box for the root view
-
paintSafely
- Overrides:
paintSafely
in classBasicTextUI
-
createEllipsesButton
Creates the ellipses button. Subclasses can create any button they like. The default behavior of this class is to attach various listeners to the button returned by this method. Returns an instance of BasicEllipsesButton. -
configureEllipsesButton
public void configureEllipsesButton()Configures the ellipses button by adding listeners. -
createLayoutManager
Creates the standard DateField layout manager that has the ellipses button to the right and the editor to the left. Returns an instance of BasicDateFieldUI$DateFieldLayoutManager. -
getInsets
Gets the insets from the DateField. -
getPreferredSize
- Overrides:
getPreferredSize
in classBasicTextUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classBasicTextUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classBasicTextUI
-