|
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.JTable | +--com.klg.jclass.util.calendar.MonthTable
MonthTable is used to display a Table of selectable months for use with a calendar.
Nested Class Summary | |
protected class |
MonthTable.MonthModel
Build data model wrapper around DateSymbols that builds a 2x6 table of the months for picking. |
protected class |
MonthTable.Renderer
Use a table cell renderer to draw current month in reverse video. |
Nested classes inherited from class javax.swing.JTable |
JTable.AccessibleJTable |
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 Locale |
locale
|
protected MonthTable.MonthModel |
monthModel
|
protected String[] |
months
|
protected int |
selectedMonth
|
protected int |
tableCellWidth
|
protected boolean |
userSetMonths
|
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 | |
MonthTable(com.klg.jclass.util.value.JCValueModel model,
Locale l)
Construct a MonthTable with the given value model and locale. |
|
MonthTable(com.klg.jclass.util.value.JCValueModel model,
Locale l,
String[] months)
Construct a MonthTable with the given value model, locale, and month names. |
Method Summary | |
void |
addActionListener(ActionListener l)
Add listener to receive action event when data is changed by the user. |
void |
addNotify()
Calls configureEnclosingScrollPane aswell as setting up the table row height based on the font metrics. |
protected void |
adjustSize()
Adjust the size of the table. |
protected void |
calculateCellSize()
Calculates the cell size. |
com.klg.jclass.util.value.JCValueModel |
getCalendarModel()
Get the value model being used. |
Locale |
getLocale()
Get the locale being used. |
Dimension |
getPreferredSize()
Get the preferred size. |
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 |
mouseClicked(MouseEvent e)
Mouse clicked. |
void |
mouseEntered(MouseEvent e)
Mouse Entered. |
void |
mouseExited(MouseEvent e)
Mouse Exited. |
void |
mousePressed(MouseEvent e)
Mouse pressed. |
void |
mouseReleased(MouseEvent e)
Mouse released. |
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 to use. |
void |
setFont(Font font)
Override setFont to adjust the size of the table. |
void |
setLocale(Locale l)
Set the locale to use. |
void |
setSpecialDates(com.klg.jclass.util.calendar.JCCalendar sd)
This component ignores special dates. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Locale locale
protected int tableCellWidth
protected com.klg.jclass.util.value.JCValueModel calendarModel
protected MonthTable.MonthModel monthModel
protected int selectedMonth
protected String[] months
protected boolean userSetMonths
protected com.klg.jclass.util.JCListenerList actionListeners
Constructor Detail |
public MonthTable(com.klg.jclass.util.value.JCValueModel model, Locale l)
model
- The new calendar value modell
- The locale to usepublic MonthTable(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 Component
l
- The new locale to use.public Locale getLocale()
getLocale
in class Component
public void setFont(Font font)
setFont
in class JComponent
font
- The new font.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
l
- The action listener to be added.public void removeActionListener(ActionListener l)
removeActionListener
in interface CalendarComponent
l
- The action listener to be removed.public void addNotify()
addNotify
in class JTable
protected void adjustSize()
protected void calculateCellSize()
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
calculateCellSize()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- The event generatedpublic void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- The event generatedpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- The event generatedpublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- The event generatedpublic void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- The event generated
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |