|
Calendar Bean Suite V2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--com.ibm.calendar.Calendar
Field Summary | |
protected java.util.Vector |
aDateSelectedEventListener
|
protected java.util.Vector |
aPluginInitializationErrorListener
|
protected java.beans.PropertyChangeSupport |
propertyChange
|
protected java.beans.VetoableChangeSupport |
vetoPropertyChange
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Calendar()
Calendar constructor |
|
Calendar(java.awt.LayoutManager layout)
Calendar constructor . |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Method to handle events for the ActionListener interface. |
void |
addDateSelectedEventListener(DateSelectedEventListener newListener)
Adds a com.ibm.calendar.events.DateSelectedEventListener. |
void |
addPluginInitializationErrorListener(PluginInitializationErrorListener newListener)
Adds an PluginInitializationErrorListener to the listener list. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds an PropertyChangeListener to the listener list. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds an VetoableChangeListener to the listener list. |
void |
choice1_ItemEvent()
Contains names of months |
void |
choice2_ItemEvent()
Contains years from 1900 to 2040 |
void |
componentHidden(java.awt.event.ComponentEvent e)
Method to handle events for the ComponentListener interface. |
void |
componentMoved(java.awt.event.ComponentEvent e)
Method to handle events for the ComponentListener interface. |
void |
componentResized(java.awt.event.ComponentEvent e)
Method to handle events for the ComponentListener interface. |
void |
componentShown(java.awt.event.ComponentEvent e)
Method to handle events for the ComponentListener interface. |
void |
dayPlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
The dayPlugin_ActionPerformed method activates the Day plugin |
protected void |
fireOnDateSelectedEvent(DateSelectedEvent e)
Method to support listener events. |
protected void |
fireOnPluginInitializationError(PluginInitializationError e)
Method to support listener events. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
void |
fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
The fireVetoableChange method was generated to support the vetoPropertyChange field. |
java.lang.String |
getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value. |
int |
getFirstDayOfWeek()
Gets the firstDayOfWeek property (int) value. |
java.lang.String |
getHolidays()
Gets the holidays property (java.lang.String) value. |
java.util.Date |
getInitialDate()
Gets the initialDate property (java.util.Date) value. |
Theme |
getInputTheme()
Gets the inputTheme property (java.awt.Image) value. |
protected java.beans.PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
java.lang.String |
getResultSelectedDateAsString()
Gets the resultSelectedDateAsString property (java.lang.String) value. |
java.util.Date |
getSelectedDate()
Gets the selectedDate property (java.util.Date) value. |
int |
getSelectType()
Gets the selectType property (int) value. |
protected java.beans.VetoableChangeSupport |
getVetoPropertyChange()
Accessor for the vetoPropertyChange field. |
boolean |
isWeekend(int day)
Checkes whether the day parameter is saturday/sunday or not. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Method to handle events for the ItemListener interface. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Method to handle mouseClicked Event, included double click if it is over the days region. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Informs all active ImageAreas of a mouse drag. |
void |
mouseEntered(java.awt.event.MouseEvent e)
mouseEntered Event |
void |
mouseExited(java.awt.event.MouseEvent e)
mouseExited Event |
void |
mouseMoved(java.awt.event.MouseEvent e)
mouseMoved Event |
void |
mousePressed(java.awt.event.MouseEvent e)
Inform all active ImageAreas of a mouse press. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Method to handle mouseReleased Event |
void |
notePlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
The notePlugin_ActionPerformed method activates the Note plugin |
void |
paint(java.awt.Graphics g)
Draws the calendar and initializes firstDayOfWeek and the date variables whenever it's needed. |
void |
removeDateSelectedEventListener(DateSelectedEventListener newListener)
Removes a com.ibm.calendar.events.DateSelectedEventListener. |
void |
removePluginInitializationErrorListener(PluginInitializationErrorListener newListener)
Removes an PluginInitializationErrorListener to the listener list. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes an PropertyChangeListener to the listener list. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes an VetoableChangeListener to the listener list. |
void |
setAboutThisBean(java.lang.String aboutThisBean)
Sets the aboutThisBean property (java.lang.String) value. |
void |
setFirstDayOfWeek(int firstDayOfWeek)
Sets the firstDayOfWeek property (int) value. |
void |
setHolidays(java.lang.String h)
Takes holiday dates from the parameter string and sets them as holidays in this CalendarBean. |
void |
setInitialDate(java.util.Date initialDate)
Sets the initialDate property (java.util.Date) value. |
void |
setInputPlugin(Plugin inputPlugin)
Sets the inputPlugin property (com.ibm.calendar.Plugin) value. |
void |
setInputTheme(Theme inputTheme)
Sets the inputTheme property (java.awt.Image) value. |
void |
setSelectedDate(java.util.Date selectedDate)
Sets the selectedDate property (java.util.Date) value. |
void |
setSelectType(int selectType)
Sets the selectType property (int) value. |
void |
toDoPlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
The toDoPlugin_ActionPerformed method activates the ToDo plugin |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected transient java.beans.VetoableChangeSupport vetoPropertyChange
protected transient java.beans.PropertyChangeSupport propertyChange
protected transient java.util.Vector aPluginInitializationErrorListener
protected transient java.util.Vector aDateSelectedEventListener
Constructor Detail |
public Calendar()
public Calendar(java.awt.LayoutManager layout)
layout
- java.awt.LayoutManagerMethod Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
e
- java.awt.event.ActionEventpublic void addDateSelectedEventListener(DateSelectedEventListener newListener)
public void addPluginInitializationErrorListener(PluginInitializationErrorListener newListener)
newListener
- The PluginInitializationErrorListener to be addedPluginInitializationErrorListener
,
removePluginInitializationErrorListener(com.ibm.calendar.events.PluginInitializationErrorListener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be addedPropertyChangeListener
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener to be addedVetoableChangeListener
,
removeVetoableChangeListener(java.beans.VetoableChangeListener)
public void choice1_ItemEvent()
public void choice2_ItemEvent()
public void componentHidden(java.awt.event.ComponentEvent e)
e
- java.awt.event.ComponentEventpublic void componentMoved(java.awt.event.ComponentEvent e)
e
- java.awt.event.ComponentEventpublic void componentResized(java.awt.event.ComponentEvent e)
e
- java.awt.event.ComponentEventpublic void componentShown(java.awt.event.ComponentEvent e)
e
- java.awt.event.ComponentEventpublic void dayPlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
actionEvent
- java.awt.event.ActionEventprotected void fireOnDateSelectedEvent(DateSelectedEvent e)
protected void fireOnPluginInitializationError(PluginInitializationError e)
e
- com.ibm.calendar.events.PluginInitializationErrorpublic void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- StringoldValue
- ObjectnewValue
- Objectpublic void fireVetoableChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) throws java.beans.PropertyVetoException
propertyName
- StringoldValue
- ObjectnewValue
- Objectpublic java.lang.String getAboutThisBean()
setAboutThisBean(java.lang.String)
public int getFirstDayOfWeek()
setFirstDayOfWeek(int)
public java.lang.String getHolidays()
setHolidays(java.lang.String)
public java.util.Date getInitialDate()
setInitialDate(java.util.Date)
public Theme getInputTheme()
setInputTheme(com.ibm.calendar.Theme)
protected java.beans.PropertyChangeSupport getPropertyChange()
public java.lang.String getResultSelectedDateAsString()
public java.util.Date getSelectedDate()
setSelectedDate(java.util.Date)
public int getSelectType()
setSelectType(int)
protected java.beans.VetoableChangeSupport getVetoPropertyChange()
public boolean isWeekend(int day)
day
- intpublic void itemStateChanged(java.awt.event.ItemEvent e)
e
- java.awt.event.ItemEventpublic void mouseClicked(java.awt.event.MouseEvent e)
e
- java.awt.event.MouseEventpublic void mouseDragged(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
e
- java.awt.event.MouseEventpublic void mouseExited(java.awt.event.MouseEvent e)
e
- java.awt.event.MouseEventpublic void mouseMoved(java.awt.event.MouseEvent e)
e
- java.awt.event.MouseEventpublic void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
e
- java.awt.event.MouseEventpublic void notePlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
actionEvent
- java.awt.event.ActionEventpublic void paint(java.awt.Graphics g)
g
- java.awt.Graphicspublic void removeDateSelectedEventListener(DateSelectedEventListener newListener)
public void removePluginInitializationErrorListener(PluginInitializationErrorListener newListener)
newListener
- The PluginInitializationErrorListener to be removedPluginInitializationErrorListener
,
addPluginInitializationErrorListener(com.ibm.calendar.events.PluginInitializationErrorListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removedPropertyChangeListener
,
addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener to be removedVetoableChangeListener
,
addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setAboutThisBean(java.lang.String aboutThisBean)
aboutThisBean
- The new value for the property.getAboutThisBean()
public void setFirstDayOfWeek(int firstDayOfWeek)
firstDayOfWeek
- The new value for the property.getFirstDayOfWeek()
public void setHolidays(java.lang.String h)
This allows to build universal repeatable dates.
Valid combinations are listed below:
Example of a holiday string (for Belarus): "/1/1,/1/7,/3/8,2001/4/24,/5/1,/5/9,/7/3,/11/2,/11/7,/12/25"
Wrong holiday dates are ignored.
h
- string of holiday dates.getHolidays()
public void setInitialDate(java.util.Date initialDate)
initialDate
- The new value for the property.getInitialDate()
public void setInputPlugin(Plugin inputPlugin)
inputPlugin
- The new value for the property.public void setInputTheme(Theme inputTheme)
inputTheme
- The new value for the property.getInputTheme()
public void setSelectedDate(java.util.Date selectedDate)
selectedDate
- The new value for the property.getSelectedDate()
public void setSelectType(int selectType)
selectType
- The new value for the property.getSelectType()
public void toDoPlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
actionEvent
- java.awt.event.ActionEvent
|
Calendar Bean Suite V2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |