JDatePicker v4.3

com.standbysoft.component.date.swing.plaf.basic
Class DefaultMonthViewUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended bycom.standbysoft.component.date.swing.plaf.DateUI
          extended bycom.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI
              extended bycom.standbysoft.component.date.swing.plaf.basic.BasicMonthViewUI
                  extended bycom.standbysoft.component.date.swing.plaf.basic.DefaultMonthViewUI

public class DefaultMonthViewUI
extends BasicMonthViewUI

Default implementation for a JMonthView UI delegate. It adds the month scrolling buttons, the today button and the none button.


Nested Class Summary
 
Nested classes inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI
AbstractMonthViewUI.CalendarLayout
 
Field Summary
 
Fields inherited from class com.standbysoft.component.date.swing.plaf.basic.BasicMonthViewUI
months, noneMouseListener, todayMouseListener
 
Fields inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI
monthView, nextMonthButton, nextYearButton, noneComponent, previousMonthButton, previousYearButton, todayComponent
 
Constructor Summary
DefaultMonthViewUI()
           
 
Method Summary
protected  MonthModelListener createMonthModelListener()
          Returns a month model listener that also handles the today date change.
protected  javax.swing.JButton createNextMonthButton()
          Creates the button that navigates to the next month.
protected  javax.swing.JComponent createNoneComponent()
          Creates the component that represents the none label.
protected  javax.swing.JButton createPreviousMonthButton()
          Creates the button that navigates to the previous month.
protected  javax.swing.JComponent createTodayComponent()
          Creates the component that represents the today label.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 
Methods inherited from class com.standbysoft.component.date.swing.plaf.basic.BasicMonthViewUI
createDateSelectionListener, createMonth, createNextYearButton, createNoneMouseListener, createPreviousYearButton, createTodayMouseListener, getPreferredSize, installComponents, installListeners, uninstallComponents, uninstallListeners, updateDateSelectionModel, updateDatesOrientation, updateDisplayToday, updateEnabled, updateFont, updateForeground, updateGridColor, updateHorizontalLinesVisible, updateLocale, updateMonthBackground, updateMonthModel, updateMonthUI, updateNoneButtonVisible, updateRenderer, updateRowsColumns, updateTimeZone, updateTitleBackground, updateTitleForeground, updateToggleDateSelectionEnabled, updateTrailingForeground, updateTrailingNextEnabled, updateTrailingPreviousEnabled, updateVerticalLinesVisible, updateWeekLabelsHighlight, updateWeekModel, updateWeekNamesVisible, updateWeekNumbersVisible
 
Methods inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI
createDefaults, createLayout, initializeDefaults, installDefaults, installKeyboardActions, installUI, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMonthViewUI

public DefaultMonthViewUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

createPreviousMonthButton

protected javax.swing.JButton createPreviousMonthButton()
Creates the button that navigates to the previous month. Override it in order to provide your own button.

Overrides:
createPreviousMonthButton in class BasicMonthViewUI
Returns:
the button that navigates to the previous month.

createNextMonthButton

protected javax.swing.JButton createNextMonthButton()
Creates the button that navigates to the next month. Override it in order to provide your own button.

Overrides:
createNextMonthButton in class BasicMonthViewUI
Returns:
the button that navigates to the next month.

createTodayComponent

protected javax.swing.JComponent createTodayComponent()
Creates the component that represents the today label. Override it in order to provide your own today label.

Overrides:
createTodayComponent in class BasicMonthViewUI
Returns:
the component that represents the today label.

createNoneComponent

protected javax.swing.JComponent createNoneComponent()
Creates the component that represents the none label. Override it in order to provide your own none label.

Overrides:
createNoneComponent in class BasicMonthViewUI
Returns:
the component that represents the none label.

createMonthModelListener

protected MonthModelListener createMonthModelListener()
Returns a month model listener that also handles the today date change.

Overrides:
createMonthModelListener in class BasicMonthViewUI
Returns:
a listener that synchronizes the state of the calendar month model with the calendar components.

JDatePicker v4.3

Visit www.jdatepicker.com for further information or send us your suggestions.

Copyright © 2003-2007 Stand By Soft Ltd. All Rights Reserved.