Class s2iAudit

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--s2iAudit

public class s2iAudit
extends javax.swing.JDialog

s2iAudit implements a window that parses a Spice file and warns of questionable content. The user may edit and reparse the Spice file. When finished, the s2iProjectSetup window is invoked.

Author:
Anish Malhotra, Cadence Design Systems
See Also:
Serialized Form

Inner Class Summary
(package private)  class s2iAudit.SymAction
           
(package private)  class s2iAudit.SymWindow
           
 
Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  java.lang.String cmdValue
           
(package private)  java.lang.String editFileName
           
(package private)  boolean fComponentsAdjusted
           
(package private)  javax.swing.JButton jCancel
           
(package private)  javax.swing.JButton jCont
           
(package private)  javax.swing.JButton jEdit
           
(package private)  javax.swing.JPanel jPanel1
           
(package private)  javax.swing.JButton jReparse
           
(package private)  javax.swing.JScrollPane jScrollPane1
           
(package private)  javax.swing.JTextArea jTextArea
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
base, modal, nameCounter, resizable, serialVersionUID, title
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
s2iAudit()
          Construct a window that parses a Spice file and warns of questionable content.
s2iAudit(java.lang.String sTitle)
          Construct a window that parses a Spice file and warns of questionable content.
 
Method Summary
 void addNotify()
          Call the superclass addNotify(), then readjust the layout.
(package private)  void addText(java.lang.String str)
          Append text to the Audit text area.
(package private)  void clearText()
          Clear all text in the window.
(package private)  java.lang.String getValue()
          Append text to the Audit text area.
(package private)  void jCancel_actionPerformed(java.awt.event.ActionEvent event)
          Abandon the Spice file and close the window.
(package private)  void jCont_actionPerformed(java.awt.event.ActionEvent event)
          Move on the the s2iProjectSetup window.
(package private)  void JDialog1_WindowClosing(java.awt.event.WindowEvent event)
          Quit the application when the window closes.
(package private)  void jEdit_actionPerformed(java.awt.event.ActionEvent event)
          Allow the user to edit the Spice file.
(package private)  void jReparse_actionPerformed(java.awt.event.ActionEvent event)
          Check the Spice file and show audit warnings.
static void main(java.lang.String[] args)
          Test the window.
(package private)  void setFileName(java.lang.String name)
          Set the path of the Spice file to be audited.
 void setVisible(boolean b)
          Show the window.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, createRootPaneException, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processWindowEvent, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, constructComponentName, getTitle, initIDs, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, readObject, removeOwnedWindow, removeWindowListener, setFocusOwner, setWarningString, toBack, toFront, transferFocus, writeObject
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

fComponentsAdjusted

boolean fComponentsAdjusted

jPanel1

javax.swing.JPanel jPanel1

jEdit

javax.swing.JButton jEdit

jCancel

javax.swing.JButton jCancel

jReparse

javax.swing.JButton jReparse

jCont

javax.swing.JButton jCont

jScrollPane1

javax.swing.JScrollPane jScrollPane1

jTextArea

javax.swing.JTextArea jTextArea

cmdValue

java.lang.String cmdValue

editFileName

java.lang.String editFileName
Constructor Detail

s2iAudit

public s2iAudit()
Construct a window that parses a Spice file and warns of questionable content. The user may edit and reparse the Spice file. When finished, the s2iProjectSetup window is invoked.

s2iAudit

public s2iAudit(java.lang.String sTitle)
Construct a window that parses a Spice file and warns of questionable content. The user may edit and reparse the Spice file. When finished, the s2iProjectSetup window is invoked.
Parameters:
sTitle - The window title String
Method Detail

setVisible

public void setVisible(boolean b)
Show the window. This resets the window location before calling the superclass.
Parameters:
b - true or false for visibility.
Overrides:
setVisible in class java.awt.Component

main

public static void main(java.lang.String[] args)
Test the window. No Spice data is parsed.
Parameters:
args - unused

addNotify

public void addNotify()
Call the superclass addNotify(), then readjust the layout.
Overrides:
addNotify in class java.awt.Dialog

JDialog1_WindowClosing

void JDialog1_WindowClosing(java.awt.event.WindowEvent event)
Quit the application when the window closes.
Parameters:
event - The event causing the window to close.

addText

void addText(java.lang.String str)
Append text to the Audit text area.
Parameters:
str - The text string to append.

getValue

java.lang.String getValue()
Append text to the Audit text area.
Parameters:
str - The text string to append.

setFileName

void setFileName(java.lang.String name)
Set the path of the Spice file to be audited.
Parameters:
name - The path of the Spice file to be audited.

clearText

void clearText()
         throws java.lang.IllegalArgumentException,
                javax.swing.text.BadLocationException
Clear all text in the window.

jEdit_actionPerformed

void jEdit_actionPerformed(java.awt.event.ActionEvent event)
Allow the user to edit the Spice file.
Parameters:
event - unused.

jCancel_actionPerformed

void jCancel_actionPerformed(java.awt.event.ActionEvent event)
Abandon the Spice file and close the window.
Parameters:
event - unused.

jReparse_actionPerformed

void jReparse_actionPerformed(java.awt.event.ActionEvent event)
Check the Spice file and show audit warnings.
Parameters:
event - unused.

jCont_actionPerformed

void jCont_actionPerformed(java.awt.event.ActionEvent event)
Move on the the s2iProjectSetup window.
Parameters:
event - unused.