woSource
Class GenericRecallableDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--ij.gui.GenericDialog
                                |
                                +--woSource.GenericDialogPlus
                                      |
                                      +--woSource.GenericRecallableDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.MenuContainer, java.io.Serializable, java.awt.event.TextListener

public class GenericRecallableDialog
extends woSource.GenericDialogPlus
implements java.awt.event.AdjustmentListener, java.awt.event.KeyListener, java.awt.event.FocusListener

See Also:
Serialized Form

Field Summary
 int CENTER
           
static int MAX_ITEMS
          Maximum number of each component (numeric field, checkbox, etc).
 int WEST
           
 
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
GenericRecallableDialog(java.lang.String title)
           
GenericRecallableDialog(java.lang.String title, java.awt.Frame parent)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addButton(java.lang.String text)
          Adds a button.
 void addButton(java.lang.String text, int location)
           
 void addButtons(java.lang.String text1, java.lang.String text2)
           
 void addButtons(java.lang.String text1, java.lang.String text2, java.lang.String text3)
           
 void addButtons(java.lang.String text1, java.lang.String text2, java.lang.String text3, java.lang.String text4)
           
 void addButtonToPanel(java.lang.String text, java.awt.Panel panel, java.awt.GridBagLayout grid, int row)
           
 void addScrollBar(java.lang.String label, double defaultValue, int digits, double minval, double maxval)
          Adds adjustable scrollbar field.
 void addScrollBar(java.lang.String label, double defaultValue, int digits, double minval, double maxval, int maxClicks)
           
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
           
 void beginRowOfItems()
           
 void endRowOfItems()
           
 boolean getBooleanValue(int i)
           
 boolean getButtonValue(int i)
          Returns the contents of button 'i' field.
 boolean getNextButton()
          Returns the contents of the next buttons_touched field.
 double getNextScrollBar()
          Returns the contents of the next scrollbar field.
 double getNumericValue(int i)
           
 double getScrollBarValue(int i)
          Returns the contents of scrollbar field 'i'
 void keyPressed(java.awt.event.KeyEvent e)
           
 void setCheckboxState(int i, boolean val)
           
 void setScrollBarUnitIncrement(int inc)
           
 void setScrollBarValue(int i, double value)
          Sets the contents of scrollbar field 'i' to 'value'
 void showDialog()
          Displays this dialog box.
 
Methods inherited from class ij.gui.GenericDialog
addCheckbox, addCheckboxGroup, addChoice, addMessage, addNumericField, addStringField, addStringField, addTextAreas, focusGained, focusLost, getInsets, getNextBoolean, getNextChoice, getNextChoiceIndex, getNextNumber, getNextString, getNextText, invalidNumber, itemStateChanged, keyReleased, keyTyped, paint, textValueChanged, wasCanceled
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isShowing, pack, postEvent, removeWindowListener, setCursor, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.event.AdjustmentListener
adjustmentValueChanged
 
Methods inherited from interface java.awt.event.KeyListener
keyReleased, keyTyped
 
Methods inherited from interface java.awt.event.FocusListener
focusGained, focusLost
 

Field Detail

WEST

public final int WEST

CENTER

public final int CENTER

MAX_ITEMS

public static final int MAX_ITEMS
Maximum number of each component (numeric field, checkbox, etc).
Constructor Detail

GenericRecallableDialog

public GenericRecallableDialog(java.lang.String title)

GenericRecallableDialog

public GenericRecallableDialog(java.lang.String title,
                               java.awt.Frame parent)
Method Detail

showDialog

public void showDialog()
Description copied from class: woSource.GenericDialogPlus
Displays this dialog box.
Overrides:
showDialog in class woSource.GenericDialogPlus

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class GenericDialog

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Overrides:
actionPerformed in class GenericDialog

addButton

public void addButton(java.lang.String text)
Adds a button.

addButton

public void addButton(java.lang.String text,
                      int location)

addButtons

public void addButtons(java.lang.String text1,
                       java.lang.String text2)

addButtons

public void addButtons(java.lang.String text1,
                       java.lang.String text2,
                       java.lang.String text3)

addButtons

public void addButtons(java.lang.String text1,
                       java.lang.String text2,
                       java.lang.String text3,
                       java.lang.String text4)

addButtonToPanel

public void addButtonToPanel(java.lang.String text,
                             java.awt.Panel panel,
                             java.awt.GridBagLayout grid,
                             int row)

getNextButton

public boolean getNextButton()
Returns the contents of the next buttons_touched field.

getButtonValue

public boolean getButtonValue(int i)
Returns the contents of button 'i' field.

getBooleanValue

public boolean getBooleanValue(int i)

setCheckboxState

public void setCheckboxState(int i,
                             boolean val)

getNumericValue

public double getNumericValue(int i)

beginRowOfItems

public void beginRowOfItems()

endRowOfItems

public void endRowOfItems()

addScrollBar

public void addScrollBar(java.lang.String label,
                         double defaultValue,
                         int digits,
                         double minval,
                         double maxval)
Adds adjustable scrollbar field. param label the label param defaultValue initial state param digits the number of digits to the right of the decimal place param minval the range minimum (left side value of slider) param maxval the range maximum (right side value of slider)

addScrollBar

public void addScrollBar(java.lang.String label,
                         double defaultValue,
                         int digits,
                         double minval,
                         double maxval,
                         int maxClicks)

setScrollBarUnitIncrement

public void setScrollBarUnitIncrement(int inc)

getNextScrollBar

public double getNextScrollBar()
Returns the contents of the next scrollbar field.

getScrollBarValue

public double getScrollBarValue(int i)
Returns the contents of scrollbar field 'i'

setScrollBarValue

public void setScrollBarValue(int i,
                              double value)
Sets the contents of scrollbar field 'i' to 'value'

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener