|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.basic.CalendarHeaderHandler
org.jdesktop.swingx.plaf.basic.SpinningCalendarHeaderHandler
public class SpinningCalendarHeaderHandler
Custom CalendarHeaderHandler which supports year-wise navigation.
The custom component used as header component of this implementation contains month-navigation buttons, a label with localized month text and a spinner for .. well ... spinning the years. There is minimal configuration control via the UIManager:
ARROWS_SURROUNDS_MONTH
.
FOCUSABLE_SPINNER_TEXT
.
UIManager.put(CalendarHeaderHandler.uiControllerID,
"org.jdesktop.swingx.plaf.basic.SpinningCalendarHeaderHandler");
PENDING JW: implement and bind actions for keyboard navigation. These are
potentially different from navigation by mouse: need to move the selection
along with the scrolling?
Field Summary | |
---|---|
static java.lang.String |
ARROWS_SURROUND_MONTH
Key for use in UIManager to control the position of the nextMonth arrow. |
static java.lang.String |
FOCUSABLE_SPINNER_TEXT
Key for use in UIManager to control the focusable property of the year spinner. |
Fields inherited from class org.jdesktop.swingx.plaf.basic.CalendarHeaderHandler |
---|
uiControllerID |
Constructor Summary | |
---|---|
SpinningCalendarHeaderHandler()
|
Method Summary | |
---|---|
org.jdesktop.swingx.plaf.basic.SpinningCalendarHeaderHandler.SpinningCalendarHeader |
getHeaderComponent()
Returns a component to be used as header in a zoomable month view, guaranteed to be not null. |
void |
install(JXMonthView monthView)
Installs this handler to the given month view. |
void |
uninstall(JXMonthView monthView)
Uninstalls this handler from the given target month view. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ARROWS_SURROUND_MONTH
public static final java.lang.String FOCUSABLE_SPINNER_TEXT
Constructor Detail |
---|
public SpinningCalendarHeaderHandler()
Method Detail |
---|
public void install(JXMonthView monthView)
Overridden to configure header specifics component after calling super.
install
in class CalendarHeaderHandler
monthView
- the target month view to install to.public void uninstall(JXMonthView monthView)
Overridden to cleanup the specifics before calling super.
uninstall
in class CalendarHeaderHandler
monthView
- the target month view to install from.public org.jdesktop.swingx.plaf.basic.SpinningCalendarHeaderHandler.SpinningCalendarHeader getHeaderComponent()
Convenience override to the type created.
getHeaderComponent
in class CalendarHeaderHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |