JDatePicker v4.3

com.standbysoft.component.date.swing.plaf.basic
Class AbstractMonthViewUI.CalendarLayout

java.lang.Object
  extended bycom.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI.CalendarLayout
All Implemented Interfaces:
java.awt.LayoutManager
Enclosing class:
AbstractMonthViewUI

public static class AbstractMonthViewUI.CalendarLayout
extends java.lang.Object
implements java.awt.LayoutManager

This layout manager is used to arrange components of a JMonthView.


Field Summary
protected  int columns
           
static java.lang.String MONTH
           
protected  java.util.List months
           
static java.lang.String NEXT
           
static java.lang.String NEXT_YEAR
           
protected  java.awt.Component nextButton
           
protected  java.awt.Component nextYearButton
           
static java.lang.String NONE
           
protected  java.awt.Component noneLabel
           
static java.lang.String PREVIOUS
           
static java.lang.String PREVIOUS_YEAR
           
protected  java.awt.Component previousButton
           
protected  java.awt.Component previousYearButton
           
protected  int rows
           
static java.lang.String TODAY
           
protected  java.awt.Component todayLabel
           
 
Constructor Summary
AbstractMonthViewUI.CalendarLayout()
           
AbstractMonthViewUI.CalendarLayout(int hgap, int vgap, int buttonWidth, int buttonHeight)
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container parent)
          Arranges the components of a specified JMonthView component.
protected  void layoutMonthsInContainer(java.awt.Container parent)
           
protected  void layoutNavigationButtonsInContainer(java.awt.Container parent)
           
protected  void layoutNoneAndTodayComponentsInContainer(java.awt.Container parent)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Computes the preferred size for a specified component (JMonthView).
 void removeLayoutComponent(java.awt.Component comp)
           
 void setColumns(int columns)
           
 void setRows(int rows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREVIOUS_YEAR

public static final java.lang.String PREVIOUS_YEAR
See Also:
Constant Field Values

NEXT_YEAR

public static final java.lang.String NEXT_YEAR
See Also:
Constant Field Values

PREVIOUS

public static final java.lang.String PREVIOUS
See Also:
Constant Field Values

NEXT

public static final java.lang.String NEXT
See Also:
Constant Field Values

TODAY

public static final java.lang.String TODAY
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
See Also:
Constant Field Values

MONTH

public static final java.lang.String MONTH
See Also:
Constant Field Values

nextButton

protected java.awt.Component nextButton

previousButton

protected java.awt.Component previousButton

todayLabel

protected java.awt.Component todayLabel

noneLabel

protected java.awt.Component noneLabel

nextYearButton

protected java.awt.Component nextYearButton

previousYearButton

protected java.awt.Component previousYearButton

months

protected java.util.List months

rows

protected int rows

columns

protected int columns
Constructor Detail

AbstractMonthViewUI.CalendarLayout

public AbstractMonthViewUI.CalendarLayout()

AbstractMonthViewUI.CalendarLayout

public AbstractMonthViewUI.CalendarLayout(int hgap,
                                          int vgap,
                                          int buttonWidth,
                                          int buttonHeight)
Parameters:
hgap - horizontal space between the months
vgap - vertical space between the months
buttonWidth - width of the month scrolling buttons
buttonHeight - height of the month scrolling buttons
Method Detail

setRows

public void setRows(int rows)

setColumns

public void setColumns(int columns)

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Computes the preferred size for a specified component (JMonthView).

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - specified component for which the preferred size is computed

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Arranges the components of a specified JMonthView component.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
parent - specified JMonthView component for which the component are arranged

layoutNavigationButtonsInContainer

protected void layoutNavigationButtonsInContainer(java.awt.Container parent)

layoutMonthsInContainer

protected void layoutMonthsInContainer(java.awt.Container parent)

layoutNoneAndTodayComponentsInContainer

protected void layoutNoneAndTodayComponentsInContainer(java.awt.Container parent)

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.