aminePlatform.guis.util
Class AmineFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
aminePlatform.guis.util.AmineFrame
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants
- Direct Known Subclasses:
- OntologyBasedFrame, OntologyKBGUIFrame
- public abstract class AmineFrame
- extends javax.swing.JFrame
Title: guis.util.AmineFrame class
Description: An abstract class where basic components of an Amine GUI frame
are specified: menu Bar, tool Bar, and status Bar. MenuBar provides menus common
to AmineFrame subclasses: File (New, Open, Save, etc.), Parameters (where some
parameters are specified), Display (which provides the possibility to display
Ontology and/or CG in specific forms), and Help (user manual and about).
To an Amine Frame, we associate (as attribute), an ontology, a CGUIs/CGEditor,
an AmineTextEditorUIs/AmineTextEditor, and a Debug Frame where different messages
(Information, Warning, Error, etc.) are displayed about actions done in the context
of the current Amine Frame.
AmineTextEditor refeers to the current editor (many editors can be active in one
Amine Frame) and the Edit, Font and Search operations are associated to this
AmineTextEditor.
Subclasses : OntologyBasedFrame, lexiconsOntologyGUI.OntologyGUIFrame
Copyright: Copyright (c) Adil KABBAJ, 2004-2009
- See Also:
- Serialized Form
Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
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 |
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.Window |
|
Fields inherited from class java.awt.Container |
|
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 |
AmineFrame(java.lang.String title,
java.lang.String statusLabel)
|
Method Summary |
abstract boolean |
close()
|
boolean |
closeOntology()
|
void |
displayUserManual()
|
void |
displyTxtOnt()
|
void |
displyXMLOnt()
|
void |
frameInit(java.lang.String title,
java.lang.String statusLabel)
|
static javax.swing.ImageIcon |
getImageIcon(java.lang.String imageFileName)
|
void |
helpAbout_actionPerformed(java.awt.event.ActionEvent e)
|
boolean |
loadKB()
|
boolean |
loadOntology()
public boolean loadOntology(String filePath) {
if (filePath == null)
return false;
this.filePath = filePath;
return loadOntologyBis();
} |
void |
menuBtFileNew_actionPerformed(java.awt.event.ActionEvent e)
|
void |
menuBtFileOpen_actionPerformed(java.awt.event.ActionEvent e)
|
boolean |
menuFileClose_actionPerformed(java.awt.event.ActionEvent e)
|
void |
menuFileExit_actionPerformed(java.awt.event.ActionEvent e)
|
abstract void |
menuFileNew_actionPerformed(java.awt.event.ActionEvent e)
|
abstract boolean |
menuFileOpen_actionPerformed(java.awt.event.ActionEvent e)
|
void |
menuFilePrint_actionPerformed(java.awt.event.ActionEvent e)
|
abstract void |
menuFileSave_actionPerformed(java.awt.event.ActionEvent e)
|
abstract void |
menuFileSaveAs_actionPerformed(java.awt.event.ActionEvent e)
|
boolean |
okToAbandon()
|
protected void |
processWindowEvent(java.awt.event.WindowEvent e)
|
boolean |
saveAsOntology()
|
abstract boolean |
saveFile()
|
boolean |
saveOntology()
|
java.io.File |
selectFile(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String[] filters,
java.lang.String directoryPath,
boolean isOpenDlg)
|
java.io.File |
selectFile(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String filterSuffix,
java.lang.String directoryPath,
boolean isOpenDlg)
|
java.io.File[] |
selectFiles(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String[] filters,
java.lang.String directoryPath,
boolean isOpenDlg)
|
java.io.File[] |
selectFiles(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String filterSuffix,
java.lang.String directoryPath,
boolean isOpenDlg)
|
void |
setEnabledUIs(boolean state)
|
void |
showFrame()
|
void |
updateIgnoreCaseParameter()
|
void |
updateLoadSynOnt()
|
void |
updateMixedLanguageParameter()
|
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, 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, setIconImage, 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, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, 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, 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, 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, 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, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, 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 |
FONT_DIALOG_1_12
public static java.awt.Font FONT_DIALOG_1_12
untitled
public static java.lang.String untitled
amineLogo
public static java.lang.String amineLogo
aminePlatformDirPath
public static java.lang.String aminePlatformDirPath
amine2DirPath
public static java.lang.String amine2DirPath
ontologyDirPath
public static java.lang.String ontologyDirPath
kbDirPath
public static java.lang.String kbDirPath
ontology
public Ontology ontology
currentLexicon
public Lexicon currentLexicon
cgGUIs
public CGUIs cgGUIs
amineEditorsUIs
public AmineEditorUIs amineEditorsUIs
dlg
public javax.swing.JDialog dlg
filePath
protected java.lang.String filePath
fileChange
public boolean fileChange
txtDsplyOntFrm
public TextualDisplayOntology txtDsplyOntFrm
xmlDsplyOntFrm
public XMLDisplayOntology xmlDsplyOntFrm
debugFrame
public DebugFrame debugFrame
userManual
public java.lang.String userManual
titleFrame
public java.lang.String titleFrame
contentPane
public javax.swing.JPanel contentPane
menuBar
public javax.swing.JMenuBar menuBar
toolBar
public javax.swing.JToolBar toolBar
menuFile
public javax.swing.JMenu menuFile
menuFileNew
public javax.swing.JMenuItem menuFileNew
menuFileOpen
public javax.swing.JMenuItem menuFileOpen
menuFileSave
public javax.swing.JMenuItem menuFileSave
menuFileSaveAs
public javax.swing.JMenuItem menuFileSaveAs
menuFileClose
public javax.swing.JMenuItem menuFileClose
menuFilePrint
public javax.swing.JMenuItem menuFilePrint
menuFileExit
public javax.swing.JMenuItem menuFileExit
menuParameters
public javax.swing.JMenu menuParameters
menuParamMixedLanguage
public javax.swing.JCheckBoxMenuItem menuParamMixedLanguage
menuParamIgnoreCase
public javax.swing.JCheckBoxMenuItem menuParamIgnoreCase
menuParamLoadSynOnt
public javax.swing.JCheckBoxMenuItem menuParamLoadSynOnt
menuDisplay
public javax.swing.JMenu menuDisplay
menuDisplayOntology_XML
javax.swing.JMenuItem menuDisplayOntology_XML
menuDisplayOntology_Txt
javax.swing.JMenuItem menuDisplayOntology_Txt
menuHelp
public javax.swing.JMenu menuHelp
menuHelpUserManual
javax.swing.JMenuItem menuHelpUserManual
menuHelpAbout
javax.swing.JMenuItem menuHelpAbout
toolBarFile
public javax.swing.JToolBar toolBarFile
btNewFile
public javax.swing.JButton btNewFile
btOpenFile
public javax.swing.JButton btOpenFile
btSaveFile
public javax.swing.JButton btSaveFile
btCloseFile
public javax.swing.JButton btCloseFile
toolBarHelp
javax.swing.JToolBar toolBarHelp
btHelp
public javax.swing.JButton btHelp
statusBar
public javax.swing.JLabel statusBar
borderLayout1
public java.awt.BorderLayout borderLayout1
AmineFrame
public AmineFrame(java.lang.String title,
java.lang.String statusLabel)
getImageIcon
public static javax.swing.ImageIcon getImageIcon(java.lang.String imageFileName)
frameInit
public void frameInit(java.lang.String title,
java.lang.String statusLabel)
showFrame
public void showFrame()
menuFileExit_actionPerformed
public void menuFileExit_actionPerformed(java.awt.event.ActionEvent e)
helpAbout_actionPerformed
public void helpAbout_actionPerformed(java.awt.event.ActionEvent e)
processWindowEvent
protected void processWindowEvent(java.awt.event.WindowEvent e)
close
public abstract boolean close()
okToAbandon
public boolean okToAbandon()
selectFile
public java.io.File selectFile(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String[] filters,
java.lang.String directoryPath,
boolean isOpenDlg)
selectFile
public java.io.File selectFile(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String filterSuffix,
java.lang.String directoryPath,
boolean isOpenDlg)
selectFiles
public java.io.File[] selectFiles(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String[] filters,
java.lang.String directoryPath,
boolean isOpenDlg)
selectFiles
public java.io.File[] selectFiles(java.awt.Window owner,
java.lang.String dialogTitle,
java.lang.String filterDescription,
java.lang.String filterSuffix,
java.lang.String directoryPath,
boolean isOpenDlg)
loadOntology
public boolean loadOntology()
- public boolean loadOntology(String filePath) {
if (filePath == null)
return false;
this.filePath = filePath;
return loadOntologyBis();
}
loadKB
public boolean loadKB()
saveOntology
public boolean saveOntology()
saveAsOntology
public boolean saveAsOntology()
closeOntology
public boolean closeOntology()
updateMixedLanguageParameter
public void updateMixedLanguageParameter()
updateIgnoreCaseParameter
public void updateIgnoreCaseParameter()
updateLoadSynOnt
public void updateLoadSynOnt()
displayUserManual
public void displayUserManual()
displyTxtOnt
public void displyTxtOnt()
displyXMLOnt
public void displyXMLOnt()
saveFile
public abstract boolean saveFile()
menuFileNew_actionPerformed
public abstract void menuFileNew_actionPerformed(java.awt.event.ActionEvent e)
menuFileOpen_actionPerformed
public abstract boolean menuFileOpen_actionPerformed(java.awt.event.ActionEvent e)
menuFileSave_actionPerformed
public abstract void menuFileSave_actionPerformed(java.awt.event.ActionEvent e)
menuFileSaveAs_actionPerformed
public abstract void menuFileSaveAs_actionPerformed(java.awt.event.ActionEvent e)
menuBtFileNew_actionPerformed
public void menuBtFileNew_actionPerformed(java.awt.event.ActionEvent e)
menuBtFileOpen_actionPerformed
public void menuBtFileOpen_actionPerformed(java.awt.event.ActionEvent e)
menuFileClose_actionPerformed
public boolean menuFileClose_actionPerformed(java.awt.event.ActionEvent e)
menuFilePrint_actionPerformed
public void menuFilePrint_actionPerformed(java.awt.event.ActionEvent e)
setEnabledUIs
public void setEnabledUIs(boolean state)