Oracle Forms 9i Samples and Demos


oracle.forms.demos
Class CalendarWidgetWrapper

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--oracle.ewt.lwAWT.LWComponent
                    |
                    +--oracle.ewt.lwAWT.LWContainer
                          |
                          +--oracle.forms.ui.VBean
                                |
                                +--oracle.forms.demos.CalendarWidgetWrapper
All Implemented Interfaces:
javax.accessibility.Accessible, CalendarWidgetListener, oracle.ewt.lwAWT.DoubleBufferer, oracle.ewt.help.HelpCapable, java.awt.image.ImageObserver, oracle.ewt.lwAWT.ImmediatePainter, oracle.forms.ui.IView, oracle.ewt.lwAWT.KeyProcessor, java.awt.MenuContainer, java.io.Serializable, oracle.ewt.lwAWT.VirtualComponent

public class CalendarWidgetWrapper
extends oracle.forms.ui.VBean
implements CalendarWidgetListener

An Oracle Forms Server 9i Pluggable Java Component (PJC)

This class acts as a wrapper class between the Oracle Forms Java Applet and the CalendarWidget JavaBean. This class is derived from the oracle.forms.ui.VBean class which implements the oracle.forms.ui.IView interface and extends the EWT lightweight container class. All Pluggable Java Components must implement the IView interface either directly or via subclassing from another class that implements the IView interface. By extending from the VBean interface we need only override the methods we desire and are not forced to provide an implementation for each of the methods defined in the IView interface since the VBean class does this for us.

See Also:
Serialized Form

Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Fields inherited from class oracle.forms.ui.VBean
BEAN_NAME, DEBUG_MODE, DELIVER_EVENT, FOCUS_EVENT, KEY_EVENT
 
Fields inherited from class oracle.ewt.lwAWT.LWComponent
DEFAULT_BORDERPAINTER, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_PAINTER, MNEMONIC_CHAR_NONE, MNEMONIC_INDEX_NONE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface oracle.forms.ui.IView
DEFAULT_COLOR
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CalendarWidgetWrapper()
          Construct a new CalendarWidgetWrapper and add to it an instance of the item it is wrappering.
 
Method Summary
 void calendarWidgetDateChanged(CalendarWidgetEvent cwe)
          Method required to be able to detect changes in the date selected in the CalendarWidget.
 void destroy()
          IView destructor method for this component, will be called when Forms wants to kill the item instance.
 void init(oracle.forms.handler.IHandler handler)
          IView initialisation method for this component, will be called when Forms creates a new item instance.
 boolean setProperty(oracle.forms.properties.ID pid, java.lang.Object value)
          Overriding method from the IView interface.
 
Methods inherited from class oracle.forms.ui.VBean
add, addCustomListener, addListener, addNotify, dispatchCustomEvent, getBean, getHandler, getProperty, initializeBean, remove, removeAll, removeCustomListener, removeListener, repaint
 
Methods inherited from class oracle.ewt.lwAWT.LWContainer
getBorderPainter, setBorderPainter
 
Methods inherited from class oracle.ewt.lwAWT.LWComponent
accessAccessibleContext, addAnyEventListener, addImpl, addPostKeyListener, addPreKeyListener, clipToParents, contains, convertInnerToOuterSize, convertInteriorToOuter, convertOuterToInterior, createAccessibleContext, disable, doLayout, enable, eventMatchesMnemonic, eventMatchesMnemonic, freezeRepaints, getAccessibleContext, getActualAlignment, getActualReadingDirection, getAlignment, getBackground, getBaseClassName, getBorderContext, getBorderInsets, getClientProperty, getColorScheme, getDefaultHelpProvider, getDefaultName, getDocumentSize, getDoubleBuffer, getEWTDropTarget, getFill, getFocusedComponent, getFont, getForeground, getGraphics, getHelpBook, getHelpProvider, getHelpTopic, getInnerBounds, getInnerHeight, getInnerOrigin, getInnerSize, getInnerWidth, getInsets, getInteriorAlignmentX, getInteriorAlignmentY, getInvalidateFlags, getLookAndFeel, getMnemonicChar, getMnemonicIndex, getMnemonicString, getName, getPageBounds, getPaintContext, getPaintData, getPaintState, getPrintPaintContext, getReadingDirection, getRepaintFlags, getToolTipValue, getUI, getUIClassID, getUIDefaults, hasFocus, hasGlobalFocus, hasMnemonicModifier, hasWindowFocus, hide, imageUpdate, insets, interiorContains, invalidate, invalidateAndRepaintIfNecessary, isActive, isBorderTransparent, isChildClipped, isClippedBySibling, isFocusTraversable, isInteriorTransparent, isLocaleDefaulted, isPaintPropagationRequired, isReadingDirectionDefaulted, isTransparent, paint, paintAll, paintImmediate, paintImmediate, paintImmediateInterior, paintImmediateInterior, paintImmediateUnclipped, paintInterior, paintOverChildren, paramString, pointInInterior, pointIsInChild, postProcessKey, print, printAll, printPage, processEvent, processEventImpl, processFocusEvent, processMouseEvent, putClientProperty, redispatchEvent, remove, removeAnyEventListener, removeClientProperty, removeNotify, removePostKeyListener, removePreKeyListener, repaint, repaintInterior, repaintInterior, reshape, setAlignment, setBackground, setColorScheme, setDefaultHelpProvider, setEnabled, setEWTDropTarget, setFill, setFont, setForeground, setHelpBook, setHelpProvider, setHelpTopic, setLocale, setLookAndFeel, setMnemonicChar, setMnemonicIndex, setReadingDirection, setToolTipValue, setToolTipValue, setUI, setVisible, shiftFrozenDamage, showHelp, unfreezeRepaints, update, updateAlignment, updateLocale, updateReadingDirection, updateUI, updateUI, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFontMetrics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, inside, isDisplayable, isDoubleBuffered, isEnabled, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.forms.ui.IView
contains, paint
 
Methods inherited from interface oracle.ewt.lwAWT.VirtualComponent
getBounds, getSize
 

Constructor Detail

CalendarWidgetWrapper

public CalendarWidgetWrapper()
Construct a new CalendarWidgetWrapper and add to it an instance of the item it is wrappering. The CalendarWidgetWrapper uses a GridLayout of (1,1) so that any component added to it will take up all the available space.
Method Detail

init

public void init(oracle.forms.handler.IHandler handler)
IView initialisation method for this component, will be called when Forms creates a new item instance.
Overrides:
init in class oracle.forms.ui.VBean
Parameters:
the - Forms Handler object for this view class

destroy

public void destroy()
IView destructor method for this component, will be called when Forms wants to kill the item instance.
Overrides:
destroy in class oracle.forms.ui.VBean

setProperty

public boolean setProperty(oracle.forms.properties.ID pid,
                           java.lang.Object value)
Overriding method from the IView interface. Allows properties to be set when called from the Oracle Forms Server runtime. This method allows the Forms Server to set both standard and custom properties. The standard properties such as FOREGROUND, FONT, etc. all have type mappings performed by the Forms engine itself so these can simply be passed onto their analog accessor methods on the JavaBean. For the custom properties, sometimes type translation is required since Forms will only send over a String type for a custom property.
Overrides:
setProperty in class oracle.forms.ui.VBean
Parameters:
id - the property to be set, identified by it's ID
value - the value to set the property to
Returns:
boolean true if property could be set, false otherwise

calendarWidgetDateChanged

public void calendarWidgetDateChanged(CalendarWidgetEvent cwe)
Method required to be able to detect changes in the date selected in the CalendarWidget. Will be called by the CalendarWidget.
Specified by:
calendarWidgetDateChanged in interface CalendarWidgetListener
Parameters:
the - CalendarWidgetEvent that contains the details of the date selected

Oracle Forms 9i Samples and Demos