|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.ibm.calendar.Calendar
public class Calendar
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 | |
---|---|
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 |
beep()
|
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 |
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. |
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. |
boolean |
isSaturday(int day)
Checkes whether the day parameter is saturday or not. |
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 |
run()
|
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 |
setSize(int width,
int height)
|
void |
start()
|
void |
stop()
|
void |
toDoPlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
The toDoPlugin_ActionPerformed method activates the ToDo plugin |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Calendar()
public Calendar(java.awt.LayoutManager layout)
layout
- java.awt.LayoutManagerMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
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)
addPropertyChangeListener
in class java.awt.Container
listener
- The PropertyChangeListener to be addedPropertyChangeListener
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
addVetoableChangeListener
in class javax.swing.JComponent
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)
componentHidden
in interface java.awt.event.ComponentListener
e
- java.awt.event.ComponentEventpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
e
- java.awt.event.ComponentEventpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
e
- java.awt.event.ComponentEventpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
e
- java.awt.event.ComponentEventpublic void dayPlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
actionEvent
- java.awt.event.ActionEventpublic void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
firePropertyChange
in class java.awt.Component
propertyName
- StringoldValue
- ObjectnewValue
- Objectpublic void fireVetoableChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) throws java.beans.PropertyVetoException
fireVetoableChange
in class javax.swing.JComponent
propertyName
- StringoldValue
- ObjectnewValue
- Object
java.beans.PropertyVetoException
public 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)
public java.lang.String getResultSelectedDateAsString()
public java.util.Date getSelectedDate()
setSelectedDate(java.util.Date)
public int getSelectType()
setSelectType(int)
public void setSize(int width, int height)
setSize
in class java.awt.Component
public boolean isWeekend(int day)
day
- int
public boolean isSaturday(int day)
day
- int
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- java.awt.event.ItemEventpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- java.awt.event.MouseEventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void notePlugin_ActionPerformed(java.awt.event.ActionEvent actionEvent)
actionEvent
- java.awt.event.ActionEventpublic void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
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)
removePropertyChangeListener
in class java.awt.Component
listener
- The PropertyChangeListener to be removedPropertyChangeListener
,
addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
removeVetoableChangeListener
in class javax.swing.JComponent
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.ActionEventpublic void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
public void beep()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |