public class BasicMonthScrollerUI extends MonthScrollerUI
IlvJMonthScroller
components.Modifier and Type | Class and Description |
---|---|
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. |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BasicMonthScrollerUI()
Creates a new
BasicMonthScrollerUI delegate. |
Modifier and Type | Method and Description |
---|---|
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) . |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
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
public BasicMonthScrollerUI()
BasicMonthScrollerUI
delegate.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 ComponentUI
c
- 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 ComponentUI
c
- The IlvJMonthScroller
from which this UI delegate is being
removed.protected void installComponents()
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()
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()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.