Oracle Forms 9i Samples and Demos


oracle.forms.demos.enhancedItems
Class MultiSelectTList

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

public class MultiSelectTList
extends oracle.forms.ui.VTList

Pluggable Java Components for Oracle Forms Server 9i

This class is a Pluggable Java Component for Oracle Forms, that implements a method for allowing multi-select on a TList for use in Picker controls etc. The class implements the following Custom properties for the programmer to use on a Tlist:

Version:
1.0 24/June/2001 created
Author:
Duncan Mills
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
 
Field Summary
static oracle.forms.properties.ID CLEAR_LIST_SELECTION
          The property registered to clear the current selection in a multiselect TLIST
static oracle.forms.properties.ID DEBUGMESSAGES
          The property registered to Enable or Disable debugging on the PJC
static oracle.forms.properties.ID ENABLE_LIST_MULTISELECT
          The property registered to enable Multi Select capability in a TList TLIST
static oracle.forms.properties.ID LIST_SELECTION
          The property registered to Get/Set the selected values in a multiselect TLIST
 
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
MultiSelectTList()
          Constructs a new instance.
 
Method Summary
 java.lang.Object getProperty(oracle.forms.properties.ID pid)
          Implimentation of getProperty in the IView interface
 void log(java.lang.String msg)
          Utility function to print out a debug message to the Java Console
 boolean setProperty(oracle.forms.properties.ID pid, java.lang.Object value)
          Implimentation of setProperty in the IView interface
protected static boolean toBoolean(java.lang.Object value, boolean defaultValue)
          Converts a string value containing TRUE or FALSE as a string to the equivilent boolean
 
Methods inherited from class oracle.forms.ui.VTList
add, addListener, destroy, getDefaultName, init, remove, removeAll, removeListener, repaint
 
Methods inherited from class oracle.ewt.lwAWT.LWList
add, add, addItem, addItem, delItem, remove, remove, replaceItem, setDataSource
 
Methods inherited from class oracle.ewt.lwAWT.LWDataSourceList
addActionListener, addItemListener, createAccessibleContext, deselect, deselectAll, getDataSource, getFirstVisibleIndex, getImageSet, getInvalidateFlags, getItem, getItemCount, getItems, getListUI, getMinimumSize, getPaintData, getPreferredSize, getPreferredSize, getRepaintFlags, getRowHeight, getRows, getSelectedIndex, getSelectedIndexes, getSelectedItem, getSelectedItems, getSelectedObjects, getUIClassID, getVisibleIndex, invalidate, isFocusTraversable, isIndexSelected, isMultipleMode, makeVisible, paramString, processActionEvent, processEventImpl, processFocusEvent, processItemEvent, processKeyEvent, removeActionListener, removeItemListener, select, setColorScheme, setEnabled, setFill, setMultipleMode, validateTree
 
Methods inherited from class oracle.ewt.lwAWT.LWContainer
getBorderPainter, setBorderPainter
 
Methods inherited from class oracle.ewt.lwAWT.LWComponent
accessAccessibleContext, addAnyEventListener, addImpl, addNotify, addPostKeyListener, addPreKeyListener, clipToParents, contains, convertInnerToOuterSize, convertInteriorToOuter, convertOuterToInterior, disable, doLayout, enable, eventMatchesMnemonic, eventMatchesMnemonic, freezeRepaints, getAccessibleContext, getActualAlignment, getActualReadingDirection, getAlignment, getBackground, getBaseClassName, getBorderContext, getBorderInsets, getClientProperty, getColorScheme, getDefaultHelpProvider, getDocumentSize, getDoubleBuffer, getEWTDropTarget, getFill, getFocusedComponent, getFont, getForeground, getGraphics, getHelpBook, getHelpProvider, getHelpTopic, getInnerBounds, getInnerHeight, getInnerOrigin, getInnerSize, getInnerWidth, getInsets, getInteriorAlignmentX, getInteriorAlignmentY, getLookAndFeel, getMnemonicChar, getMnemonicIndex, getMnemonicString, getName, getPageBounds, getPaintContext, getPaintState, getPrintPaintContext, getReadingDirection, getToolTipValue, getUI, getUIDefaults, hasFocus, hasGlobalFocus, hasMnemonicModifier, hasWindowFocus, hide, imageUpdate, insets, interiorContains, invalidateAndRepaintIfNecessary, isActive, isBorderTransparent, isChildClipped, isClippedBySibling, isInteriorTransparent, isLocaleDefaulted, isPaintPropagationRequired, isReadingDirectionDefaulted, isTransparent, paint, paintAll, paintImmediate, paintImmediate, paintImmediateInterior, paintImmediateInterior, paintImmediateUnclipped, paintInterior, paintOverChildren, pointInInterior, pointIsInChild, postProcessKey, print, printAll, printPage, processEvent, processMouseEvent, putClientProperty, redispatchEvent, removeAnyEventListener, removeClientProperty, removeNotify, removePostKeyListener, removePreKeyListener, repaint, repaintInterior, repaintInterior, reshape, setAlignment, setBackground, setDefaultHelpProvider, setEWTDropTarget, 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, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, removeContainerListener, setLayout, validate
 
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, 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
 

Field Detail

ENABLE_LIST_MULTISELECT

public static final oracle.forms.properties.ID ENABLE_LIST_MULTISELECT
The property registered to enable Multi Select capability in a TList TLIST

LIST_SELECTION

public static final oracle.forms.properties.ID LIST_SELECTION
The property registered to Get/Set the selected values in a multiselect TLIST

CLEAR_LIST_SELECTION

public static final oracle.forms.properties.ID CLEAR_LIST_SELECTION
The property registered to clear the current selection in a multiselect TLIST

DEBUGMESSAGES

public static final oracle.forms.properties.ID DEBUGMESSAGES
The property registered to Enable or Disable debugging on the PJC
Constructor Detail

MultiSelectTList

public MultiSelectTList()
Constructs a new instance.
Method Detail

setProperty

public boolean setProperty(oracle.forms.properties.ID pid,
                           java.lang.Object value)
Implimentation of setProperty in the IView interface
Overrides:
setProperty in class oracle.forms.ui.VTList
Parameters:
pid - property to be set
value - new value of the property
Returns:
true (if the property could be set), false otherwise
See Also:
IView

getProperty

public java.lang.Object getProperty(oracle.forms.properties.ID pid)
Implimentation of getProperty in the IView interface
Overrides:
getProperty in class oracle.forms.ui.VTList
Parameters:
pid - property to be set
Returns:
the value of the property
See Also:
IView

toBoolean

protected static final boolean toBoolean(java.lang.Object value,
                                         boolean defaultValue)
Converts a string value containing TRUE or FALSE as a string to the equivilent boolean
Parameters:
value - String containing the words True or false in any case or the Forms Constants PROPERTY_TRUE/PROPERTY_FALSE
Returns:
boolean value of the value

log

public void log(java.lang.String msg)
Utility function to print out a debug message to the Java Console
Parameters:
msg - string to display, this will be prefixed with the classname of the PJC

Oracle Forms 9i Samples and Demos