org.sf.cafebabe.task.classfile
Class ClassFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JInternalFrame
                  extended by org.sf.mdi.MDIFrame
                      extended by org.sf.cafebabe.CustomFrame
                          extended by org.sf.cafebabe.task.classfile.ClassFrame
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, Constants

public class ClassFrame
extends CustomFrame
implements Constants

This class represents the frame for dispaying the content of ClassFile

Version:
1.0 02/04/2002
Author:
Alexander Shvets
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JInternalFrame
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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 org.sf.cafebabe.CustomFrame
dataSource
 
Fields inherited from class javax.swing.JInternalFrame
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 org.sf.cafebabe.Constants
ABOUT_ITEM_DESCR_TEXT, ABOUT_ITEM_SHORTCUT, ABOUT_ITEM_TEXT, ACCESS_FLAGS_TEXT, AUTHOR, BAD_ENTRY_TEXT, CAFEBABE_NAME, CHANGE_PLAF_ITEM_SHORTCUT, CHANGE_PLAF_ITEM_TEXT, CHANGE_THEME_ITEM_SHORTCUT, CHANGE_THEME_ITEM_TEXT, CLASS_ATTRIBUTES_TEXT, CLASS_HOUND_ITEM_DESCR_TEXT, CLASS_HOUND_ITEM_SHORTCUT, CLASS_HOUND_ITEM_TEXT, CLASS_NAME_TEXT, CLOSE_ITEM_DESCR_TEXT, CLOSE_ITEM_SHORTCUT, CLOSE_ITEM_TEXT, CONFIRMATION_STRING, CONSTANT_POOL_TEXT, EMAIL, EMAIL_ITEM_DESCR_TEXT, EMAIL_ITEM_SHORTCUT, EMAIL_ITEM_TEXT, EXIT_ITEM_DESCR_TEXT, EXIT_ITEM_SHORTCUT, EXIT_ITEM_TEXT, FIELDS_TEXT, FILE_MENU_SHORTCUT, FILE_MENU_TEXT, GOODBYE_MESSAGE, HELP_ARCHIVE_NAME, HELP_MENU_SHORTCUT, HELP_MENU_TEXT, ICON_ABOUT, ICON_ADD, ICON_CLASS, ICON_CLASS_FILE, ICON_CLASS_HOUND, ICON_CLOSED_FOLDER, ICON_COLLAPSE, ICON_DOUBLE, ICON_EDIT, ICON_EXPAND, ICON_EXPAND_ALL, ICON_FACE1, ICON_FACE2, ICON_FIELD, ICON_FLOAT, ICON_HELP, ICON_HIERARCHY_CLASS, ICON_HIERARCHY_INTERFACE, ICON_HIERARCHY_UNKNOWN, ICON_HOUND, ICON_IMETHOD, ICON_INT, ICON_INTEGRITY, ICON_JUMP, ICON_LONG, ICON_MAIL, ICON_MAIN_FRAME, ICON_METHOD, ICON_NAME_AND_TYPE, ICON_OPEN_FILE, ICON_OPEN_FOLDER, ICON_REMOVE, ICON_SAVE_FILE, ICON_SEARCH, ICON_SER_FILE, ICON_STRING, ICON_TUTORIAL_OFF, ICON_TUTORIAL_ON, ICON_UNICODE, ICON_UTF8, ICON_ZIP_FILE, ICONS_DIR, INTERFACES_TEXT, JAR_NAME, MAGIC_NUMBER_TEXT, MAILCAP_FILE_NAME, MAIN_FRAME_TITLE, MAJOR_VERSION_TEXT, METHODS_TEXT, MIMETYPES_FILE_NAME, MINOR_VERSION_TEXT, NEW_ITEM_DESCR_TEXT, NEW_ITEM_SHORTCUT, NEW_ITEM_TEXT, NONE_TEXT, OPEN_ITEM_DESCR_TEXT, OPEN_ITEM_SHORTCUT, OPEN_ITEM_TEXT, PROPERTIES_NAME, REFERENCE_TABLE_TEXT, SAVE_AS_ITEM_DESCR_TEXT, SAVE_AS_ITEM_SHORTCUT, SAVE_AS_ITEM_TEXT, SAVE_FILE_QUESTION, SEARCH_CLASS_ATTRIBUTE, SEARCH_CONST_POOL, SEARCH_FIELD, SEARCH_METHOD, SEARCH_PLAIN, SERIAL_VERSION_UID_TEXT, STREAM_MAGIC_TEXT, STREAM_VERSION_TEXT, SUPER_CLASS_TEXT, TASK_MENU_SHORTCUT, TASK_MENU_TEXT, THIS_CLASS_TEXT, VERSION, WINDOW_MENU_SHORTCUT, WINDOW_MENU_TEXT
 
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
ClassFrame()
           
 
Method Summary
 boolean canExit()
          Checks whether this window could be closed.
 ClassTree getClassTree()
          Gets the class tree object
 void integrityTest()
          Checks specified class file for integrity
 void load(Configurator configurator)
          Loads properties of internal frame
 void open()
          Opens class file in internal window
 void save(Configurator configurator)
          Saves properties of internal frame
 void saveAs(javax.activation.DataSource dataSource)
          Saves the content of the editor as external file
 void setFieldPosition(java.lang.String selField)
          Looks for desired position in ClassFile tree and positions on it
 void setMethodPosition(java.lang.String selMethod)
          Looks for desired position in ClassFile tree and positions on it
 
Methods inherited from class org.sf.cafebabe.CustomFrame
getDataSource, setDataSource
 
Methods inherited from class org.sf.mdi.MDIFrame
close, getJFrame
 
Methods inherited from class javax.swing.JInternalFrame
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, 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, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassFrame

public ClassFrame()
Method Detail

getClassTree

public ClassTree getClassTree()
Gets the class tree object

Returns:
the class tree object

load

public void load(Configurator configurator)
Loads properties of internal frame

Overrides:
load in class CustomFrame
Parameters:
configurator - the helper class for working with properties

save

public void save(Configurator configurator)
Saves properties of internal frame

Overrides:
save in class CustomFrame
Parameters:
configurator - the helper class for working with properties

canExit

public boolean canExit()
Checks whether this window could be closed. In case of any changes the confirmation dialog will arise.

Overrides:
canExit in class org.sf.mdi.MDIFrame
Returns:
thue id this window could be closed; false otherwise

open

public void open()
Opens class file in internal window

Overrides:
open in class CustomFrame

saveAs

public void saveAs(javax.activation.DataSource dataSource)
            throws java.lang.Exception
Saves the content of the editor as external file

Overrides:
saveAs in class CustomFrame
Parameters:
dataSource - the data ?ource
Throws:
java.lang.Exception

setMethodPosition

public void setMethodPosition(java.lang.String selMethod)
Looks for desired position in ClassFile tree and positions on it

Parameters:
selMethod - selected method name

setFieldPosition

public void setFieldPosition(java.lang.String selField)
Looks for desired position in ClassFile tree and positions on it

Parameters:
selField - selected field name

integrityTest

public void integrityTest()
Checks specified class file for integrity



Copyright 2006 Dream Programs Inc.. All Rights Reserved.