|
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 | +--com.klg.jclass.util.swing.AbstractSpinBox | +--com.klg.jclass.util.swing.JCSpinBox | +--com.klg.jclass.util.calendar.MonthSpin
SpinBox that shows months of the year.
Nested Class Summary |
Nested classes inherited from class com.klg.jclass.util.swing.JCSpinBox |
JCSpinBox.KeySelectionManager |
Nested classes inherited from class com.klg.jclass.util.swing.AbstractSpinBox |
AbstractSpinBox.ArrowButton, AbstractSpinBox.MetalArrowButton, AbstractSpinBox.MetalBorder |
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.JCListenerList |
actionListeners
|
protected com.klg.jclass.util.value.JCValueModel |
calendarModel
|
protected boolean |
ignoreChange
|
protected Locale |
locale
|
protected String[] |
months
|
protected int |
selectedMonth
|
protected boolean |
userSetMonths
|
Fields inherited from class com.klg.jclass.util.swing.JCSpinBox |
actionCommand, firstPaint, itemListeners, keySelectionManager, lastSelectedItem, listDataListener, model, modelChanging |
Fields inherited from class com.klg.jclass.util.swing.AbstractSpinBox |
arrowKeySpinningAllowed, buttonTimer, continuousScroll, currentButton, DECREMENT, downArrow, editable, editor, editorIsValidateRoot, INCREMENT, l, metalBorder, minimumHeight, NONE, renderer, renderPanel, rl, upArrow, userFont, valueListeners, valueModel |
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 | |
MonthSpin(com.klg.jclass.util.value.JCValueModel model,
Locale l)
Constructs a MonthSpin with the given value model and locale. |
|
MonthSpin(com.klg.jclass.util.value.JCValueModel model,
Locale l,
String[] months)
Constructs a MonthSpin with the given value model and locale. |
Method Summary | |
void |
addActionListener(ActionListener l)
Add listener to receive action event when data is changed by the user |
com.klg.jclass.util.value.JCValueModel |
getCalendarModel()
Get the value model. |
Locale |
getLocale()
Get the locale that is being used. |
com.klg.jclass.util.calendar.JCCalendar |
getSpecialDates()
Get the special dates being used by the DayTable. |
com.klg.jclass.util.calendar.JCCalendar |
getSpecialDates(com.klg.jclass.util.calendar.JCCalendar sd)
Deprecated. As the parameter is unused, should use getSpecialDates() |
void |
itemStateChanged(ItemEvent e)
State Changed. |
void |
removeActionListener(ActionListener l)
Remove listener to receive action event when data is changed by the user |
void |
setCalendarModel(com.klg.jclass.util.value.JCValueModel model)
Set the value model. |
void |
setLocale(Locale l)
Set the locale to use. |
void |
setSpecialDates(com.klg.jclass.util.calendar.JCCalendar sd)
This component ignores special dates |
void |
valueChanged(com.klg.jclass.util.value.JCValueEvent event)
The method informs the listener that the value has been changed. |
void |
valueChanging(com.klg.jclass.util.value.JCValueEvent event)
The value is changing. |
Methods inherited from class com.klg.jclass.util.swing.JCSpinBox |
addItem, addItemListener, checkArrowButtons, checkSpinBoxMutableModel, getAbout, getActionCommand, getItemAt, getItemCount, getKeySelectionManager, getModel, getSelectedIndex, getSelectedItem, getSelectedObjects, handleKeyPressed, insertItemAt, modelChanged, paint, preferredWidthOfView, processValueChanged, removeAllItems, removeItem, removeItemAt, removeItemListener, selectWithKeyChar, setAbout, setActionCommand, setKeySelectionManager, setModel, setSelectedIndex, setSelectedItem, spinDown, spinUp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Locale locale
protected com.klg.jclass.util.value.JCValueModel calendarModel
protected int selectedMonth
protected String[] months
protected boolean userSetMonths
protected com.klg.jclass.util.JCListenerList actionListeners
protected boolean ignoreChange
Constructor Detail |
public MonthSpin(com.klg.jclass.util.value.JCValueModel model, Locale l)
model
- The new calendar value modell
- The locale to usepublic MonthSpin(com.klg.jclass.util.value.JCValueModel model, Locale l, String[] months)
model
- The new calendar value modell
- The locale to usemonths
- A list of months to use (null means use locale specific names)Method Detail |
public void setLocale(Locale l)
setLocale
in interface CalendarComponent
setLocale
in class AbstractSpinBox
l
- The new locale to usepublic Locale getLocale()
getLocale
in class Component
public void setCalendarModel(com.klg.jclass.util.value.JCValueModel model)
setCalendarModel
in interface CalendarComponent
model
- The new calendar value modelpublic com.klg.jclass.util.value.JCValueModel getCalendarModel()
public void setSpecialDates(com.klg.jclass.util.calendar.JCCalendar sd)
setSpecialDates
in interface CalendarComponent
sd
- The new list of special dates stored within a JCCalendar objectpublic com.klg.jclass.util.calendar.JCCalendar getSpecialDates(com.klg.jclass.util.calendar.JCCalendar sd)
sd
- Unused
public com.klg.jclass.util.calendar.JCCalendar getSpecialDates()
public void addActionListener(ActionListener l)
addActionListener
in interface CalendarComponent
addActionListener
in class JCSpinBox
l
- The action listener to be addedpublic void removeActionListener(ActionListener l)
removeActionListener
in interface CalendarComponent
removeActionListener
in class JCSpinBox
l
- The action listener to be removedpublic void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
e
- The event caused by the item being changedpublic void valueChanging(com.klg.jclass.util.value.JCValueEvent event)
valueChanging
in interface JCValueListener
event
- The event generated by the value changingpublic void valueChanged(com.klg.jclass.util.value.JCValueEvent event)
valueChanged
in interface JCValueListener
event
- The event generated by the value being changed
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |