|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.klg.jclass.util.calendar.CalendarContainer | +--com.klg.jclass.util.calendar.JCDateChooser
Date chooser component. Displays a calendar and allows the user to select a date.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected com.klg.jclass.util.calendar.BoundsValidator |
boundsValidator
|
protected int |
chooserType
|
protected int |
componentSpacing
|
protected com.klg.jclass.util.calendar.CalendarComponent |
day
|
protected String[] |
days
|
static int |
DUAL_SPIN
Valid value for ChooserType . |
protected com.klg.jclass.util.calendar.CalendarComponent |
month
|
protected String[] |
months
|
static int |
QUICK_SELECT
Valid value for ChooserType . |
static int |
READ_ONLY
Valid value for ChooserType . |
protected String[] |
shortMonths
|
static int |
SPIN_POPDOWN
Valid value for ChooserType . |
protected com.klg.jclass.util.calendar.CalendarComponent |
year
|
Fields inherited from class com.klg.jclass.util.calendar.CalendarContainer |
actionListeners, initialized, locale, model, specialDates, userFont |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCDateChooser()
Constructs a default date chooser. |
|
JCDateChooser(com.klg.jclass.util.value.JCValueModel current_date,
Locale locale)
Creates a calendar using the specified Calendar and locale. |
|
JCDateChooser(com.klg.jclass.util.value.JCValueModel current_date,
Locale locale,
int chooser_type)
Constructs a localized date chooser of a particular type, set to the given date. |
|
JCDateChooser(com.klg.jclass.util.value.JCValueModel current_date,
Locale locale,
int chooser_type,
String[] months,
String[] shortMonths,
String[] days)
Constructs a localized date chooser of a particular type, set to the given date. |
Method Summary | |
protected boolean |
checkMonths(String[] months,
boolean isShort)
Checks if the passed in months array is long enough. |
protected void |
createComponents(int type)
Creates the date chooser components based on the chooser type. |
protected void |
forceRelayout()
Calculates the container size. |
String |
getAbout()
Gets the value of the About property. |
int |
getChooserType()
Gets the date chooser type. |
com.klg.jclass.util.calendar.CalendarComponent |
getDayComponent()
Returns the CalendarComponent used in the day portion of the
chooser. |
String[] |
getDays()
Gets the days array used for day names. |
Calendar |
getMaximumDate()
Returns the maximum roll date. |
Calendar |
getMinimumDate()
Returns the minimum roll date. |
com.klg.jclass.util.calendar.CalendarComponent |
getMonthComponent()
Returns the CalendarComponent used in the Month portion of the
chooser. |
String[] |
getMonths()
Gets the months array used for month names. |
String[] |
getShortMonths()
Gets the months array used for month names. |
Calendar |
getValue()
Returns the selected calendar. |
String |
getVersion()
Gets the version. |
com.klg.jclass.util.calendar.CalendarComponent |
getYearComponent()
Returns the CalendarComponent used in the year portion of the
chooser. |
void |
setAbout(String s)
Provided for Beans property editors - has no effect. |
void |
setCalendarModel(com.klg.jclass.util.value.JCValueModel model)
Sets the current date being used by the calendar component. |
void |
setChooserType(int type)
Sets the date chooser type. |
void |
setDays(String[] days)
Sets the days array used for day names. |
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled. |
void |
setMaximumDate(Calendar maxDate)
Sets the maximum roll date. |
void |
setMinimumDate(Calendar minDate)
Sets the minimum date. |
void |
setMonths(String[] months)
Sets the months array used for month names. |
void |
setShortMonths(String[] shortMonths)
Sets the months array used for short month names. |
void |
setUI(ComponentUI ui)
Sets the UI. |
void |
setValue(Calendar calendar)
Sets the selected Calendar. |
void |
setVersion(String s)
Provided for Beans property editors - has no effect. |
Methods inherited from class com.klg.jclass.util.calendar.CalendarContainer |
actionPerformed, addActionListener, componentAdded, componentRemoved, getCalendarModel, getLocale, getUserFont, removeActionListener, setFont, setLocale, setSpecialDates |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int QUICK_SELECT
ChooserType
.
public static final int DUAL_SPIN
ChooserType
.
public static final int SPIN_POPDOWN
ChooserType
.
public static final int READ_ONLY
ChooserType
.
protected int chooserType
protected com.klg.jclass.util.calendar.CalendarComponent year
protected com.klg.jclass.util.calendar.CalendarComponent month
protected com.klg.jclass.util.calendar.CalendarComponent day
protected String[] months
protected String[] shortMonths
protected String[] days
protected int componentSpacing
protected com.klg.jclass.util.calendar.BoundsValidator boundsValidator
Constructor Detail |
public JCDateChooser()
public JCDateChooser(com.klg.jclass.util.value.JCValueModel current_date, Locale locale)
Calendar
object must be created with the specified locale
already set.
current_date
- the Calendar
object must be created with the
specified localelocale
- the locale to useCalendar
,
Locale
public JCDateChooser(com.klg.jclass.util.value.JCValueModel current_date, Locale locale, int chooser_type)
current_date
- the calendar value model which stores the datelocale
- the locale to usechooser_type
- the type of chooser; must be one of
JCDateChooser.QUICK_SELECT
,
JCDateChooser.DUAL_SPIN
,
JCDateChooser.SPIN_POPDOWN
, or
JCDateChooser.READ_ONLY
public JCDateChooser(com.klg.jclass.util.value.JCValueModel current_date, Locale locale, int chooser_type, String[] months, String[] shortMonths, String[] days)
current_date
- the calendar value model which stores the datelocale
- the locale to usechooser_type
- the type of chooser; must be one of
JCDateChooser.QUICK_SELECT
,
JCDateChooser.DUAL_SPIN
,
JCDateChooser.SPIN_POPDOWN
, or
JCDateChooser.READ_ONLY
months
- a list of month names to use (null means use locale specific
names)shortMonths
- a list of short month names to use (null means use locale
specific names)days
- a list of day names to use (null means use locale specific names)Method Detail |
public int getChooserType()
JCDateChooser.QUICK_SELECT
JCDateChooser.DUAL_SPIN
JCDateChooser.SPIN_POPDOWN
JCDateChooser.READ_ONLY
public void setChooserType(int type)
type
- the type of chooser; must be one of
JCDateChooser.QUICK_SELECT
,
JCDateChooser.DUAL_SPIN,
JCDateChooser.SPIN_POPDOWN
, or
JCDateChooser.READ_ONLY
protected void forceRelayout()
public String getVersion()
public void setVersion(String s)
s
- ignoredpublic String getAbout()
About
property.
The About
property displays contact information for
Quest Software in the Bean box.
public void setAbout(String s)
About
property displays contact information for
Quest Software in the bean box.
s
- ignoredpublic Calendar getValue()
Calendar
class, the
year, month, and date can be retrieved.
Calendar
,
setValue(java.util.Calendar)
public void setValue(Calendar calendar)
calendar
- the new value for the current calendar value modelCalendar
,
getValue()
public Calendar getMinimumDate()
Calendar
,
setMinimumDate(java.util.Calendar)
,
getMaximumDate()
,
setMaximumDate(java.util.Calendar)
public void setMinimumDate(Calendar minDate)
minDate
- the new minimum dateCalendar
,
getMinimumDate()
,
getMaximumDate()
,
setMaximumDate(java.util.Calendar)
public Calendar getMaximumDate()
Calendar
,
setMinimumDate(java.util.Calendar)
,
getMinimumDate()
,
setMaximumDate(java.util.Calendar)
public void setMaximumDate(Calendar maxDate)
maxDate
- the new maximum dateCalendar
,
setMinimumDate(java.util.Calendar)
,
getMinimumDate()
,
getMaximumDate()
protected boolean checkMonths(String[] months, boolean isShort)
months
- the months array to checkisShort
- Are these short month names?
public String[] getMonths()
public void setMonths(String[] months)
months
- the new months array used for month namespublic String[] getShortMonths()
public void setShortMonths(String[] shortMonths)
shortMonths
- the new short months array usedpublic String[] getDays()
public void setDays(String[] days)
days
- the new days array used for day namespublic void setUI(ComponentUI ui)
setUI
in class JComponent
ui
- the new UIpublic void setCalendarModel(com.klg.jclass.util.value.JCValueModel model)
setCalendarModel
in interface CalendarComponent
setCalendarModel
in class CalendarContainer
model
- the new calendar value modelpublic com.klg.jclass.util.calendar.CalendarComponent getDayComponent()
CalendarComponent
used in the day portion of the
chooser.
public com.klg.jclass.util.calendar.CalendarComponent getMonthComponent()
CalendarComponent
used in the Month portion of the
chooser.
public com.klg.jclass.util.calendar.CalendarComponent getYearComponent()
CalendarComponent
used in the year portion of the
chooser.
protected void createComponents(int type)
type
- the type of chooser; must be one of
JCDateChooser.QUICK_SELECT
,
JCDateChooser.DUAL_SPIN
,
JCDateChooser.SPIN_POPDOWN
, or
JCDateChooser.READ_ONLY
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
enabled
- true if this component should be enabled, false otherwiseComponent.isEnabled()
,
Component.isLightweight()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |