com.lizardtech.djvubean.toolbar
Class PopupChoice

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Choice
          extended by com.lizardtech.djvubean.toolbar.PopupChoice
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PopupChoice
extends java.awt.Choice

An extension of the Choice class, designed to send events to the ComboBox.

Version:
$Revision: 1.2 $
Author:
Bill C. Riemers
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Choice
java.awt.Choice.AccessibleAWTChoice
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
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
PopupChoice(ComboBox reference)
          Creates a new PopupChoice object.
 
Method Summary
 java.awt.Dimension getMaximumSize()
          Returns the maximum size for this box.
 java.awt.Dimension getMinimumSize()
          Returns the minimum size for this box.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size for this box.
 void paint(java.awt.Graphics g)
          Paint this component.
protected  void processEvent(java.awt.AWTEvent event)
          Called to process an event.
protected  void processFocusEvent(java.awt.event.FocusEvent event)
          Called to process a focus event.
protected  void processItemEvent(java.awt.event.ItemEvent event)
          Called to process an event.
protected  void processMouseEvent(java.awt.event.MouseEvent event)
          Called to process a mouse event.
 void update(java.awt.Graphics g)
          Update this component.
 
Methods inherited from class java.awt.Choice
add, addItem, addItemListener, addNotify, countItems, getAccessibleContext, getItem, getItemCount, getItemListeners, getListeners, getSelectedIndex, getSelectedItem, getSelectedObjects, insert, paramString, remove, remove, removeAll, removeItemListener, select, select
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PopupChoice

public PopupChoice(ComboBox reference)
Creates a new PopupChoice object.

Parameters:
reference - ComboBox which uses this PopupChoice.
Method Detail

getMaximumSize

public java.awt.Dimension getMaximumSize()
Returns the maximum size for this box.

Overrides:
getMaximumSize in class java.awt.Component
Returns:
maximum size.

getMinimumSize

public java.awt.Dimension getMinimumSize()
Returns the minimum size for this box.

Overrides:
getMinimumSize in class java.awt.Component
Returns:
minimum size.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns the preferred size for this box.

Overrides:
getPreferredSize in class java.awt.Component
Returns:
preferred size.

paint

public void paint(java.awt.Graphics g)
Paint this component.

Overrides:
paint in class java.awt.Component
Parameters:
g - Graphics device to draw to.

update

public void update(java.awt.Graphics g)
Update this component.

Overrides:
update in class java.awt.Component
Parameters:
g - Graphics device to draw to.

processEvent

protected void processEvent(java.awt.AWTEvent event)
Called to process an event. If the source of an ItemEvent is this component, the source will be remapped to ComboBox.

Overrides:
processEvent in class java.awt.Choice
Parameters:
event - to process.

processFocusEvent

protected void processFocusEvent(java.awt.event.FocusEvent event)
Called to process a focus event. If focus has been lost, then close the selection menu.

Overrides:
processFocusEvent in class java.awt.Component
Parameters:
event - to process.

processItemEvent

protected void processItemEvent(java.awt.event.ItemEvent event)
Called to process an event. If the source of an ItemEvent is this component, the source will be remapped to ComboBox.

Overrides:
processItemEvent in class java.awt.Choice
Parameters:
event - to process.

processMouseEvent

protected void processMouseEvent(java.awt.event.MouseEvent event)
Called to process a mouse event. If the mouse has been clicked or released, then close the popup selection menu.

Overrides:
processMouseEvent in class java.awt.Component
Parameters:
event - to process.