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 TypeClassDescriptionclassThis 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 TypeMethodDescriptionvoidConfigures the ellipses button by adding listeners.protected JButtonCreates the ellipses button.protected LayoutManagerCreates the standard DateField layout manager that has the ellipses button to the right and the editor to the left.static ComponentUIprotected InsetsGets the insets from the DateField.protected StringFetches the name used as a key to lookup properties through the UIManager.protected RectangleGets the allocation to give the root View.protected voidvoidprotected voidMethods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
create, getBaseline, getBaselineResizeBehaviorMethods 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, viewToModel2DMethods inherited from class javax.swing.plaf.TextUI
getToolTipText2DMethods 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:
getPropertyPrefixin classBasicTextFieldUI- Returns:
- the name ("TextField")
-
installUI
- Overrides:
installUIin classBasicTextUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin 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:
getVisibleEditorRectin classBasicTextUI- Returns:
- the bounding box for the root view
-
paintSafely
- Overrides:
paintSafelyin 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:
getPreferredSizein classBasicTextUI
-
getMinimumSize
- Overrides:
getMinimumSizein classBasicTextUI
-
getMaximumSize
- Overrides:
getMaximumSizein classBasicTextUI
-