|
Algernon Software | ||||||||||
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.Frame
javax.swing.JFrame
org.algernon.app.j2p.gui.J2PWindow
J2PWindow is the main window for Java2Protege.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, 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 | |
J2PWindow(Java2Protege app)
Pass in the Java2Protege instance. |
Method Summary | |
void |
createHelpTab()
Creates the Help Tab |
void |
createReviewTab()
Creates the Review Tab |
void |
createSaveTab()
Creates the Save tab |
void |
createSetupTab()
Creates the setup tab |
void |
doAddAdvice(ActionEvent ev)
Adds new advice. |
void |
doConversion(ActionEvent event)
Runs the conversion |
private void |
doCreateAdviceView()
Creates the tabular view of the classes. |
private void |
doCreateClassView()
Creates the tree view of the classes |
private void |
doCreateSlotView()
Creates the tabular view of the classes. |
void |
doDeleteAdvice(ActionEvent ev)
Deletes a line of advice. |
void |
doSaveAdviceFile(ActionEvent ev)
Saves the advice file. |
void |
doSelectAdviceFile(ActionEvent event)
|
void |
doSelectAlgernonFile(ActionEvent ev)
|
void |
doSelectKB(ActionEvent event)
|
void |
doWriteAlgernonFile(ActionEvent ev)
|
Java2Protege |
getApplication()
|
void |
init()
|
void |
mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
void |
run()
|
void |
showPackageError(String packageName)
shows an error when the package can't be found. |
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.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private JLabel STANDARD_HEADER
private JLabel STANDARD_FOOTER
private static final int STANDARD_HORIZONTAL_GAP
private static final int STANDARD_VERTICAL_GAP
private static final int DEFAULT_WIDTH
private static final int DEFAULT_HEIGHT
private static final int DEFAULT_TEXT_FIELD_WIDTH
private Java2Protege f_app
private JTabbedPane f_tabPane
private JButton f_runConversionButton
private Box f_convertPanel
private Box f_helpPanel
private JPanel f_reviewPanel
private Box f_savePanel
private Color LABEL_COLOR
private float STANDARD_FOOTER_FONT_SIZE
private float STANDARD_HEADER_FONT_SIZE
private JTextField f_packageField
private JTextField f_kbField
private JTextField f_AdviceFileField
private JTextField f_saveInAlgernonField
private JButton f_selectKBFileButton
private JButton f_selectAdviceFileButton
private String f_savedAdviceDirectory
private String f_savedKBDirectory
private String f_savedAlgernonDirectory
private JButton f_saveAdviceButton
private JButton f_addAdviceButton
private JButton f_deleteAdviceButton
private JTree f_classTree
private SlotTable f_slotTable
private AdviceTable f_adviceTable
private static final String ROOT_NODE_LABEL
private JPanel f_classPanel
private JPanel f_slotPanel
private JPanel f_advicePanel
private static int CONVERT_TAB_INDEX
private static int REVIEW_TAB_INDEX
private static int SAVE_TAB_INDEX
private static int HELP_TAB_INDEX
private boolean f_adviceHasChanged
private String f_lastPackageName
private JTextField f_rootField
private JTable f_adviceJTable
private TableSorter f_tableSorter
Constructor Detail |
public J2PWindow(Java2Protege app)
Method Detail |
public Java2Protege getApplication()
public void init()
public void run()
run
in interface Runnable
public void createSetupTab()
public void createHelpTab()
public void createReviewTab()
public void createSaveTab()
public void doSelectAdviceFile(ActionEvent event)
public void doSelectKB(ActionEvent event)
public void doConversion(ActionEvent event)
private void doCreateClassView()
private void doCreateAdviceView()
private void doCreateSlotView()
public void showPackageError(String packageName)
public void doSelectAlgernonFile(ActionEvent ev)
public void doWriteAlgernonFile(ActionEvent ev)
public void doSaveAdviceFile(ActionEvent ev)
ev
- public void doAddAdvice(ActionEvent ev)
ev
- public void doDeleteAdvice(ActionEvent ev)
ev
- public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |