planetj.gui
Class CMInternalFrameJ

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JInternalFrame
                          |
                          +--planetj.gui.CMInternalFrameJ
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class CMInternalFrameJ
extends JInternalFrame

Provides exception handling and debug messaging in addition to all swing features. Creation date: (6/2/00 10:38:57 AM)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.JInternalFrame
CONTENT_PANE_PROPERTY, FRAME_ICON_PROPERTY, GLASS_PANE_PROPERTY, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, LAYERED_PANE_PROPERTY, MENU_BAR_PROPERTY, ROOT_PANE_PROPERTY, TITLE_PROPERTY
 
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 javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CMInternalFrameJ()
          CMInternalFrameJ constructor comment.
CMInternalFrameJ(String title)
          CMInternalFrameJ constructor comment.
CMInternalFrameJ(String title, boolean resizable)
          CMInternalFrameJ constructor comment.
CMInternalFrameJ(String title, boolean resizable, boolean closable)
          CMInternalFrameJ constructor comment.
CMInternalFrameJ(String title, boolean resizable, boolean closable, boolean maximizable)
          CMInternalFrameJ constructor comment.
CMInternalFrameJ(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
          CMInternalFrameJ constructor comment.
 
Method Summary
 void debugMessage(Exception e)
          debugMessage method is a convenience method that delegates the message back to the MessageManager
 void debugMessage(String string)
          debugMessage method is a convenience method that delegates the message back to the MessageManager
 void debugMessage(String message, Exception e)
          debugMessage method is a convenience method that delegates the message back to the MessageManager
 CMException generateException(String exceptionKey)
          Convenience method which simply creates the replacement text variables as an array
 CMException generateException(String exceptionKey, Object[] replacementVars)
          Generate a new CMException.
 CMException generateException(String exceptionKey, String parm1)
          Convenience method which simply creates the replacement text variables as an array
 CMException generateException(String exceptionKey, String parm1, String parm2)
          Convenience method which simply creates the replacement text variables as an array
 CMException generateException(String exceptionKey, String parm1, String parm2, String parm3)
          Convenience method which simply creates the replacement text variables as an array
 void showBusyCursor()
          Set the cursor to busy
 void showDefaultCursor()
          Reset the cursor to the default
 
Methods inherited from class javax.swing.JInternalFrame
addInternalFrameListener, dispose, doDefaultCloseAction, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isSelected, moveToBack, moveToFront, pack, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, 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, 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, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, 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, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, 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, 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, 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, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMInternalFrameJ

public CMInternalFrameJ()
CMInternalFrameJ constructor comment.


CMInternalFrameJ

public CMInternalFrameJ(String title)
CMInternalFrameJ constructor comment.

Parameters:
title - java.lang.String

CMInternalFrameJ

public CMInternalFrameJ(String title,
                        boolean resizable)
CMInternalFrameJ constructor comment.

Parameters:
title - java.lang.String
resizable - boolean

CMInternalFrameJ

public CMInternalFrameJ(String title,
                        boolean resizable,
                        boolean closable)
CMInternalFrameJ constructor comment.

Parameters:
title - java.lang.String
resizable - boolean
closable - boolean

CMInternalFrameJ

public CMInternalFrameJ(String title,
                        boolean resizable,
                        boolean closable,
                        boolean maximizable)
CMInternalFrameJ constructor comment.

Parameters:
title - java.lang.String
resizable - boolean
closable - boolean
maximizable - boolean

CMInternalFrameJ

public CMInternalFrameJ(String title,
                        boolean resizable,
                        boolean closable,
                        boolean maximizable,
                        boolean iconifiable)
CMInternalFrameJ constructor comment.

Parameters:
title - java.lang.String
resizable - boolean
closable - boolean
maximizable - boolean
iconifiable - boolean
Method Detail

debugMessage

public void debugMessage(Exception e)
debugMessage method is a convenience method that delegates the message back to the MessageManager


debugMessage

public void debugMessage(String string)
debugMessage method is a convenience method that delegates the message back to the MessageManager


debugMessage

public void debugMessage(String message,
                         Exception e)
debugMessage method is a convenience method that delegates the message back to the MessageManager


generateException

public CMException generateException(String exceptionKey)
Convenience method which simply creates the replacement text variables as an array


generateException

public CMException generateException(String exceptionKey,
                                     Object[] replacementVars)
Generate a new CMException. This uses the TranslationManager since exceptions and messages need to be translated. The message are retrieved from a properties file called MessageBundle.properties. This also depends on a naming scheme where the "Detailed" text is appended to the exceptionKey to be used in finding the "detailed" message for this exception.


generateException

public CMException generateException(String exceptionKey,
                                     String parm1)
Convenience method which simply creates the replacement text variables as an array


generateException

public CMException generateException(String exceptionKey,
                                     String parm1,
                                     String parm2)
Convenience method which simply creates the replacement text variables as an array


generateException

public CMException generateException(String exceptionKey,
                                     String parm1,
                                     String parm2,
                                     String parm3)
Convenience method which simply creates the replacement text variables as an array


showBusyCursor

public void showBusyCursor()
Set the cursor to busy


showDefaultCursor

public void showDefaultCursor()
Reset the cursor to the default