|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ButtonSkin
org.apache.pivot.wtk.skin.CalendarButtonSkin
public abstract class CalendarButtonSkin
Abstract base class for calendar button skins.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.CalendarButtonListener |
|---|
CalendarButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ButtonListener |
|---|
ButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
|---|
ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
|---|
ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
|---|
ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
|---|
ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
|---|
ComponentKeyListener.Adapter |
| Field Summary | |
|---|---|
protected Calendar |
calendar
|
protected Window |
calendarPopup
|
protected boolean |
pressed
|
| Fields inherited from class org.apache.pivot.wtk.skin.ButtonSkin |
|---|
highlighted |
| Constructor Summary | |
|---|---|
CalendarButtonSkin()
|
|
| Method Summary | |
|---|---|
void |
disabledDateFilterChanged(CalendarButton calendarButton,
Filter<CalendarDate> previousDisabledDateFilter)
Called when a calendar button's disabled date filter has changed. |
void |
enabledChanged(Component component)
Called when a component's enabled state has changed. |
void |
focusedChanged(Component component,
Component obverseComponent)
Called when a component's focused state has changed. |
Window |
getCalendarPopup()
|
void |
install(Component component)
Associates a skin with a component. |
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
SPACE Repaints the component to reflect the pressed
state. |
boolean |
keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
SPACE 'presses' the button. |
void |
localeChanged(CalendarButton calendarButton,
Locale previousLocale)
Called when a calendar button's locale has changed. |
void |
monthChanged(CalendarButton calendarButton,
int previousMonth)
Called when a calendar button's month value has changed. |
boolean |
mouseDown(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is pressed over a component. |
void |
mouseOut(Component component)
Called when the mouse exits a component. |
boolean |
mouseUp(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is released over a component. |
void |
selectedDateChanged(CalendarButton calendarButton,
CalendarDate previousSelectedDate)
Called when a calendar button's selected date has changed. |
void |
yearChanged(CalendarButton calendarButton,
int previousYear)
Called when a calendar button's year value has changed. |
| Methods inherited from class org.apache.pivot.wtk.skin.ButtonSkin |
|---|
actionChanged, buttonDataChanged, buttonGroupChanged, buttonPressed, dataRendererChanged, layout, mouseOver, stateChanged, toggleButtonChanged, triStateChanged |
| Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
|---|
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getBaseline, getComponent, getHeight, getPreferredSize, getWidth, heightLimitsChanged, invalidateComponent, isFocusable, isOpaque, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseMove, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
|---|
getPreferredHeight, getPreferredWidth |
| Methods inherited from interface org.apache.pivot.wtk.Visual |
|---|
paint |
| Field Detail |
|---|
protected Calendar calendar
protected Window calendarPopup
protected boolean pressed
| Constructor Detail |
|---|
public CalendarButtonSkin()
| Method Detail |
|---|
public void install(Component component)
Skin
install in interface Skininstall in class ButtonSkincomponent - The component to which the skin is being attached.public Window getCalendarPopup()
getCalendarPopup in interface CalendarButton.Skinpublic void enabledChanged(Component component)
ComponentStateListener Called both when the component is enabled and when it is disabled.
The component's enabled flag has already been set when this
method is called so the new state can be determined by calling the
Component.isEnabled() method.
enabledChanged in interface ComponentStateListenerenabledChanged in class ButtonSkincomponent - The component whose enabled state is changing.
public void focusedChanged(Component component,
Component obverseComponent)
ComponentStateListener This will be called both when a component gains focus and when it loses
focus. The currently focused component has already been set when this method
is called, so that the new state of the component can be determined by calling
the Component.isFocused() method.
focusedChanged in interface ComponentStateListenerfocusedChanged in class ButtonSkincomponent - The component that is either gaining focus or the one that
previously had focus and is now losing it.obverseComponent - If the component is gaining focus, this is the component
that is losing focus. If the component is losing focus
this is the component that is gaining the focus instead.public void mouseOut(Component component)
ComponentMouseListener
mouseOut in interface ComponentMouseListenermouseOut in class ButtonSkin
public boolean mouseDown(Component component,
Mouse.Button button,
int x,
int y)
ComponentMouseButtonListener
mouseDown in interface ComponentMouseButtonListenermouseDown in class ComponentSkin
public boolean mouseUp(Component component,
Mouse.Button button,
int x,
int y)
ComponentMouseButtonListener
mouseUp in interface ComponentMouseButtonListenermouseUp in class ComponentSkin
public boolean keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
SPACE Repaints the component to reflect the pressed
state.
keyPressed in interface ComponentKeyListenerkeyPressed in class ComponentSkinkeyReleased(Component, int,
org.apache.pivot.wtk.Keyboard.KeyLocation)
public boolean keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
SPACE 'presses' the button.
keyReleased in interface ComponentKeyListenerkeyReleased in class ComponentSkin
public void yearChanged(CalendarButton calendarButton,
int previousYear)
CalendarButtonListener
yearChanged in interface CalendarButtonListener
public void monthChanged(CalendarButton calendarButton,
int previousMonth)
CalendarButtonListener
monthChanged in interface CalendarButtonListener
public void localeChanged(CalendarButton calendarButton,
Locale previousLocale)
CalendarButtonListener
localeChanged in interface CalendarButtonListener
public void disabledDateFilterChanged(CalendarButton calendarButton,
Filter<CalendarDate> previousDisabledDateFilter)
CalendarButtonListener
disabledDateFilterChanged in interface CalendarButtonListener
public void selectedDateChanged(CalendarButton calendarButton,
CalendarDate previousSelectedDate)
CalendarButtonSelectionListener
selectedDateChanged in interface CalendarButtonSelectionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||