IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class GetItemsToSave

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by com.ibm.btt.base.GetItemsToSave
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class GetItemsToSave
extends java.awt.Dialog
implements java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.WindowListener

This class creates a dialog box used to add items to a file.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
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
GetItemsToSave(java.awt.Frame parent)
          This constructor creates a GetItemsToSave dialog in the specified parent frame.
GetItemsToSave(java.awt.Frame parent, boolean modal)
          This constructor creates a GetItemsToSave dialog in the specified parent frame.
GetItemsToSave(java.awt.Frame parent, int min, int max)
          This constructor creates a GetItemsToSave dialog in the specified parent frame.
GetItemsToSave(java.awt.Frame parent, java.lang.String title)
          This constructor creates a GetItemsToSave dialog in the specified parent frame.
GetItemsToSave(java.awt.Frame parent, java.lang.String title, boolean modal)
          This constructor creates a GetItemsToSave dialog in the specified parent frame.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Method to handle events for the ActionListener interface.
 void cancel()
          Closes the dialog when the Cancel button is pressed.
 void focusGained(java.awt.event.FocusEvent e)
          Method to handle events for the FocusListener interface.
 void focusLost(java.awt.event.FocusEvent e)
          Method to handle events for the FocusListener interface.
 int getCount()
          Returns the value of the counter.
 int getInitItem()
          Returns the number of initialized items.
 boolean getReturnCode()
          Returns the retcode.
 void initialize(int min, int max)
          Initialize the dialog with default values and maximum and minimum values.
static void main(java.lang.String[] args)
          Main entrypoint - starts the part when it is run as an application.
 void oK()
          Validates the items to be saved and closes the window when the OK button is pressed.
 void windowActivated(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowClosed(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowClosing(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowDeactivated(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowDeiconified(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowIconified(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowOpened(java.awt.event.WindowEvent e)
          Method to handle events for the WindowListener interface.
 
Methods inherited from class java.awt.Dialog
addNotify, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, removeNotify, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetItemsToSave

public GetItemsToSave(java.awt.Frame parent)
This constructor creates a GetItemsToSave dialog in the specified parent frame.

Parameters:
parent - Symbol

GetItemsToSave

public GetItemsToSave(java.awt.Frame parent,
                      int min,
                      int max)
This constructor creates a GetItemsToSave dialog in the specified parent frame. This constructor also provides the minimum and maximum number of items to be saved.

Parameters:
parent - java.awt.Frame
min - int
max - int

GetItemsToSave

public GetItemsToSave(java.awt.Frame parent,
                      java.lang.String title)
This constructor creates a GetItemsToSave dialog in the specified parent frame. This constructor also provides the title of the dialog.

Parameters:
parent - java.awt.Frame
title - java.lang.String

GetItemsToSave

public GetItemsToSave(java.awt.Frame parent,
                      java.lang.String title,
                      boolean modal)
This constructor creates a GetItemsToSave dialog in the specified parent frame. This constructor also provides the title of the dialog and indicates whether the dialog is modal or not.

Parameters:
parent - java.awt.Frame
title - java.lang.String
modal - boolean

GetItemsToSave

public GetItemsToSave(java.awt.Frame parent,
                      boolean modal)
This constructor creates a GetItemsToSave dialog in the specified parent frame. This constructor also indicates whether the dialog is modal or not.

Parameters:
parent - java.awt.Frame
modal - boolean
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Method to handle events for the ActionListener interface.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - java.awt.event.ActionEvent

cancel

public void cancel()
Closes the dialog when the Cancel button is pressed.


focusGained

public void focusGained(java.awt.event.FocusEvent e)
Method to handle events for the FocusListener interface.

Specified by:
focusGained in interface java.awt.event.FocusListener
Parameters:
e - java.awt.event.FocusEvent

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Method to handle events for the FocusListener interface.

Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
e - java.awt.event.FocusEvent

getCount

public int getCount()
Returns the value of the counter. The maximum value is limited to the maximum number of items.

Returns:
int

getInitItem

public int getInitItem()
Returns the number of initialized items.

Returns:
int

getReturnCode

public boolean getReturnCode()
Returns the retcode.

Returns:
boolean

initialize

public void initialize(int min,
                       int max)
Initialize the dialog with default values and maximum and minimum values.

Parameters:
min - int
max - int

main

public static void main(java.lang.String[] args)
Main entrypoint - starts the part when it is run as an application.

Parameters:
args - java.lang.String[]

oK

public void oK()
Validates the items to be saved and closes the window when the OK button is pressed.


windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowActivated in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowClosed in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowIconified in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowOpened in interface java.awt.event.WindowListener
Parameters:
e - java.awt.event.WindowEvent

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009