Calendar Bean Suite V2.0

com.ibm.calendar
Class DayPlugin

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.ibm.calendar.DayPlugin

public class DayPlugin
extends java.awt.Panel
implements Plugin, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.Vector aActionCanceledEventListener
           
protected  java.util.Vector aActionPerformedEventListener
           
protected  java.util.Vector aInvalidPropertyValueListener
           
protected  java.beans.PropertyChangeSupport propertyChange
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
DayPlugin()
          Constructor
DayPlugin(java.awt.LayoutManager layout)
          NotePlugin constructor comment.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Method to handle events for the ActionListener interface.
 void addActionCanceledEventListener(ActionCanceledEventListener newListener)
          Adds an ActionCanceledEventListener to the listener list.
 void addActionPerformedEventListener(ActionPerformedEventListener newListener)
          Adds an ActionPerformedEventListener to the listener list.
 void addInvalidPropertyValueListener(InvalidPropertyValueListener newListener)
          Adds an InvalidPropertyValueListener to the listener list.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds an PropertyChangeListener to the listener list.
 void cancelButton_ActionEvents()
          To Hide the DayPlugin
protected  void fireOnActionCanceledEvent(ActionCanceledEvent e)
          Method to support listener events.
protected  void fireOnActionPerformedEvent(ActionPerformedEvent e)
          Method to support listener events.
protected  void fireOnInvalidPropertyValue(InvalidPropertyValue 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.
 java.lang.String getAboutThisBean()
          Gets the aboutThisBean property (java.lang.String) value.
 java.lang.String getInitialTimeInterval()
          Gets the initialTimeInterval property (java.lang.String) value.
protected  java.beans.PropertyChangeSupport getPropertyChange()
          Accessor for the propertyChange field.
 java.lang.String getResultSelectedEndTime()
          Gets the resultSelectedEndTime property (java.lang.String) value.
 java.lang.String getResultSelectedIntervalAsString()
          Gets the resultSelectedIntervalAsString property (java.lang.String) value.
 java.lang.String getResultSelectedStartTime()
          Gets the resultSelectedSatrtTime property (java.lang.String) value.
 boolean getTimeFormat24h()
          Gets the timeFormat24h property (boolean) value.
 long getTimeStep()
          Gets the timeStep property (long) value.
 void initPlugin()
          used to initialize the init List in the DayPlugin
 void keyPressed(java.awt.event.KeyEvent e)
          Method to handle events for the KeyListener interface.
 void keyReleased(java.awt.event.KeyEvent e)
          Method to handle events for the KeyListener interface.
 void keyTyped(java.awt.event.KeyEvent e)
          Method to handle events for the KeyListener interface.
 void mouseClicked(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mouseEntered(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mouseExited(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mousePressed(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mouseReleased(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void paint(java.awt.Graphics g)
          paint method is used to draw the dayPlugin.
 void removeActionCanceledEventListener(ActionCanceledEventListener newListener)
          Removes an ActionCanceledEventListener to the listener list.
 void removeActionPerformedEventListener(ActionPerformedEventListener newListener)
          Removes an ActionPerformedEventListener to the listener list.
 void removeInvalidPropertyValueListener(InvalidPropertyValueListener newListener)
          Removes an InvalidPropertyValueListener to the listener list.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes an PropertyChangeListener to the listener list.
 void setAboutThisBean(java.lang.String aboutThisBean)
          Sets the aboutThisBean property (java.lang.String) value.
 void setInfo(java.util.Calendar c, java.awt.Image i, int x, int y)
          initialize the plugin data.
 void setInitialTimeInterval(java.lang.String initialTimeInterval)
          Sets the initialTimeInterval property (java.lang.String) value.
 void setTimeFormat24h(boolean timeFormat24h)
          Sets the timeFormat24h property (boolean) value.
 void setTimeStep(int timeStep)
          Sets the timeStep property (long) value.
 void setTimeStep(long timeStep)
          Sets the timeStep property (long) value.
 void updateButton_ActionPerformed(java.awt.event.ActionEvent actionEvent)
          This method calls doOperation function to set the dayPlugin resultSelectedIntervalAsString property
 
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

propertyChange

protected transient java.beans.PropertyChangeSupport propertyChange

aInvalidPropertyValueListener

protected transient java.util.Vector aInvalidPropertyValueListener

aActionCanceledEventListener

protected transient java.util.Vector aActionCanceledEventListener

aActionPerformedEventListener

protected transient java.util.Vector aActionPerformedEventListener
Constructor Detail

DayPlugin

public DayPlugin()
Constructor

DayPlugin

public DayPlugin(java.awt.LayoutManager layout)
NotePlugin constructor comment.
Parameters:
layout - java.awt.LayoutManager
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Method to handle events for the ActionListener interface.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - java.awt.event.ActionEvent

addActionCanceledEventListener

public void addActionCanceledEventListener(ActionCanceledEventListener newListener)
Adds an ActionCanceledEventListener to the listener list.
Parameters:
newListener - The ActionCanceledEventListener to be added
See Also:
ActionCanceledEventListener, removeActionCanceledEventListener(com.ibm.calendar.events.ActionCanceledEventListener)

addActionPerformedEventListener

public void addActionPerformedEventListener(ActionPerformedEventListener newListener)
Adds an ActionPerformedEventListener to the listener list.
Parameters:
newListener - The ActionPerformedEventListener to be added
See Also:
ActionPerformedEventListener, removeActionPerformedEventListener(com.ibm.calendar.events.ActionPerformedEventListener)

addInvalidPropertyValueListener

public void addInvalidPropertyValueListener(InvalidPropertyValueListener newListener)
Adds an InvalidPropertyValueListener to the listener list.
Parameters:
newListener - The InvalidPropertyValueListener to be added
See Also:
InvalidPropertyValueListener, removeInvalidPropertyValueListener(com.ibm.calendar.events.InvalidPropertyValueListener)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds an PropertyChangeListener to the listener list.
Overrides:
addPropertyChangeListener in class java.awt.Component
Parameters:
listener - The PropertyChangeListener to be added
See Also:
com.ibm.calendar.events.PropertyChangeListener, removePropertyChangeListener(java.beans.PropertyChangeListener)

cancelButton_ActionEvents

public void cancelButton_ActionEvents()
To Hide the DayPlugin

fireOnActionCanceledEvent

protected void fireOnActionCanceledEvent(ActionCanceledEvent e)
Method to support listener events.
Parameters:
e - com.ibm.calendar.events.ActionCanceledEvent

fireOnActionPerformedEvent

protected void fireOnActionPerformedEvent(ActionPerformedEvent e)
Method to support listener events.
Parameters:
e - com.ibm.calendar.events.ActionPerformedEvent

fireOnInvalidPropertyValue

protected void fireOnInvalidPropertyValue(InvalidPropertyValue e)
Method to support listener events.
Parameters:
e - com.ibm.calendar.events.InvalidPropertyValue

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field.
Overrides:
firePropertyChange in class java.awt.Component
Parameters:
propertyName - String
oldValue - Object
newValue - Object

getAboutThisBean

public java.lang.String getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value.
Returns:
The aboutThisBean property value.
See Also:
setAboutThisBean(java.lang.String)

getInitialTimeInterval

public java.lang.String getInitialTimeInterval()
Gets the initialTimeInterval property (java.lang.String) value.
Returns:
The initialTimeInterval property value.
See Also:
setInitialTimeInterval(java.lang.String)

getPropertyChange

protected java.beans.PropertyChangeSupport getPropertyChange()
Accessor for the propertyChange field.

getResultSelectedEndTime

public java.lang.String getResultSelectedEndTime()
Gets the resultSelectedEndTime property (java.lang.String) value.
Returns:
The resultSelectedEndTime property value.

getResultSelectedIntervalAsString

public java.lang.String getResultSelectedIntervalAsString()
Gets the resultSelectedIntervalAsString property (java.lang.String) value.
Returns:
The resultSelectedIntervalAsString property value.

getResultSelectedStartTime

public java.lang.String getResultSelectedStartTime()
Gets the resultSelectedSatrtTime property (java.lang.String) value.
Returns:
The resultSelectedSatrtTime property value.

getTimeFormat24h

public boolean getTimeFormat24h()
Gets the timeFormat24h property (boolean) value.
Returns:
The timeFormat24h property value.
See Also:
setTimeFormat24h(boolean)

getTimeStep

public long getTimeStep()
Gets the timeStep property (long) value.
Returns:
The timeStep property value.
See Also:
setTimeStep(int)

initPlugin

public void initPlugin()
used to initialize the init List in the DayPlugin
Specified by:
initPlugin in interface Plugin

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Method to handle events for the KeyListener interface.
Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - java.awt.event.KeyEvent /* WARNING: THIS METHOD WILL BE REGENERATED.

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Method to handle events for the KeyListener interface.
Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
e - java.awt.event.KeyEvent /* WARNING: THIS METHOD WILL BE REGENERATED.

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Method to handle events for the KeyListener interface.
Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
e - java.awt.event.KeyEvent /* WARNING: THIS METHOD WILL BE REGENERATED.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Method to handle events for the MouseListener interface.
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent /* WARNING: THIS METHOD WILL BE REGENERATED.

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Method to handle events for the MouseListener interface.
Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent /* WARNING: THIS METHOD WILL BE REGENERATED.

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Method to handle events for the MouseListener interface.
Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent /* WARNING: THIS METHOD WILL BE REGENERATED.

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Method to handle events for the MouseListener interface.
Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Method to handle events for the MouseListener interface.
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

paint

public void paint(java.awt.Graphics g)
paint method is used to draw the dayPlugin.
Overrides:
paint in class java.awt.Container
Parameters:
g - java.awt.Graphics

removeActionCanceledEventListener

public void removeActionCanceledEventListener(ActionCanceledEventListener newListener)
Removes an ActionCanceledEventListener to the listener list.
Parameters:
newListener - The ActionCanceledEventListener to be removed
See Also:
ActionCanceledEventListener, addActionCanceledEventListener(com.ibm.calendar.events.ActionCanceledEventListener)

removeActionPerformedEventListener

public void removeActionPerformedEventListener(ActionPerformedEventListener newListener)
Removes an ActionPerformedEventListener to the listener list.
Parameters:
newListener - The ActionPerformedEventListener to be removed
See Also:
ActionPerformedEventListener, addActionPerformedEventListener(com.ibm.calendar.events.ActionPerformedEventListener)

removeInvalidPropertyValueListener

public void removeInvalidPropertyValueListener(InvalidPropertyValueListener newListener)
Removes an InvalidPropertyValueListener to the listener list.
Parameters:
newListener - The InvalidPropertyValueListener to be removed
See Also:
InvalidPropertyValueListener, addInvalidPropertyValueListener(com.ibm.calendar.events.InvalidPropertyValueListener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes an PropertyChangeListener to the listener list.
Overrides:
removePropertyChangeListener in class java.awt.Component
Parameters:
listener - The PropertyChangeListener to be removed
See Also:
com.ibm.calendar.events.PropertyChangeListener, addPropertyChangeListener(java.beans.PropertyChangeListener)

setAboutThisBean

public void setAboutThisBean(java.lang.String aboutThisBean)
Sets the aboutThisBean property (java.lang.String) value.
Parameters:
aboutThisBean - The new value for the property.
See Also:
getAboutThisBean()

setInfo

public void setInfo(java.util.Calendar c,
                    java.awt.Image i,
                    int x,
                    int y)
initialize the plugin data.
Specified by:
setInfo in interface Plugin
Parameters:
C - java.util.Calendar
i - java.awt.Image
x - int
y - int

setInitialTimeInterval

public void setInitialTimeInterval(java.lang.String initialTimeInterval)
Sets the initialTimeInterval property (java.lang.String) value.
Parameters:
initialTimeInterval - The new value for the property.
See Also:
getInitialTimeInterval()

setTimeFormat24h

public void setTimeFormat24h(boolean timeFormat24h)
Sets the timeFormat24h property (boolean) value.
Parameters:
timeFormat24h - The new value for the property.
See Also:
getTimeFormat24h()

setTimeStep

public void setTimeStep(int timeStep)
Sets the timeStep property (long) value.
Parameters:
timeStep - The new value for the property.
See Also:
getTimeStep()

setTimeStep

public void setTimeStep(long timeStep)
Sets the timeStep property (long) value.
Parameters:
timeStep - The new value for the property.
See Also:
getTimeStep()

updateButton_ActionPerformed

public void updateButton_ActionPerformed(java.awt.event.ActionEvent actionEvent)
This method calls doOperation function to set the dayPlugin resultSelectedIntervalAsString property

Calendar Bean Suite V2.0

Copyright © 2001 IBM Corp. All rights reserved. Java, JavaBeans, Swing and 100 Pure Java are trademarks of Sun Microsystems, Inc. All other trademarks are the property of their respective owners.