|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
ilog.views.util.swing.calendar.plaf.TimeChooserUI
ilog.views.util.swing.calendar.plaf.BasicTimeChooserUI
public class BasicTimeChooserUI
This class is the basic UI delegate implementation for
IlvJTimeChooser components.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
BasicTimeChooserUI()
Creates a new BasicTimeChooserUI delegate. |
|
| Method Summary | |
|---|---|
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. |
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). |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public BasicTimeChooserUI()
BasicTimeChooserUI delegate.
| Method Detail |
|---|
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 ComponentUIc - 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 ComponentUIc - The IlvJTimeChooser from which this UI delegate is
being removed.protected void installComponents()
uninstallComponents(),
installUI(javax.swing.JComponent)protected void uninstallComponents()
installComponents().
protected void installDefaults()
uninstallDefaults(),
installUI(javax.swing.JComponent)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()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||