com.ibm.di.admin
Class miadmin

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 com.ibm.di.admin.miadmin
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TreeSelectionListener, RootPaneContainer, WindowConstants

public class miadmin
extends JFrame
implements ActionListener, TreeSelectionListener

Main Class of the Config Editor

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, 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
miadmin()
          Constructor with command line arguments
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 void addConfiguration(MetamergeConfig config)
          Adds a feature to the Configuration attribute of the miadmin object
 void cloneObjects()
          clone the seleted objects
 void deleteConfigItem(BaseConfiguration config)
          Delete a config item and remove any detail panel open for it
 void deleteSelectedItems()
          Deleted currently selected items in the folder tree
 void doActionEvent(ActionEvent event)
          General action event handler
 boolean doClose(MetamergeConfig mc)
          Close configuration.
 void doCloseConfig()
          Close configuration.
 void doFolderEvent(FolderActionEvent event)
          Folder Event handler.
 void doOpen()
          Open configuration
 void doSaveAll()
          Save all configurations
 void enableAction(String name, boolean enable)
           
 FolderTree getConfigEditorTree()
           
 PanelManager getPanelManager()
           
 MetamergeConfig getSelectedMC()
          Gets the selectedMC attribute of the miadmin object
 JComponent getToolBar()
           
static String getVersion()
          Gets the version attribute of the miadmin class
 boolean hasConfiguration(String path)
          This method verifies if specified configuration is already open.
 String hasOpenTabs(MetamergeConfig mc)
           
 void logmsg(String msg)
          Log message.
static void main(String[] args)
          The main program for the miadmin class
 void openExternal()
           
 void openItem(Object obj)
          Open configuration item.
 void resetPanelManager()
          Reset Panel Manager.
 void run(String[] args)
          Main processing method for the miadmin object
 void selectPanel(TitledPanel tp)
          Select panel.
 void setStatusText(String text)
          Sets the statusText attribute of the miadmin object
 void showExecuteTab(BaseConfiguration obj)
          Opens execute tab.
 void showExecuteTab(BaseConfiguration obj, boolean debug)
          Opens execute tab.
 void showExecuteTab(BaseConfiguration obj, boolean debug, int runmode)
          Opens execute tab.
 void updateMenuState()
          Updates menu state.
 void updateToolbarStatusbar()
          Updates status bar.
 void valueChanged(TreeSelectionEvent event)
          Called whenever the value of the selection changes.
 
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, setVisible, 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

miadmin

public miadmin()
Constructor with command line arguments

Method Detail

main

public static void main(String[] args)
The main program for the miadmin class

Parameters:
args - The command line arguments

getVersion

public static String getVersion()
Gets the version attribute of the miadmin class

Returns:
The version value

run

public void run(String[] args)
         throws Exception
Main processing method for the miadmin object

Parameters:
args - command line parameters
Throws:
Exception - if an error occurs while starting Config Editor

logmsg

public void logmsg(String msg)
Log message.

Parameters:
msg - text of the message

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener

doFolderEvent

public void doFolderEvent(FolderActionEvent event)
                   throws Exception
Folder Event handler.

Parameters:
event - specifies the event
Throws:
Exception - if an error occurs while processing the event

doActionEvent

public void doActionEvent(ActionEvent event)
                   throws Exception
General action event handler

Parameters:
event - specifies the event to be processed
Throws:
Exception - if an error occurs while processing the event

deleteSelectedItems

public void deleteSelectedItems()
                         throws Exception
Deleted currently selected items in the folder tree

Throws:
Exception - if an error occurs while deleting items

deleteConfigItem

public void deleteConfigItem(BaseConfiguration config)
                      throws Exception
Delete a config item and remove any detail panel open for it

Parameters:
config - specifies the config item
Throws:
Exception - if an error occurs while deleting item

cloneObjects

public void cloneObjects()
                  throws Exception
clone the seleted objects

Throws:
Exception - if an error occurs while clone selected objects

hasOpenTabs

public String hasOpenTabs(MetamergeConfig mc)

getSelectedMC

public MetamergeConfig getSelectedMC()
Gets the selectedMC attribute of the miadmin object

Returns:
The selectedMC value

doCloseConfig

public void doCloseConfig()
                   throws Exception
Close configuration.

Throws:
Exception - if an error occurs while closing config

doClose

public boolean doClose(MetamergeConfig mc)
Close configuration.

Parameters:
mc - specifies configuration
Returns:
true if config is closed successfully

doSaveAll

public void doSaveAll()
               throws Exception
Save all configurations

Throws:
Exception - if an error occurs while save

doOpen

public void doOpen()
Open configuration


openExternal

public void openExternal()

openItem

public void openItem(Object obj)
              throws Exception
Open configuration item.

Parameters:
obj - specifies configuration item
Throws:
Exception - if an error occurs while opening the item

selectPanel

public void selectPanel(TitledPanel tp)
Select panel.

Parameters:
tp - specifies panel to be selected

hasConfiguration

public boolean hasConfiguration(String path)
This method verifies if specified configuration is already open.

Parameters:
path - specifies configuration path
Returns:
true if configuration is already open

addConfiguration

public void addConfiguration(MetamergeConfig config)
Adds a feature to the Configuration attribute of the miadmin object

Parameters:
config - The feature to be added to the Configuration attribute

showExecuteTab

public void showExecuteTab(BaseConfiguration obj)
                    throws Exception
Opens execute tab.

Parameters:
obj - specifies config object
Throws:
Exception - if an error occurs while showing execute tab

showExecuteTab

public void showExecuteTab(BaseConfiguration obj,
                           boolean debug)
                    throws Exception
Opens execute tab.

Parameters:
obj - specifies config object
debug - specifies if debug mode is used
Throws:
Exception - if an error occurs while showing execute tab

showExecuteTab

public void showExecuteTab(BaseConfiguration obj,
                           boolean debug,
                           int runmode)
                    throws Exception
Opens execute tab.

Parameters:
obj - specifies config object
debug - specifies if debug mode is used
runmode - specifies runmode
Throws:
Exception - if an error occurs while showing execute tab

resetPanelManager

public void resetPanelManager()
Reset Panel Manager.


updateToolbarStatusbar

public void updateToolbarStatusbar()
Updates status bar.


setStatusText

public void setStatusText(String text)
Sets the statusText attribute of the miadmin object

Parameters:
text - The new statusText value

valueChanged

public void valueChanged(TreeSelectionEvent event)
Called whenever the value of the selection changes.

Specified by:
valueChanged in interface TreeSelectionListener

updateMenuState

public void updateMenuState()
Updates menu state.


enableAction

public void enableAction(String name,
                         boolean enable)

getConfigEditorTree

public FolderTree getConfigEditorTree()

getPanelManager

public PanelManager getPanelManager()

getToolBar

public JComponent getToolBar()