|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.developmentontheedge.application.dialog.OkCancelDialog
ru.biosoft.access.support.AbstractImportDialog
Abstract dialog for import
| Nested Class Summary | |
protected class |
AbstractImportDialog.ImportController
|
protected class |
AbstractImportDialog.MPanel
Inner class for dialog panel implementation |
| Nested classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
| Nested classes inherited from class java.awt.Dialog |
java.awt.Dialog.AccessibleAWTDialog |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected TextPaneAppender |
appender
|
static int |
AUTODETECT_FORMAT
Format identifier |
protected BrowseTextField |
browseTextField
Browse text |
protected static org.apache.log4j.Category |
cat
A category |
protected static java.lang.String[] |
CATEGORY_LIST
|
protected java.lang.String[] |
categoryList
|
protected javax.swing.JCheckBox |
checkBoxCopyFile
copy file select box |
protected javax.swing.JComboBox |
comboBoxFormat
Format selection combobox |
protected CreateDataCollectionController |
controller
|
protected JobControlPane |
controlPane
JobControlPane to control import process. |
protected javax.swing.JTextField |
editName
Name editor text field |
protected ApplicationFrame |
frame
A frame for dialog |
protected FunctionJobControl |
jobControl
|
static int |
NONE_FORMAT
Format identifier |
| Fields inherited from class com.developmentontheedge.application.dialog.OkCancelDialog |
buttonPanel, cancelButton, ERROR, okButton, result, SUCCESS |
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| 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, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AbstractImportDialog(ApplicationFrame frame,
java.lang.String dialogName)
A constructor of AbstractImportDialog |
|
AbstractImportDialog(ApplicationFrame frame,
java.lang.String dialogName,
java.lang.String[] formatList,
java.lang.String[] categoryList,
boolean haveCheckBox,
javax.swing.JMenuItem menu)
A constructor of AbstractImportDialog |
|
AbstractImportDialog(ApplicationFrame frame,
java.lang.String dialogName,
java.lang.String[] formatList,
java.lang.String[] categoryList,
javax.swing.JMenuItem menu)
A constructor of AbstractImportDialog |
|
| Method Summary | |
protected void |
cancelPressed()
Invoked when "Cancel" button is pressed. |
protected abstract BrowseTextField |
createBrowseTextField()
|
protected abstract boolean |
doConvert(java.lang.String name,
java.io.File file,
boolean copyFile,
int format,
CreateDataCollectionController controller)
Abstract function, which is called when ok button is pressed. |
protected abstract boolean |
doValidate(java.lang.String name,
int format,
FunctionJobControl jobControl)
Abstract function, which is called when ok button is pressed. |
protected CreateDataCollectionController |
getController()
|
java.lang.String |
getDcName()
Get output data collection name |
java.io.File |
getFile()
Get selected file |
java.lang.String |
getFileName()
Get input file name |
int |
getFormat()
Get format identifier |
JobControl |
getJobControl()
JobControl for Match - allows to control Match |
protected void |
importFinished(java.lang.String message,
int status)
|
protected void |
importThread(java.lang.String dcName,
int format,
java.lang.String filePath,
java.lang.String fileName,
boolean copyFile,
FunctionJobControl jobControl)
Starts #convert(String,String,String,mgl3.jobcontrol.FunctionJobControl) function
in separated thread
Function disables menu, connected with this action. |
void |
init(java.lang.String[] formatList,
java.lang.String[] categoryList,
boolean haveCheckBox,
ApplicationFrame frame,
javax.swing.JMenuItem menu)
Initialization function |
void |
initWindowListeners()
|
boolean |
isCopyFile()
Do user want to copy file? |
protected void |
okPressed()
overrided okPressed function |
void |
setController(CreateDataCollectionController c)
|
void |
setCopyFile(boolean f)
Set copy file checkbox value |
void |
setEnabled(boolean b)
|
void |
setFileName(java.lang.String name)
Set input file name |
void |
setFormat(int idx)
Set format index |
void |
setName(java.lang.String name)
Set output dc name |
static void |
sleep()
|
protected void |
updateOkButton()
|
| Methods inherited from class com.developmentontheedge.application.dialog.OkCancelDialog |
doModal, exited, getCancelButton, getOkButton, setContent |
| Methods inherited from class javax.swing.JDialog |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, 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, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, 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, 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, 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, isOpaque, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected CreateDataCollectionController controller
protected ApplicationFrame frame
protected BrowseTextField browseTextField
protected javax.swing.JComboBox comboBoxFormat
protected javax.swing.JTextField editName
protected javax.swing.JCheckBox checkBoxCopyFile
public static final int NONE_FORMAT
public static final int AUTODETECT_FORMAT
protected JobControlPane controlPane
protected static org.apache.log4j.Category cat
protected TextPaneAppender appender
protected java.lang.String[] categoryList
protected static java.lang.String[] CATEGORY_LIST
protected FunctionJobControl jobControl
| Constructor Detail |
public AbstractImportDialog(ApplicationFrame frame,
java.lang.String dialogName)
frame - a framedialogName - a name of dialog
public AbstractImportDialog(ApplicationFrame frame,
java.lang.String dialogName,
java.lang.String[] formatList,
java.lang.String[] categoryList,
javax.swing.JMenuItem menu)
frame - a framedialogName - a name of dialogformatList - list of stings for format selection comboboxcategoryList - list of category names specifies what messages will be
shown on log window
public AbstractImportDialog(ApplicationFrame frame,
java.lang.String dialogName,
java.lang.String[] formatList,
java.lang.String[] categoryList,
boolean haveCheckBox,
javax.swing.JMenuItem menu)
frame - a framedialogName - a dialog nameformatList - list of stings for format selection comboboxhaveCheckBox - have checkbox....| Method Detail |
protected abstract BrowseTextField createBrowseTextField()
public void setController(CreateDataCollectionController c)
public void init(java.lang.String[] formatList,
java.lang.String[] categoryList,
boolean haveCheckBox,
ApplicationFrame frame,
javax.swing.JMenuItem menu)
formatList - list of stings for format selection comboboxhaveCheckBox - does dialog have checkboxframe - a framepublic void initWindowListeners()
protected void updateOkButton()
public java.io.File getFile()
throws java.lang.Exception
java.lang.Exception
public java.lang.String getDcName()
throws java.lang.Exception
java.lang.Exceptionpublic int getFormat()
public java.lang.String getFileName()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isCopyFile()
protected void importThread(java.lang.String dcName,
int format,
java.lang.String filePath,
java.lang.String fileName,
boolean copyFile,
FunctionJobControl jobControl)
#convert(String,String,String,mgl3.jobcontrol.FunctionJobControl) function
in separated thread
dcName - destination DataCollection nameformat - not usedfilePath - source directory pathfileName - source file namecopyFile - not used
protected abstract boolean doConvert(java.lang.String name,
java.io.File file,
boolean copyFile,
int format,
CreateDataCollectionController controller)
name - a data collection namefile - a source filecopyFile - is file copiedformat - selected formatcontroller - CreateDataCollectionController
protected abstract boolean doValidate(java.lang.String name,
int format,
FunctionJobControl jobControl)
name - a data collection nameformat - selected formatprotected void cancelPressed()
cancelPressed in class OkCancelDialogprotected void okPressed()
okPressed in class OkCancelDialogpublic void setEnabled(boolean b)
protected void importFinished(java.lang.String message,
int status)
public JobControl getJobControl()
public void setFileName(java.lang.String name)
name - a file namepublic void setName(java.lang.String name)
name - a namepublic void setFormat(int idx)
idx - a indexpublic void setCopyFile(boolean f)
f - should file be copied?protected CreateDataCollectionController getController()
public static void sleep()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||