hades.gui
Class PropertySheet

java.lang.Object
  extended byjava.awt.Component
      extended byhades.gui.PropertySheet
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
AWTPropertySheet, JPropertySheet

public abstract class PropertySheet
extends java.awt.Component

PropertySheet - SimObject/Bean inspection factory. Use getPropertySheet to construct the actual AWT or Swing dialog, depending on whether "Hades.UseSwingGUI" is set to true or false.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected static java.util.Hashtable _objectTable
           
protected static boolean debug
           
 
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
PropertySheet()
           
 
Method Summary
 java.lang.String buildTitle(SimObject obj)
           
abstract  void dispose()
           
abstract  void enableUpdateButton(boolean enable)
           
static PropertySheet getInstanceNamePropertySheet(SimObject obj)
           
static PropertySheet getPropertySheet(SimObject obj, java.awt.Frame frame, java.lang.String[] fields)
          create and return an AWT or Swing based PropertySheet control for simulation component "obj", as a Dialog window of "frame", and with textfields specified by "fields".
static PropertySheet getPropertySheet(SimObject obj, java.lang.String[] fields)
          create and return an AWT or Swing based PropertySheet control for simulation component "obj" with textfields specified by "fields".
static void msg(java.lang.String s)
           
abstract  void pack()
           
abstract  void setHelpText(java.lang.String msg)
           
abstract  void tearDown()
           
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_objectTable

protected static java.util.Hashtable _objectTable

debug

protected static boolean debug
Constructor Detail

PropertySheet

public PropertySheet()
Method Detail

getPropertySheet

public static PropertySheet getPropertySheet(SimObject obj,
                                             java.lang.String[] fields)
create and return an AWT or Swing based PropertySheet control for simulation component "obj" with textfields specified by "fields". We try to find a valid Frame window reference from the simulation component "obj" and dispatch to getPropertySheet(obj,frame,fields).


getInstanceNamePropertySheet

public static PropertySheet getInstanceNamePropertySheet(SimObject obj)

getPropertySheet

public static PropertySheet getPropertySheet(SimObject obj,
                                             java.awt.Frame frame,
                                             java.lang.String[] fields)
create and return an AWT or Swing based PropertySheet control for simulation component "obj", as a Dialog window of "frame", and with textfields specified by "fields".


buildTitle

public java.lang.String buildTitle(SimObject obj)

pack

public abstract void pack()

setHelpText

public abstract void setHelpText(java.lang.String msg)

enableUpdateButton

public abstract void enableUpdateButton(boolean enable)

dispose

public abstract void dispose()

tearDown

public abstract void tearDown()

msg

public static void msg(java.lang.String s)