public class CraftWindow
extends JFrame
implements chargerlib.ManagedWindow
Modifier and Type | Field and Description |
---|---|
private JLabel |
banner |
(package private) JTextField |
c1field |
(package private) JTextField |
c2field |
private chargerlib.CGButton |
chooseConcept1 |
private chargerlib.CGButton |
chooseConcept2 |
private chargerlib.CGButton |
clearSelection |
private Concept |
conceptOne |
JTable |
conceptTable |
private Concept |
conceptTwo |
private JMenuBar |
craftMenuBar |
JMenu |
fileMenu |
private static JMenuItem |
fileMenuClose |
private static JMenuItem |
fileMenuNew |
private static JMenuItem |
fileMenuOpen |
private JMenuItem |
fileMenuOpenAll |
static JMenuItem |
fileMenuPreferences |
private JLabel |
instruction |
Action |
OpenAllAction |
JMenuItem |
operationMakeTypeHierarchy |
JMenu |
operationMenu |
static JMenuItem |
operationSummarize |
JPanel |
panel |
Action |
refreshAction |
JMenuItem |
refreshItem |
private GNode |
relation |
(package private) JTextField |
rfield |
private Concept |
selectedConcept |
private int |
selectedRow |
JLabel |
sentenceLabel |
private chargerlib.CGButton |
showSubgraph |
private boolean |
somethingChanged |
JPanel |
southPanel |
private JScrollPane |
sp |
private chargerlib.CGButton |
startGrid |
JMenu |
windowMenu |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
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
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
CraftWindow()
Create the single craft window that controls elicitation.
|
Modifier and Type | Method and Description |
---|---|
void |
fileMenuPreferencesActionPerformed(ActionEvent e)
Manage the preferences for CRAFT.
|
String |
getFilename()
Always returns
null for the CraftWindow class. |
String |
getMenuItemLabel()
Part of the ManagedWindow interface
|
JMenu |
getWindowMenu() |
private String |
makePrefix(String s,
int numchars)
Converts a JTable to an XML version.
|
void |
performChooseConceptForElicitation(Concept c)
Adds given concept to the binary relation being elicited in the
succeeding repertory grid.
|
void |
performClearTupleSelection()
Reset everything in the window that may have been based on a previous
selection.
|
private void |
performOpenAll() |
void |
performShowSubgraph(Concept c1,
GNode rel,
Concept c2)
Locate the conceptual relation represented in the table and "select" it
in its corresponding EditFrame.
|
void |
performStartGrid()
Use the selected concepts/relation to establish an
element-relation-attribute triple from which to form a repertory grid.
|
void |
performTupleSelection(ListSelectionEvent e) |
void |
refresh()
Re-loads the concept table from all open graphs, and put the window
visible and in front.
|
private void |
refreshSouthPanel()
The south panel contains a paraphrase of the relation selected, or blank
if none is selected.
|
private void |
setupMenuBar() |
private void |
setupNorthPanel() |
private void |
setupScrollPane()
The concept-relation-concept tuples are shown in a table in this scroll
pane.
|
private void |
setupSouthPanel() |
private void |
setupWindow() |
void |
thisFocusGained(FocusEvent e) |
void |
thisFocusLost(FocusEvent e) |
void |
thisWindowActivated(WindowEvent e) |
void |
thisWindowClosing() |
void |
thisWindowDeactivated(WindowEvent e) |
void |
thisWindowOpened(WindowEvent e) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private JLabel banner
private JScrollPane sp
public JTable conceptTable
public JPanel panel
public JPanel southPanel
private Concept conceptOne
private Concept conceptTwo
private Concept selectedConcept
private GNode relation
private int selectedRow
JTextField c1field
JTextField c2field
JTextField rfield
public JLabel sentenceLabel
private JMenuBar craftMenuBar
public JMenu fileMenu
public Action OpenAllAction
public Action refreshAction
private static JMenuItem fileMenuNew
private static JMenuItem fileMenuOpen
private JMenuItem fileMenuOpenAll
public static JMenuItem fileMenuPreferences
private static JMenuItem fileMenuClose
public JMenu windowMenu
public JMenu operationMenu
public JMenuItem refreshItem
public JMenuItem operationMakeTypeHierarchy
public static JMenuItem operationSummarize
private chargerlib.CGButton clearSelection
private chargerlib.CGButton showSubgraph
private chargerlib.CGButton startGrid
private chargerlib.CGButton chooseConcept1
private chargerlib.CGButton chooseConcept2
private JLabel instruction
private boolean somethingChanged
public CraftWindow()
public void refresh()
private void setupWindow()
private void setupMenuBar()
private void setupScrollPane()
private void setupNorthPanel()
private void setupSouthPanel()
private void refreshSouthPanel()
public void thisWindowClosing()
public void thisWindowActivated(WindowEvent e)
public void thisWindowOpened(WindowEvent e)
public void thisWindowDeactivated(WindowEvent e)
public void thisFocusGained(FocusEvent e)
public void thisFocusLost(FocusEvent e)
public void fileMenuPreferencesActionPerformed(ActionEvent e)
e
- ignoredpublic void performTupleSelection(ListSelectionEvent e)
public void performClearTupleSelection()
public void performChooseConceptForElicitation(Concept c)
public void performShowSubgraph(Concept c1, GNode rel, Concept c2)
public void performStartGrid()
private String makePrefix(String s, int numchars)
public String getMenuItemLabel()
getMenuItemLabel
in interface chargerlib.ManagedWindow
ManagedWindow
public String getFilename()
null
for the CraftWindow class.getFilename
in interface chargerlib.ManagedWindow
public JMenu getWindowMenu()
getWindowMenu
in interface chargerlib.ManagedWindow
private void performOpenAll()