uk.co.mullsoft.jean
Class JEANFramework

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by uk.co.mullsoft.jean.JEANFramework
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, Closable, JEANOptionListener

public class JEANFramework
extends javax.swing.JFrame
implements JEANOptionListener, Closable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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 javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
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, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
protected JEANFramework(java.io.File JEANDirectory, CommandLine cl, Namespace ns, java.lang.String[] newArgs)
           
 
Method Summary
 void close()
           
 boolean closeApplication(java.lang.String name)
           
 java.lang.String[] closeApplications(java.lang.String[] names)
           
protected  void enableBackMenuItems(boolean enabled)
           
protected  JEANAPI getAPI()
           
protected  JEANAPI getAPI(int index)
           
protected  JEANAPI getAPI(java.lang.String name)
           
 java.lang.String getApplicationName()
           
 java.lang.String[] getApplicationNames()
           
 JEANAPI[] getApplications()
           
 JEANCatalog getCatalog(int index)
           
static JEANCatalog getCatalog(JEANAPI api)
           
static java.awt.Color getCatalogPaneForeground(java.lang.String applicationName)
           
 java.awt.Color getCatalogPaneForegroundImplementation(java.lang.String appname)
           
static JEANAPI getCurrentAPI()
           
static Namespace getCurrentNamespace()
           
static JEANState[] getCurrentState()
           
static JEANState getCurrentState(JEANAPI api)
           
protected  JEANState[] getCurrentStateImplementation()
           
protected  JEANState getCurrentStateImplementation(int index)
           
protected static java.lang.Object[] getDateUtilities()
           
static int getIndex(JEANAPI api)
           
 int getIndex(java.lang.String applicationName)
           
static JEANAPI getLoadedAPI(java.lang.String name)
           
static java.lang.String[] getLoadedApplicationNames()
           
static JEANAPI[] getLoadedApplications()
           
static java.awt.Component[] getManagedComponents(JEANAPI api)
           
 Namespace getNamespace()
           
static long getSelectedNode(java.lang.String applicationName)
           
static long[] getSelectedNodes(java.lang.String applicationName)
           
protected  java.lang.String getSelectionPaths(int index)
           
static JEANUser getUser()
           
static java.lang.String getUserName()
           
static void goBack()
           
static void goTo(java.lang.String applicationName, java.lang.String absolutePath)
           
 void initialize(java.io.File JEANDirectory, CommandLine cl, ProgressDialog pd)
           
static boolean isAdmin()
           
static boolean mailIsLoaded()
           
 void optionValueChanged(JEANOption option)
           
static void refillTheMenuBar()
           
static void registerDialog(javax.swing.JDialog dialog)
           
static void registerDialog(JEANAPI api, javax.swing.JDialog dialog)
           
static void registerMonitorUser(MonitorUser monitorUser)
          Applications that use monitors and want to check that monitors exist should implement MonitorUser and the checkMonitors method will be called after all the APIs have been initialized and monitors have been loaded.
protected static void repaintAttributePanel()
           
protected static void revalidateAttributePanel()
           
 JEANAPI runNewApplication(java.lang.String name)
           
 void setCatalogPaneBackground(java.lang.String appname, java.awt.Color color)
           
 void setCatalogPaneFont(java.lang.String appname, java.awt.Font font)
           
static void setCatalogPaneForeground(java.lang.String applicationName, java.awt.Color color)
           
 void setCatalogPaneForegroundImplementation(java.lang.String appname, java.awt.Color color)
           
protected  void setCurrentApplication(java.lang.String applicationName)
           
protected  void setCurrentSelection(int newCurrentSelection)
           
protected  void setInitialSelectionPaths(java.lang.String[] selectionString)
           
 void setSelectedNodes(Node[] nodes)
           
protected  void setSelectionPaths(int index, java.lang.String selectionString)
           
protected  void setSelectionPaths(java.lang.String selectionString)
           
static void setTabIcon(JEANAPI api, javax.swing.Icon icon)
           
static void setTheCurrentApplication(java.lang.String applicationName)
           
 void setVisible(boolean visible)
           
protected static void shutdown()
           
static void unregisterDialog(javax.swing.JDialog dialog)
           
static void unregisterDialog(JEANAPI api, javax.swing.JDialog dialog)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

JEANFramework

protected JEANFramework(java.io.File JEANDirectory,
                        CommandLine cl,
                        Namespace ns,
                        java.lang.String[] newArgs)
Method Detail

shutdown

protected static void shutdown()

getUser

public static JEANUser getUser()

getUserName

public static java.lang.String getUserName()

isAdmin

public static boolean isAdmin()

getLoadedApplicationNames

public static java.lang.String[] getLoadedApplicationNames()

getLoadedApplications

public static JEANAPI[] getLoadedApplications()

mailIsLoaded

public static boolean mailIsLoaded()

getLoadedAPI

public static JEANAPI getLoadedAPI(java.lang.String name)

getCurrentAPI

public static JEANAPI getCurrentAPI()

getCurrentNamespace

public static Namespace getCurrentNamespace()

revalidateAttributePanel

protected static void revalidateAttributePanel()

repaintAttributePanel

protected static void repaintAttributePanel()

goTo

public static void goTo(java.lang.String applicationName,
                        java.lang.String absolutePath)

goBack

public static void goBack()

setTheCurrentApplication

public static void setTheCurrentApplication(java.lang.String applicationName)

refillTheMenuBar

public static void refillTheMenuBar()

getDateUtilities

protected static java.lang.Object[] getDateUtilities()

setCatalogPaneForeground

public static void setCatalogPaneForeground(java.lang.String applicationName,
                                            java.awt.Color color)

getCatalogPaneForeground

public static java.awt.Color getCatalogPaneForeground(java.lang.String applicationName)

registerMonitorUser

public static void registerMonitorUser(MonitorUser monitorUser)
Applications that use monitors and want to check that monitors exist should implement MonitorUser and the checkMonitors method will be called after all the APIs have been initialized and monitors have been loaded. Checks should not be done during initialization as this is before monitors have been loaded.


getSelectedNodes

public static long[] getSelectedNodes(java.lang.String applicationName)

getSelectedNode

public static long getSelectedNode(java.lang.String applicationName)

getManagedComponents

public static java.awt.Component[] getManagedComponents(JEANAPI api)

getIndex

public static int getIndex(JEANAPI api)

setTabIcon

public static void setTabIcon(JEANAPI api,
                              javax.swing.Icon icon)

registerDialog

public static void registerDialog(javax.swing.JDialog dialog)

registerDialog

public static void registerDialog(JEANAPI api,
                                  javax.swing.JDialog dialog)

unregisterDialog

public static void unregisterDialog(javax.swing.JDialog dialog)

unregisterDialog

public static void unregisterDialog(JEANAPI api,
                                    javax.swing.JDialog dialog)

getCatalog

public static JEANCatalog getCatalog(JEANAPI api)

getCurrentState

public static JEANState[] getCurrentState()

getCurrentState

public static JEANState getCurrentState(JEANAPI api)

initialize

public void initialize(java.io.File JEANDirectory,
                       CommandLine cl,
                       ProgressDialog pd)

runNewApplication

public JEANAPI runNewApplication(java.lang.String name)

closeApplication

public boolean closeApplication(java.lang.String name)

closeApplications

public java.lang.String[] closeApplications(java.lang.String[] names)

setSelectedNodes

public void setSelectedNodes(Node[] nodes)

setVisible

public void setVisible(boolean visible)
Overrides:
setVisible in class java.awt.Component

optionValueChanged

public void optionValueChanged(JEANOption option)
Specified by:
optionValueChanged in interface JEANOptionListener

getNamespace

public Namespace getNamespace()
Specified by:
getNamespace in interface JEANOptionListener

getCatalog

public JEANCatalog getCatalog(int index)

setCatalogPaneForegroundImplementation

public void setCatalogPaneForegroundImplementation(java.lang.String appname,
                                                   java.awt.Color color)

getCatalogPaneForegroundImplementation

public java.awt.Color getCatalogPaneForegroundImplementation(java.lang.String appname)

setCatalogPaneBackground

public void setCatalogPaneBackground(java.lang.String appname,
                                     java.awt.Color color)

setCatalogPaneFont

public void setCatalogPaneFont(java.lang.String appname,
                               java.awt.Font font)

getAPI

protected JEANAPI getAPI()

getAPI

protected JEANAPI getAPI(int index)

getApplicationNames

public java.lang.String[] getApplicationNames()

getApplications

public JEANAPI[] getApplications()

getApplicationName

public java.lang.String getApplicationName()
Specified by:
getApplicationName in interface JEANOptionListener

getAPI

protected JEANAPI getAPI(java.lang.String name)

getSelectionPaths

protected java.lang.String getSelectionPaths(int index)

close

public void close()
Specified by:
close in interface Closable

setCurrentApplication

protected void setCurrentApplication(java.lang.String applicationName)

setCurrentSelection

protected void setCurrentSelection(int newCurrentSelection)

setSelectionPaths

protected void setSelectionPaths(java.lang.String selectionString)

setSelectionPaths

protected void setSelectionPaths(int index,
                                 java.lang.String selectionString)

setInitialSelectionPaths

protected void setInitialSelectionPaths(java.lang.String[] selectionString)

getIndex

public int getIndex(java.lang.String applicationName)

enableBackMenuItems

protected void enableBackMenuItems(boolean enabled)

getCurrentStateImplementation

protected JEANState[] getCurrentStateImplementation()

getCurrentStateImplementation

protected JEANState getCurrentStateImplementation(int index)