|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--EditMaeProjectFiles
GUI for editing data in MAE, Config, Samples and Startup data files for use in MAExplorer. Uses MaeConfigData, MaeStartupData, MaeSampleData, and FileTable data.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file.
| Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
| Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
| Field Summary | |
private java.awt.MenuItem |
aboutMenuItem
misc |
boolean |
addFinishButtonFlag
set only for last panel |
private java.awt.Button |
backButton
PP Q&A move back 1 panel |
boolean |
backButtonFlag
turn off next button if at first Panel |
java.awt.Color |
bkGrdClr
frame background color |
private java.awt.Panel |
buttonPanel
buttons goes here |
private java.awt.Button |
cancelButton
|
private java.awt.MenuItem |
copyItem
edit copy |
private java.awt.MenuItem |
cutItem
edit cut |
Cvt2Mae |
cvt
global link to Cvt2Mae instance |
static int |
DEFAULT_HEIGHT
default frame size width |
static int |
DEFAULT_WIDTH
default frame size width |
private java.awt.Button |
defaultButton
|
private java.lang.String |
defOpenDir
default "Open" directory |
private java.awt.MenuItem |
delMenuItem
edit del |
private java.awt.MenuItem |
displayHelpItem
help menu help page |
EditWizardPanel |
ecp
popup EditWizardPanel configuation Q&A panel |
boolean |
editFilesFlag
editing data from file, else from Cvt2Mae |
private java.awt.Menu |
editMenu
Edit menu |
static boolean |
EMPF_DBUG
for debuging |
boolean |
errConversionFlag
errors in getConfigValuesFromTable() bools |
private java.awt.MenuItem |
exitItem
exit menu item |
private java.awt.CheckboxMenuItem |
expertCheckboxMenuItem
checkbox toggle for expert mode |
private java.awt.Menu |
fileMenu
File menu |
java.lang.String |
fileName
name of file being edited |
private java.awt.Label |
fileNameLabel
|
private java.awt.Button |
finishButton
|
java.awt.Font |
font
font |
java.awt.Dimension |
frameDim
frame size |
boolean |
genericFinishButtonFlag
(!editFilesFlag && !mcd.vendor.equals(" |
CvtGUI |
gui
global link to CvtGUI instance |
private java.awt.Menu |
helpMenu
Help menu |
int |
idxParameter
index for Parameter for getValueByName methods |
int |
idxValue
index for Value for getValueByName methods |
private java.awt.Panel |
labelPanel
also for data entry |
private java.awt.MenuItem |
listMenuItem
list menu item |
private java.awt.Panel |
lowerPanel
mouse over & buttons go here |
private java.awt.Panel |
mainPanel
place data forms here |
static int |
MAX_SAMPLES
maximum # of sample files at one time |
MaeConfigData |
mcd
working MaeConfigData data |
private java.awt.MenuBar |
menuBar
main menubar for standalone if using main in EditMaeProject |
java.awt.TextArea |
mouseoverTA
mouseover TextArea |
MaeSampleData |
msd
global instance of MaeSampleData sample DB state |
MaeStartupData |
msud
global instance of MaeStartupData Startup DB state |
private java.awt.MenuItem |
newItem
new project (future) |
private java.awt.Button |
nextButton
PP Q&A go forward to next panel |
boolean |
nextButtonFlag
turn off next button if at last panel |
FileTable |
nvTbl
current table for getting (name,value) pairs from file |
PopupEditPrjDialog |
okpdq
OK prompt dialog box |
private java.awt.MenuItem |
openItem
open file |
MaeConfigData |
origMcd
copy ofMaeConfigData data for reset |
private java.awt.MenuItem |
pasteItem
edit paste |
PopupEditPrjDialog |
pdq
yes/no dialog box |
java.awt.Frame |
popupDialogFrame
frame for yes/no dialog box |
java.awt.Frame |
popupDialogFrameOK
frame OK prompt dialog box |
int |
preferredHeight
window frame size height |
int |
preferredWidth
window frame size width |
private java.awt.MenuItem |
saveAsItem
save as file |
private java.awt.MenuItem |
saveItem
save file |
private java.awt.Label |
statusLabel
for any error msgs, Panel titles |
private java.awt.Panel |
statusPanel
status data goes here |
SetupLayouts |
sul
global link to SetupLayouts instance |
static int |
TA_COLS
size of mouseover TextArea |
static int |
TA_ROWS
size of mouseover TextArea |
private java.awt.Panel |
taPanel
mouse over goes here |
private java.awt.Panel |
textPanel
data entry |
java.lang.String |
title
title of window |
private java.awt.Menu |
toolsMenu
Tools menu |
UtilCM |
util
global link to UtilCM instance |
| Fields inherited from class java.awt.Frame |
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis |
| Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, showWithParent, warningString, windowListener, windowSerializedDataVersion |
| Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
| Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
EditMaeProjectFiles(java.lang.String defOpenDir,
MaeConfigData mcd,
MaeConfigData origMcd,
boolean editFilesFlag,
java.lang.String title)
EditMaeProjectFiles() - Constructor |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - button listener for menus and panel buttons |
private void |
cancel()
cancel() - cancel the editor window |
private void |
createGUI()
createGUI() - create main GUI, menus, buttons main panel |
private void |
createMenuBarGUI()
createMenuBarGUI() - create separate menu bar GUI used in stand-alone editor. |
static java.lang.String |
dateStr()
dateStr() - return a new Date string of the current day and time |
private void |
exitForm(java.awt.event.WindowEvent evt)
exitForm() - Exit the Application |
boolean |
getBoolValueByName(java.lang.String name)
getBoolValueByName() - get integer value by name from table |
boolean |
getConfigValuesFromTable(FileTable cfgTbl)
getConfigValuesFromTable() - get Config mcd. |
int |
getIntValueByName(java.lang.String name)
getIntValueByName() - get integer value by name |
java.awt.Dimension |
getPreferredSize()
getPreferredSize() - get the preferred size |
java.lang.String |
getValueByName(java.lang.String name)
getValueByName() - get String Value by Name |
(package private) boolean |
handleActions(java.awt.event.ActionEvent e)
handleActions() - Menu item events. |
(package private) java.lang.String |
promptFileName(java.lang.String promptDir,
java.lang.String msg)
promptFileName() - create file dialog to prompt for file name |
FileTable |
readConfigFile(java.lang.String defaultPromptDir)
readConfigFile() - read config file |
boolean |
save(java.lang.String fileName)
save() - check and then save data to file. |
boolean |
saveAs()
saveAs() - check and then save data to new named file popup a filename dialog to get the file name. |
(package private) boolean |
saveData(java.lang.String fileName)
saveData() - save data to file |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
windowClosing() - close down the window. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.awt.Frame |
|
| Methods inherited from class java.awt.Window |
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
public static final int TA_ROWS
public static final int TA_COLS
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public static final int MAX_SAMPLES
public static final boolean EMPF_DBUG
public Cvt2Mae cvt
public CvtGUI gui
public SetupLayouts sul
public UtilCM util
public MaeConfigData origMcd
public MaeConfigData mcd
public MaeSampleData msd
public MaeStartupData msud
public FileTable nvTbl
public boolean backButtonFlag
public boolean nextButtonFlag
public boolean genericFinishButtonFlag
public boolean addFinishButtonFlag
public boolean editFilesFlag
public boolean errConversionFlag
private java.awt.MenuBar menuBar
private java.awt.MenuItem newItem
private java.awt.MenuItem openItem
private java.awt.MenuItem saveItem
private java.awt.MenuItem saveAsItem
private java.awt.MenuItem cutItem
private java.awt.MenuItem copyItem
private java.awt.MenuItem pasteItem
private java.awt.MenuItem displayHelpItem
private java.awt.MenuItem aboutMenuItem
private java.awt.MenuItem delMenuItem
private java.awt.MenuItem exitItem
private java.awt.MenuItem listMenuItem
private java.awt.Menu fileMenu
private java.awt.Menu editMenu
private java.awt.Menu helpMenu
private java.awt.Menu toolsMenu
private java.awt.CheckboxMenuItem expertCheckboxMenuItem
private java.awt.Panel mainPanel
private java.awt.Panel textPanel
private java.awt.Panel labelPanel
private java.awt.Panel statusPanel
private java.awt.Panel lowerPanel
private java.awt.Panel taPanel
private java.awt.Panel buttonPanel
private java.awt.Label statusLabel
private java.awt.Label fileNameLabel
public java.awt.TextArea mouseoverTA
private java.awt.Button backButton
private java.awt.Button nextButton
private java.awt.Button finishButton
private java.awt.Button defaultButton
private java.awt.Button cancelButton
public java.awt.Font font
public java.awt.Color bkGrdClr
public java.awt.Dimension frameDim
public int idxValue
public int idxParameter
public EditWizardPanel ecp
public int preferredWidth
public int preferredHeight
private java.lang.String defOpenDir
public java.awt.Frame popupDialogFrameOK
public java.awt.Frame popupDialogFrame
public PopupEditPrjDialog okpdq
public PopupEditPrjDialog pdq
public java.lang.String title
public java.lang.String fileName
| Constructor Detail |
public EditMaeProjectFiles(java.lang.String defOpenDir,
MaeConfigData mcd,
MaeConfigData origMcd,
boolean editFilesFlag,
java.lang.String title)
defOpenDir - flag to declare saving on diskmcd - instance of MaeConfigData if it existsorigMcd - is instance of MaeConfigData if it existseditFilesFlag - is true for editing disk file, false for Cvt2Mae edittitle - of the windowMaeConfigData,
createGUI()| Method Detail |
private void createGUI()
EditWizardPanel,
EditWizardPanel.doEditPanel(int, boolean, int),
PopupEditPrjDialog,
createMenuBarGUI()private void createMenuBarGUI()
boolean handleActions(java.awt.event.ActionEvent e)
e - ActionEvent
java.lang.String promptFileName(java.lang.String promptDir,
java.lang.String msg)
promptDir - default directorymsg - window messagepublic FileTable readConfigFile(java.lang.String defaultPromptDir)
defaultPromptDir - is the default directory if not nullpublic boolean saveAs()
promptFileName(java.lang.String, java.lang.String),
saveData(java.lang.String)public boolean save(java.lang.String fileName)
fileName - is name of file to saveboolean saveData(java.lang.String fileName)
fileName - to saveMaeConfigData.writeConfigFile(),
PopupEditPrjDialog.updatePopupDialog(java.lang.String)public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - ActionEventCvtGUI.chkReanlyzeButtonState(),
CvtGUI.saveChipValues(),
CvtGUI.setEditLayoutEditing(boolean),
CvtGUI.setMapEditing(boolean),
EditWizardPanel,
EditWizardPanel.back(),
EditWizardPanel.doEditPanel(int, boolean, int),
EditWizardPanel.next(boolean),
EditWizardPanel.reset(),
EditWizardPanel.resetCurrentPanelDefaults(),
MaeConfigData,
PopupEditPrjDialog.alertTimeout(java.lang.String),
PopupEditPrjDialog.updatePopupDialog(java.lang.String),
readConfigFile(java.lang.String),
save(java.lang.String)private void cancel()
public static java.lang.String dateStr()
public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerprivate void exitForm(java.awt.event.WindowEvent evt)
evt - WindowEventpublic java.lang.String getValueByName(java.lang.String name)
public int getIntValueByName(java.lang.String name)
public boolean getBoolValueByName(java.lang.String name)
name - get integer value by namepublic boolean getConfigValuesFromTable(FileTable cfgTbl)
cfgTbl - FileTableUtilCM.cvs2i(java.lang.String, int),
UtilCM.cvs2f(java.lang.String, float),
getBoolValueByName(java.lang.String),
getValueByName(java.lang.String)public void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenere - WindowEventpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||