pivot.wtk.skin
Class CalendarSkin

java.lang.Object
  extended by pivot.wtk.skin.ComponentSkin
      extended by pivot.wtk.skin.ContainerSkin
          extended by pivot.wtk.skin.CalendarSkin
All Implemented Interfaces:
CalendarListener, CalendarSelectionListener, ComponentKeyListener, ComponentLayoutListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, ContainerListener, Skin, Visual
Direct Known Subclasses:
TerraCalendarSkin

public abstract class CalendarSkin
extends ContainerSkin
implements CalendarListener, CalendarSelectionListener

Abstract base class for calendar skins.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.skin.ContainerSkin
ContainerSkin.IndexFocusTraversalPolicy
 
Field Summary
 
Fields inherited from class pivot.wtk.skin.ComponentSkin
SHOW_TOOLTIP_TIMEOUT
 
Constructor Summary
CalendarSkin()
           
 
Method Summary
 void install(Component component)
          Associates a skin with a component.
 void localeChanged(Calendar calendar, java.util.Locale previousLocale)
          Called when a calendar's locale has changed.
 void monthChanged(Calendar calendar, int previousMonth)
          Called when a calendar's month value has changed.
 void selectedDateChanged(Calendar calendar, CalendarDate previousSelectedDate)
          Called when a calendar's selected date has changed.
 void selectedDateKeyChanged(Calendar calendar, java.lang.String previousSelectedDateKey)
          Called when a calendar's selected date key has changed.
 void uninstall()
          Dissociates a skin from a component.
 void yearChanged(Calendar calendar, int previousYear)
          Called when a calendar's year value has changed.
 
Methods inherited from class pivot.wtk.skin.ContainerSkin
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, getPreferredHeight, getPreferredWidth, isFocusable, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint
 
Methods inherited from class pivot.wtk.skin.ComponentSkin
cursorChanged, decodeColor, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getPreferredSize, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pivot.wtk.Skin
layout
 

Constructor Detail

CalendarSkin

public CalendarSkin()
Method Detail

install

public void install(Component component)
Description copied from interface: Skin
Associates a skin with a component.

Specified by:
install in interface Skin
Overrides:
install in class ContainerSkin
Parameters:
component - The component to which the skin is being attached.

uninstall

public void uninstall()
Description copied from interface: Skin
Dissociates a skin from a component.

Specified by:
uninstall in interface Skin
Overrides:
uninstall in class ContainerSkin

yearChanged

public void yearChanged(Calendar calendar,
                        int previousYear)
Description copied from interface: CalendarListener
Called when a calendar's year value has changed.

Specified by:
yearChanged in interface CalendarListener

monthChanged

public void monthChanged(Calendar calendar,
                         int previousMonth)
Description copied from interface: CalendarListener
Called when a calendar's month value has changed.

Specified by:
monthChanged in interface CalendarListener

selectedDateKeyChanged

public void selectedDateKeyChanged(Calendar calendar,
                                   java.lang.String previousSelectedDateKey)
Description copied from interface: CalendarListener
Called when a calendar's selected date key has changed.

Specified by:
selectedDateKeyChanged in interface CalendarListener

localeChanged

public void localeChanged(Calendar calendar,
                          java.util.Locale previousLocale)
Description copied from interface: CalendarListener
Called when a calendar's locale has changed.

Specified by:
localeChanged in interface CalendarListener

selectedDateChanged

public void selectedDateChanged(Calendar calendar,
                                CalendarDate previousSelectedDate)
Description copied from interface: CalendarSelectionListener
Called when a calendar's selected date has changed.

Specified by:
selectedDateChanged in interface CalendarSelectionListener