|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
wt.clients.calendar.CalendarBean
Calendar component. Creates a graphic calendar displaying a month of dates. A combo box controls the month displayed, a numeric spin control changes the year displayed.
Nested Class Summary | |
(package private) class |
CalendarBean.Action
This is the Adjustment Event handling innerclass. |
(package private) class |
CalendarBean.Item
This is the Adjustment Event handling innerclass. |
(package private) class |
CalendarBean.Mouse
This is the Mouse Event handling innerclass. |
(package private) class |
CalendarBean.MouseMotion
|
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
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 | |
private CalendarBean.Action |
action
|
(package private) String |
actionCommand
|
(package private) ActionListener |
actionListener
|
(package private) Color |
backgroundColor
|
(package private) Font |
bigFont
|
protected boolean |
bNeedsPlatformHelp
True if the ComboBox needs help changing state. |
(package private) Font |
boldFont
|
(package private) Calendar |
calendar
|
private symantec.itools.beans.PropertyChangeSupport |
changes
|
protected Choice |
combo
The ComboBox that displays/controls the month. |
(package private) DateFormatSymbols |
dfs
|
protected int |
endDay
|
protected int |
endDaySelectedx
The column index of the end selected day. |
protected int |
endDaySelectedy
The row index of the end selected day. |
(package private) Color |
headerColor
|
private CalendarBean.Item |
item
|
(package private) ItemListener |
itemListener
|
protected int |
maxMonthx
The column index of the last day in the month. |
protected int |
maxMonthy
The row index of the last day in the month. |
private CalendarBean.Mouse |
mouse
|
private CalendarBean.MouseMotion |
mouseMotion
|
(package private) Color |
nonWorkingColor
|
(package private) Font |
normalFont
|
(package private) Graphics |
offgraphics
|
(package private) Image |
offscreen
|
(package private) Rectangle |
offscreensize
|
protected symantec.itools.awt.util.spinner.NumericSpinner |
sc
The spinner that displays/controls the year. |
(package private) Font |
smallFont
|
protected int |
startDay
|
protected int |
startDaySelectedx
The column index of the start selected day. |
protected int |
startDaySelectedy
The row index of the start selected day. |
(package private) CalendarMonth |
systemCalendar
|
(package private) WTPrincipalReference |
systemCalendarOwner
|
(package private) CalendarMonth |
userCalendar
|
(package private) WTPrincipalReference |
userCalendarOwner
|
private symantec.itools.beans.VetoableChangeSupport |
vetos
|
private static int |
WEEK_WIDTH
|
(package private) Color |
workingColor
|
(package private) TextField |
yearField
|
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
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 | |
CalendarBean()
Creates a default calendar with today's date initialized. |
|
CalendarBean(Date defaultdate)
Creates a calendar with the specified date initialized. |
Method Summary | |
void |
addActionListener(ActionListener l)
Adds the specified action listener to receive action events from this button. |
void |
addItemListener(ItemListener listener)
Adds a listener for all item events. |
void |
addNotify()
Tells this component that it has been added to a container. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener for all property change events. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds a listener for all vetoable property change events. |
static void |
displayException(Component component,
Throwable exception)
Displays and exception. |
String |
getActionCommand()
|
int |
getEndDay()
|
Dimension |
getMinimumSize()
Returns the minimum dimensions to properly display this component. |
int |
getMonth()
|
Dimension |
getPreferredSize()
Returns the recommended dimensions to properly display this component. |
Object[] |
getSelectedObjects()
Returns the selected days in an array of Integers. |
int |
getStartDay()
|
int |
getYear()
|
int |
getZoneOffset()
|
(package private) boolean |
isLeapYear(int year)
|
void |
paint(Graphics g)
Paints this component using the given graphics context. |
void |
removeActionListener(ActionListener l)
Removes the specified action listener so it no longer receives action events from this button. |
void |
removeItemListener(ItemListener listener)
Removes a listener for all item events. |
void |
removeNotify()
Tells this component that it is being removed from a container. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for all property change events. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes a listener for all vetoable property change events. |
void |
setActionCommand(String command)
Sets the command name of the action event fired by this button. |
private void |
setBusy(boolean busy)
Set the widget as busy. |
void |
setLayout(LayoutManager lm)
Takes no action. |
void |
setSystemCalendar(CalendarMonth system_calendar)
|
void |
setSystemCalendarOwner(WTPrincipalReference system_calendar_owner)
|
void |
setUserCalendar(CalendarMonth user_calendar)
|
void |
setUserCalendarOwner(WTPrincipalReference user_calendar_owner)
|
void |
sourceActionEvent()
Fire an action event to the listeners |
void |
sourceItemEvent()
Fire an item event to the listeners |
void |
update(Graphics g)
Handles redrawing of this component on the screen. |
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
Calendar calendar
DateFormatSymbols dfs
protected int startDay
protected int endDay
CalendarMonth userCalendar
CalendarMonth systemCalendar
Font smallFont
Font normalFont
Font boldFont
Font bigFont
Color nonWorkingColor
Color workingColor
Color backgroundColor
Color headerColor
private static final int WEEK_WIDTH
WTPrincipalReference userCalendarOwner
WTPrincipalReference systemCalendarOwner
TextField yearField
Image offscreen
Rectangle offscreensize
Graphics offgraphics
String actionCommand
ActionListener actionListener
ItemListener itemListener
protected Choice combo
protected boolean bNeedsPlatformHelp
combo
,
ComboBox.needsPlatformHelp()
protected symantec.itools.awt.util.spinner.NumericSpinner sc
protected int startDaySelectedx
protected int startDaySelectedy
protected int endDaySelectedx
protected int endDaySelectedy
protected int maxMonthx
protected int maxMonthy
private CalendarBean.Action action
private CalendarBean.Item item
private CalendarBean.Mouse mouse
private CalendarBean.MouseMotion mouseMotion
private symantec.itools.beans.VetoableChangeSupport vetos
private symantec.itools.beans.PropertyChangeSupport changes
Constructor Detail |
public CalendarBean()
public CalendarBean(Date defaultdate)
defaultdate
- the date to be shown initiallyMethod Detail |
private void setBusy(boolean busy)
public void addNotify()
removeNotify()
public void removeNotify()
addNotify()
public void update(Graphics g)
g
- the graphics contextComponent.repaint()
,
paint(java.awt.Graphics)
public void paint(Graphics g)
g
- the graphics context used for paintingComponent.repaint()
,
update(java.awt.Graphics)
public Dimension getPreferredSize()
Container.minimumSize()
public Dimension getMinimumSize()
Container.preferredSize()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to addremovePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to removeaddPropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- the listener to addremoveVetoableChangeListener(java.beans.VetoableChangeListener)
public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- the listener to removeaddVetoableChangeListener(java.beans.VetoableChangeListener)
public void setActionCommand(String command) throws PropertyVetoException
command
- The name of the action event command fired by this button
PropertyVetoException
- if the specified property value is unacceptablepublic String getActionCommand()
public void addActionListener(ActionListener l)
l
- the action listenerpublic void removeActionListener(ActionListener l)
l
- the action listenerpublic void sourceActionEvent()
public void addItemListener(ItemListener listener)
addItemListener
in interface ItemSelectable
listener
- the listener to addremoveItemListener(java.awt.event.ItemListener)
public void removeItemListener(ItemListener listener)
removeItemListener
in interface ItemSelectable
listener
- the listener to removeaddItemListener(java.awt.event.ItemListener)
public void sourceItemEvent()
public Object[] getSelectedObjects()
getSelectedObjects
in interface ItemSelectable
public void setSystemCalendar(CalendarMonth system_calendar)
public void setSystemCalendarOwner(WTPrincipalReference system_calendar_owner)
public void setUserCalendar(CalendarMonth user_calendar)
public void setUserCalendarOwner(WTPrincipalReference user_calendar_owner)
public int getStartDay()
public int getEndDay()
public int getYear()
public int getMonth()
public int getZoneOffset()
public void setLayout(LayoutManager lm)
lm
- the layout manager to use to layout this container's components
(IGNORED)Container.getLayout()
boolean isLeapYear(int year)
public static void displayException(Component component, Throwable exception)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |