planetj.gui
Class CopyrightOkCancelPanelJ

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--planetj.gui.CMPanelJ
                                |
                                +--planetj.gui.CopyrightOkCancelPanelJ
All Implemented Interfaces:
Accessible, ActionListener, EventListener, ImageObserver, KeyListener, MenuContainer, PropertyChangeListener, Serializable

public class CopyrightOkCancelPanelJ
extends CMPanelJ
implements ActionListener, KeyListener, PropertyChangeListener

This is the standard ok, cancel, help panel which allows for copyright information. It includes a CMProgressBar which can be used to display the status of tasks started from this panel. NOTE: If the progress bar is used, then the UseMultipleThreads property should be set to true.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
CopyrightOkCancelPanelJ()
          Constructor
CopyrightOkCancelPanelJ(boolean isDoubleBuffered)
          CopyrightOkCancelPanelJ constructor comment.
CopyrightOkCancelPanelJ(LayoutManager layout)
          CopyrightOkCancelPanelJ constructor comment.
CopyrightOkCancelPanelJ(LayoutManager layout, boolean isDoubleBuffered)
          CopyrightOkCancelPanelJ constructor comment.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Method to handle events for the ActionListener interface.
 void addCopyrightOkCancelPanelJListener(CopyrightOkCancelPanelJListener newListener)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
          The addPropertyChangeListener method was generated to support the propertyChange field.
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
          The firePropertyChange method was generated to support the propertyChange field.
 boolean getCancelEnabled()
          Method generated to support the promotion of the cancelEnabled attribute.
 String getCancelJBText()
          Method generated to support the promotion of the cancelJBText attribute.
 String getCancelText()
          Method generated to support the promotion of the cancelText attribute.
 boolean getCancelVisible()
          Method generated to support the promotion of the cancelVisible attribute.
 String getCopyrightCompanyLabel()
          Method generated to support the promotion of the copyrightCompanyLabel attribute.
 boolean getHelpEnabled()
          Method generated to support the promotion of the helpEnabled attribute.
 String getHelpText()
          Method generated to support the promotion of the helpText attribute.
 boolean getHelpVisibile()
          Method generated to support the promotion of the helpVisibile attribute.
 boolean getOkEnabled()
          Method generated to support the promotion of the okEnabled attribute.
 String getOkText()
          Method generated to support the promotion of the okText attribute.
 boolean getOkVisible()
          Method generated to support the promotion of the okVisible attribute.
 CMProgressBar getProgressBar()
          Return the ProgressBar property value.
 boolean isRequestFocusOnOkButton()
          Checks to see if focus is requested on the ok button when the window is opened Creation date: (1/27/00 11:03:46 AM)
 boolean isUseMultipleThreads()
          Tests if a separate thread should be used to process the OK click.
 void keyPressed(KeyEvent e)
          Method to handle events for the KeyListener interface.
 void keyReleased(KeyEvent e)
          Method to handle events for the KeyListener interface.
 void keyTyped(KeyEvent e)
          Method to handle events for the KeyListener interface.
static void main(String[] args)
          main entrypoint - starts the part when it is run as an application
 void OkClickedToTransferFocus()
          Comment
 void okDoClick()
           
 void okDoClick(int pressTime)
           
 void propertyChange(PropertyChangeEvent evt)
          Method to handle events for the PropertyChangeListener interface.
 void removeCopyrightOkCancelPanelJListener(CopyrightOkCancelPanelJListener newListener)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void returnPressedOnOK(KeyEvent keyEvent)
          Comment
 void setCancelEnabled(boolean arg1)
          Method generated to support the promotion of the cancelEnabled attribute.
 void setCancelJBText(String arg1)
          Method generated to support the promotion of the cancelJBText attribute.
 void setCancelText(String arg1)
          Method generated to support the promotion of the cancelText attribute.
 void setCancelVisible(boolean arg1)
          Method generated to support the promotion of the cancelVisible attribute.
 void setCopyrightCompanyLabel(String arg1)
          Method generated to support the promotion of the copyrightCompanyLabel attribute.
 void setHelpEnabled(boolean arg1)
          Method generated to support the promotion of the helpEnabled attribute.
 void setHelpText(String arg1)
          Method generated to support the promotion of the helpText attribute.
 void setHelpVisibile(boolean arg1)
          Method generated to support the promotion of the helpVisibile attribute.
 void setOkEnabled(boolean arg1)
          Method generated to support the promotion of the okEnabled attribute.
 void setOkText(String arg1)
          Method generated to support the promotion of the okText attribute.
 void setOkVisible(boolean arg1)
          Method generated to support the promotion of the okVisible attribute.
 void setProgressValue(int value)
          Sets the progress bar's value.
 void setRequestFocusOnOkButton(boolean newRequestFocusOnOkButton)
          This will set the focus to the ok button when the window is opened Creation date: (1/27/00 11:03:46 AM)
 void setUseMultipleThreads(boolean newUseMultipleThreads)
          Sets if a separate thread should be used to process the OK click.
 
Methods inherited from class planetj.gui.CMPanelJ
showBusyCursor, showDefaultCursor, showException, showException, showException
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyrightOkCancelPanelJ

public CopyrightOkCancelPanelJ()
Constructor


CopyrightOkCancelPanelJ

public CopyrightOkCancelPanelJ(LayoutManager layout)
CopyrightOkCancelPanelJ constructor comment.

Parameters:
layout - java.awt.LayoutManager

CopyrightOkCancelPanelJ

public CopyrightOkCancelPanelJ(LayoutManager layout,
                               boolean isDoubleBuffered)
CopyrightOkCancelPanelJ constructor comment.

Parameters:
layout - java.awt.LayoutManager
isDoubleBuffered - boolean

CopyrightOkCancelPanelJ

public CopyrightOkCancelPanelJ(boolean isDoubleBuffered)
CopyrightOkCancelPanelJ constructor comment.

Parameters:
isDoubleBuffered - boolean
Method Detail

actionPerformed

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

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

addCopyrightOkCancelPanelJListener

public void addCopyrightOkCancelPanelJListener(CopyrightOkCancelPanelJListener newListener)
Parameters:
newListener - com.cybra.guiBeans.CopyrightOkCancelPanelJListener

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.

Overrides:
addPropertyChangeListener in class JComponent
Parameters:
listener - java.beans.PropertyChangeListener

firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)
The firePropertyChange method was generated to support the propertyChange field.

Overrides:
firePropertyChange in class JComponent
Parameters:
propertyName - java.lang.String
oldValue - java.lang.Object
newValue - java.lang.Object

getCancelEnabled

public boolean getCancelEnabled()
Method generated to support the promotion of the cancelEnabled attribute.

Returns:
boolean

getCancelJBText

public String getCancelJBText()
Method generated to support the promotion of the cancelJBText attribute.

Returns:
java.lang.String

getCancelText

public String getCancelText()
Method generated to support the promotion of the cancelText attribute.

Returns:
java.lang.String

getCancelVisible

public boolean getCancelVisible()
Method generated to support the promotion of the cancelVisible attribute.

Returns:
boolean

getCopyrightCompanyLabel

public String getCopyrightCompanyLabel()
Method generated to support the promotion of the copyrightCompanyLabel attribute.

Returns:
java.lang.String

getHelpEnabled

public boolean getHelpEnabled()
Method generated to support the promotion of the helpEnabled attribute.

Returns:
boolean

getHelpText

public String getHelpText()
Method generated to support the promotion of the helpText attribute.

Returns:
java.lang.String

getHelpVisibile

public boolean getHelpVisibile()
Method generated to support the promotion of the helpVisibile attribute.

Returns:
boolean

getOkEnabled

public boolean getOkEnabled()
Method generated to support the promotion of the okEnabled attribute.

Returns:
boolean

getOkText

public String getOkText()
Method generated to support the promotion of the okText attribute.

Returns:
java.lang.String

getOkVisible

public boolean getOkVisible()
Method generated to support the promotion of the okVisible attribute.

Returns:
boolean

getProgressBar

public CMProgressBar getProgressBar()
Return the ProgressBar property value.

Returns:
planetj.gui.CMProgressBar

isRequestFocusOnOkButton

public boolean isRequestFocusOnOkButton()
Checks to see if focus is requested on the ok button when the window is opened Creation date: (1/27/00 11:03:46 AM)

Returns:
boolean

isUseMultipleThreads

public boolean isUseMultipleThreads()
Tests if a separate thread should be used to process the OK click. This must be true for the progress bar to display properly.


keyPressed

public void keyPressed(KeyEvent e)
Method to handle events for the KeyListener interface.

Specified by:
keyPressed in interface KeyListener
Parameters:
e - java.awt.event.KeyEvent

keyReleased

public void keyReleased(KeyEvent e)
Method to handle events for the KeyListener interface.

Specified by:
keyReleased in interface KeyListener
Parameters:
e - java.awt.event.KeyEvent

keyTyped

public void keyTyped(KeyEvent e)
Method to handle events for the KeyListener interface.

Specified by:
keyTyped in interface KeyListener
Parameters:
e - java.awt.event.KeyEvent

main

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

Parameters:
args - java.lang.String[]

OkClickedToTransferFocus

public void OkClickedToTransferFocus()
Comment


okDoClick

public void okDoClick()

okDoClick

public void okDoClick(int pressTime)
Parameters:
pressTime - int

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Method to handle events for the PropertyChangeListener interface.

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - java.beans.PropertyChangeEvent

removeCopyrightOkCancelPanelJListener

public void removeCopyrightOkCancelPanelJListener(CopyrightOkCancelPanelJListener newListener)
Parameters:
newListener - com.cybra.guiBeans.CopyrightOkCancelPanelJListener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.

Overrides:
removePropertyChangeListener in class JComponent
Parameters:
listener - java.beans.PropertyChangeListener

returnPressedOnOK

public void returnPressedOnOK(KeyEvent keyEvent)
Comment


setCancelEnabled

public void setCancelEnabled(boolean arg1)
Method generated to support the promotion of the cancelEnabled attribute.

Parameters:
arg1 - boolean

setCancelJBText

public void setCancelJBText(String arg1)
Method generated to support the promotion of the cancelJBText attribute.

Parameters:
arg1 - java.lang.String

setCancelText

public void setCancelText(String arg1)
Method generated to support the promotion of the cancelText attribute.

Parameters:
arg1 - java.lang.String

setCancelVisible

public void setCancelVisible(boolean arg1)
Method generated to support the promotion of the cancelVisible attribute.

Parameters:
arg1 - boolean

setCopyrightCompanyLabel

public void setCopyrightCompanyLabel(String arg1)
Method generated to support the promotion of the copyrightCompanyLabel attribute.

Parameters:
arg1 - java.lang.String

setHelpEnabled

public void setHelpEnabled(boolean arg1)
Method generated to support the promotion of the helpEnabled attribute.

Parameters:
arg1 - boolean

setHelpText

public void setHelpText(String arg1)
Method generated to support the promotion of the helpText attribute.

Parameters:
arg1 - java.lang.String

setHelpVisibile

public void setHelpVisibile(boolean arg1)
Method generated to support the promotion of the helpVisibile attribute.

Parameters:
arg1 - boolean

setOkEnabled

public void setOkEnabled(boolean arg1)
Method generated to support the promotion of the okEnabled attribute.

Parameters:
arg1 - boolean

setOkText

public void setOkText(String arg1)
Method generated to support the promotion of the okText attribute.

Parameters:
arg1 - java.lang.String

setOkVisible

public void setOkVisible(boolean arg1)
Method generated to support the promotion of the okVisible attribute.

Parameters:
arg1 - boolean

setProgressValue

public void setProgressValue(int value)
Sets the progress bar's value. This should be a number between 0 and 100.


setRequestFocusOnOkButton

public void setRequestFocusOnOkButton(boolean newRequestFocusOnOkButton)
This will set the focus to the ok button when the window is opened Creation date: (1/27/00 11:03:46 AM)

Parameters:
newRequestFocusOnOkButton - boolean

setUseMultipleThreads

public void setUseMultipleThreads(boolean newUseMultipleThreads)
Sets if a separate thread should be used to process the OK click. This must be true for the progress bar to display properly.