public class BasicTimeChooserUI extends TimeChooserUI
IlvJTimeChooser
components.Modifier and Type | Class and Description |
---|---|
class |
BasicTimeChooserUI.CalendarModelHandler
The
CalendarModelListener that is added to the time chooser's model
as needed. |
class |
BasicTimeChooserUI.PropertyChangeHandler
The
PropertyChangeListener that is added to the time chooser
at installUI(javax.swing.JComponent) time. |
Modifier and Type | Field and Description |
---|---|
protected CalendarModelListener |
modelListener
The listener for changes to the calendar data model.
|
protected PropertyChangeListener |
propertyChangeListener
The listener for property changes to the time chooser.
|
protected IlvJTimeChooser |
timeChooser
The
IlvJTimeChooser that we're a UI delegate for. |
protected JTextField |
timeText
The text field representing the time.
|
Constructor and Description |
---|
BasicTimeChooserUI()
Creates a new
BasicTimeChooserUI delegate. |
Modifier and Type | Method and Description |
---|---|
protected CalendarModelListener |
createCalendarModelListener()
Creates an instance of
BasicTimeChooserUI.CalendarModelHandler that is added to the
time chooser's model as needed. |
protected PropertyChangeListener |
createPropertyChangeListener()
Creates an instance of
BasicTimeChooserUI.PropertyChangeHandler that is added to the
time chooser by installUI(javax.swing.JComponent) . |
static ComponentUI |
createUI(JComponent c)
Returns a new instance of
BasicTimeChooseerUI . |
protected void |
installComponents()
Initializes the time chooser child components.
|
protected void |
installDefaults()
Initializes the time chooser properties.
|
protected void |
installListeners()
Creates and installs the listeners for the time chooser and its model.
|
void |
installUI(JComponent c)
Configures the specified time chooser for the look and feel.
|
boolean |
isValid()
Returns true if the time entered by the user is valid.
|
protected void |
repaintTime()
Repaints the month label.
|
protected void |
uninstallComponents()
Removes the child components from the time chooser that were configured
during
installComponents() . |
protected void |
uninstallDefaults()
Reverses the configuration of the time chooser that was performed during
installDefaults() . |
protected void |
uninstallListeners()
Removes the listeners for the time chooser and its model.
|
void |
uninstallUI(JComponent c)
Reverses the configuration that was done on the specified time chooser
during
installUI(javax.swing.JComponent) . |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
protected IlvJTimeChooser timeChooser
IlvJTimeChooser
that we're a UI delegate for. Initialized by
the installUI(javax.swing.JComponent)
method, and reset to null by uninstallUI(javax.swing.JComponent)
.protected JTextField timeText
protected PropertyChangeListener propertyChangeListener
protected CalendarModelListener modelListener
public BasicTimeChooserUI()
BasicTimeChooserUI
delegate.public static ComponentUI createUI(JComponent c)
BasicTimeChooseerUI
. UI delegates
are allocated one per IlvJTimeChooser
.c
- The IlvJTimeChooser
.BasicTimeChooserUI
object.public void installUI(JComponent c)
installUI
in class ComponentUI
c
- The IlvJTimeChooser
where this UI delegate is being
installed.uninstallUI(javax.swing.JComponent)
public void uninstallUI(JComponent c)
installUI(javax.swing.JComponent)
.uninstallUI
in class ComponentUI
c
- The IlvJTimeChooser
from which this UI delegate is being
removed.protected void installComponents()
public boolean isValid()
isValid
in class TimeChooserUI
protected void uninstallComponents()
installComponents()
.protected void installDefaults()
protected void uninstallDefaults()
installDefaults()
.protected void installListeners()
installUI(javax.swing.JComponent)
time.uninstallListeners()
protected void uninstallListeners()
uninstallUI(javax.swing.JComponent)
time.installListeners()
protected CalendarModelListener createCalendarModelListener()
BasicTimeChooserUI.CalendarModelHandler
that is added to the
time chooser's model as needed.protected PropertyChangeListener createPropertyChangeListener()
BasicTimeChooserUI.PropertyChangeHandler
that is added to the
time chooser by installUI(javax.swing.JComponent)
.protected void repaintTime()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.