ilog.views.util.swing.calendar.plaf
Class BasicTimeChooserUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by ilog.views.util.swing.calendar.plaf.TimeChooserUI
          extended by ilog.views.util.swing.calendar.plaf.BasicTimeChooserUI

public class BasicTimeChooserUI
extends TimeChooserUI

This class is the basic UI delegate implementation for IlvJTimeChooser components.

Since:
JViews 5.5

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

timeChooser

protected IlvJTimeChooser timeChooser
The 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).


timeText

protected JTextField timeText
The text field representing the time.


propertyChangeListener

protected PropertyChangeListener propertyChangeListener
The listener for property changes to the time chooser.


modelListener

protected CalendarModelListener modelListener
The listener for changes to the calendar data model.

Constructor Detail

BasicTimeChooserUI

public BasicTimeChooserUI()
Creates a new BasicTimeChooserUI delegate.

Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Returns a new instance of BasicTimeChooseerUI. UI delegates are allocated one per IlvJTimeChooser.

Parameters:
c - The IlvJTimeChooser.
Returns:
A new BasicTimeChooserUI object.

installUI

public void installUI(JComponent c)
Configures the specified time chooser for the look and feel.

Overrides:
installUI in class ComponentUI
Parameters:
c - The IlvJTimeChooser where this UI delegate is being installed.
See Also:
uninstallUI(javax.swing.JComponent)

uninstallUI

public void uninstallUI(JComponent c)
Reverses the configuration that was done on the specified time chooser during installUI(javax.swing.JComponent).

Overrides:
uninstallUI in class ComponentUI
Parameters:
c - The IlvJTimeChooser from which this UI delegate is being removed.

installComponents

protected void installComponents()
Initializes the time chooser child components. This includes the text field representing the time.

See Also:
uninstallComponents(), installUI(javax.swing.JComponent)

uninstallComponents

protected void uninstallComponents()
Removes the child components from the time chooser that were configured during installComponents().


installDefaults

protected void installDefaults()
Initializes the time chooser properties.

See Also:
uninstallDefaults(), installUI(javax.swing.JComponent)

uninstallDefaults

protected void uninstallDefaults()
Reverses the configuration of the time chooser that was performed during installDefaults().


installListeners

protected void installListeners()
Creates and installs the listeners for the time chooser and its model. This method is called at installUI(javax.swing.JComponent) time.

See Also:
uninstallListeners()

uninstallListeners

protected void uninstallListeners()
Removes the listeners for the time chooser and its model. This method is called at uninstallUI(javax.swing.JComponent) time.

See Also:
installListeners()

createCalendarModelListener

protected CalendarModelListener createCalendarModelListener()
Creates an instance of BasicTimeChooserUI.CalendarModelHandler that is added to the time chooser's model as needed.


createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
Creates an instance of BasicTimeChooserUI.PropertyChangeHandler that is added to the time chooser by installUI(javax.swing.JComponent).


repaintTime

protected void repaintTime()
Repaints the month label.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.