|
||||||||||
| 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.MonthScrollerUI
ilog.views.util.swing.calendar.plaf.BasicMonthScrollerUI
public class BasicMonthScrollerUI
This class is the basic UI delegate implementation for IlvJMonthScroller
components.
| Nested Class Summary | |
|---|---|
class |
BasicMonthScrollerUI.CalendarModelHandler
The CalendarModelListener that is added to the month scroller's
model as needed. |
class |
BasicMonthScrollerUI.PropertyChangeHandler
The PropertyChangeListener that is added to the month scroller at
installUI(javax.swing.JComponent) time. |
| Field Summary | |
|---|---|
protected CalendarModelListener |
modelListener
The listener for changes to the calendar data model. |
protected JLabel |
monthLabel
The central month label. |
protected IlvJMonthScroller |
monthScroller
The IlvJMonthScroller that we're a UI delegate for. |
protected JButton |
nextButton
The next month button. |
protected JButton |
prevButton
The previous month button. |
protected PropertyChangeListener |
propertyChangeListener
The listener for property changes to the month scroller. |
| Constructor Summary | |
|---|---|
BasicMonthScrollerUI()
Creates a new BasicMonthScrollerUI delegate. |
|
| Method Summary | |
|---|---|
protected CalendarModelListener |
createCalendarModelListener()
Creates an instance of BasicMonthScrollerUI.CalendarModelHandler that is added to
the month scroller's model as needed. |
protected PropertyChangeListener |
createPropertyChangeListener()
Creates an instance of BasicMonthScrollerUI.PropertyChangeHandler that is added to
the month scroller by installUI(javax.swing.JComponent). |
static ComponentUI |
createUI(JComponent c)
Returns a new instance of BasicMonthScrollerUI. |
protected void |
installComponents()
Initializes the month scroller child components. |
protected void |
installDefaults()
Initializes the month scroller properties. |
protected void |
installListeners()
Creates and installs the listeners for the month scroller and its model. |
void |
installUI(JComponent c)
Configures the specified month scroller for the look and feel. |
protected void |
repaintMonthLabel()
Repaints the month label. |
protected void |
uninstallComponents()
Removes the child components from the month scroller that were configured during installComponents(). |
protected void |
uninstallDefaults()
Reverses the configuration of the month scroller that was performed during installDefaults(). |
protected void |
uninstallListeners()
Removes the listeners for the month scroller and its model. |
void |
uninstallUI(JComponent c)
Reverses the configuration that was done on the specified month scroller 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 IlvJMonthScroller monthScroller
IlvJMonthScroller 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 JButton prevButton
protected JButton nextButton
protected JLabel monthLabel
protected PropertyChangeListener propertyChangeListener
protected CalendarModelListener modelListener
| Constructor Detail |
|---|
public BasicMonthScrollerUI()
BasicMonthScrollerUI delegate.
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
BasicMonthScrollerUI. UI
delegates are allocated one per IlvJMonthScroller.
c - The IlvJMonthScroller.
BasicMonthScrollerUI object.public void installUI(JComponent c)
installUI in class ComponentUIc - The IlvJMonthScroller 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 IlvJMonthScroller 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()
BasicMonthScrollerUI.CalendarModelHandler that is added to
the month scroller's model as needed.
protected PropertyChangeListener createPropertyChangeListener()
BasicMonthScrollerUI.PropertyChangeHandler that is added to
the month scroller by installUI(javax.swing.JComponent).
protected void repaintMonthLabel()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||