|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.basic.CalendarHeaderHandler
public abstract class CalendarHeaderHandler
Provides and wires a component appropriate as a calendar navigation header. The design idea is to support a pluggable header for a zoomable (PENDING JW: naming!) JXMonthView. Then custom implementations can be tailored to exactly fit their needs.
To install a custom implementation, register the class name of the custom
header handler with the key CalendarHeaderHandler.uiControllerID
, example:
UIManager.put(CalendarHeaderHandler.uiControllerID, "com.foo.bar.MagicHeaderHandler")
Basic navigation action should (will) be defined by the ui delegate itself (PENDING
JW: still incomplete in BasicMonthViewUI). This handler can modify/enhance
them as appropriate for its context.
PENDING JW: those icons ... who's responsible? Shouldn't we use any of the default arrows as defined in the laf anyway (are there any?)
Note: this is work-in-progress, be prepared to change if subclassing for custom requirements!
Field Summary | |
---|---|
static java.lang.String |
uiControllerID
|
Constructor Summary | |
---|---|
CalendarHeaderHandler()
|
Method Summary | |
---|---|
javax.swing.JComponent |
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 uiControllerID
Constructor Detail |
---|
public CalendarHeaderHandler()
Method Detail |
---|
public void install(JXMonthView monthView)
monthView
- the target month view to install to.public void uninstall(JXMonthView monthView)
monthView
- the target month view to install from.public javax.swing.JComponent getHeaderComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |