Oracle Forms 9i Samples and Demos


oracle.forms.demos.beans
Class ColorPicker

java.lang.Object
  |
  +--java.awt.Component
        |
        +--oracle.forms.demos.beans.ColorPicker
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ColorPicker
extends java.awt.Component

Pluggable Java Components for Oracle Forms Server 9i

This simple JavaBean allows a Swing JColorChooser dialog to be displayed in a Form. It essentially has a single method which displays a color picker dialog and returns the color to Forms as an RGB triple or null

All of the datatype encoding from Color to String and visa versa is handled by the built-in encoders that are part of the enhanced JavaBean support in 9i

Change History

drmills 30-Oct-2001 - Creation

Version:
9.0.0
Author:
Duncan Mills
See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
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
ColorPicker()
           
 
Method Summary
 boolean getDebug()
          Gets debug mode
 void log(java.lang.String msg)
          Convenience method to display an message out to the console.
 void setDebug(boolean debugMode)
          Sets debug mode
 java.awt.Color showColorPicker(java.lang.String dialogTitle, java.awt.Color initialColor)
          method to display a color picker dialog.
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorPicker

public ColorPicker()
Method Detail

showColorPicker

public java.awt.Color showColorPicker(java.lang.String dialogTitle,
                                      java.awt.Color initialColor)
method to display a color picker dialog.
Parameters:
the - title for the dialog
the - initial color to show in the picker
Returns:
the selected color (or null)

setDebug

public void setDebug(boolean debugMode)
Sets debug mode

getDebug

public boolean getDebug()
Gets debug mode

log

public void log(java.lang.String msg)
Convenience method to display an message out to the console. Examines the m_Debug setting to see if it should output the message. Outputs message in format classname : msg
Parameters:
the - message to be output

Oracle Forms 9i Samples and Demos