|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
no.uio.edd.model.geo.GeoModelRunner
public class GeoModelRunner
The main runner for the GeoModelText application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTabbedPane.ModelListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) javax.swing.JFrame |
mainFrame
|
Fields inherited from class javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GeoModelRunner(javax.swing.JFrame inFrame)
Start a runner for the GeoModelText application. |
Method Summary | |
---|---|
void |
cellLeft(int column,
int row)
|
GeoModelLocation |
findGeoModelLocation(java.lang.String id)
Fint the object with a specified ID value. |
(package private) int |
findNodeNumberFromNodeId(java.lang.String nodeId)
Send in the node id, find a number in the node list for the paragraph. |
GeoModelLinkable |
findNodeWithId(java.lang.String id)
Find a node with a specified xml:id value. |
(package private) java.lang.String |
findPageNumForNode(java.lang.String nodeId)
Find the page on which the start tag of an element is located. |
GeoModelElement[] |
getElements()
|
(package private) java.lang.String |
getIdFromThisNode()
Get the xml:id of the active node. |
java.lang.String |
getIdOfSurroundingPara(java.lang.String nodeId)
Search for paragraphs with the given numeric part of the xml:id. |
(package private) AddedNodeSet |
getMyAddedNodeSet()
|
GeoModelCoref |
getMyGeoModelCoref()
|
GeoModelCorefTableView |
getMyGeoModelCorefTableView()
|
GeoModelLinkSet |
getMyGeoModelLinkSet()
|
GeoModelPersonReg |
getMyGeoModelPersonReg()
|
(package private) GeoModelPlaceReg |
getMyGeoModelPlaceReg()
|
(package private) GeoModelProperties |
getMyGeoModelProperties()
|
(package private) java.lang.String |
getNodeIdFromEntTable(int rowNum)
Return the node ID value from a specific line in the entity table. |
(package private) NodeListView |
getNodeListView()
Getter for the NodeListView object. |
org.w3c.dom.Document |
getTeiRootNode()
|
(package private) java.lang.String |
getTextFromNextNode()
Increase the active node number (that is, go to the next paragraph type node) and return a string containing the text of the active node. |
(package private) java.lang.String |
getTextFromNodeNumber(java.lang.String nodeId,
boolean tagged)
Return a string containing the text of the node with this number. |
(package private) java.lang.String |
getTextFromPrevNode()
Decrease the active node number (that is, go to the previous paragraph type node) and return a string containing the text of the active node. |
(package private) java.lang.String |
getTextFromSelectedNode(int nodeNumber)
Set the active node number (that is, go to the selected paragraph type node) and return a string containing the text of the active node. |
(package private) java.lang.String |
getTextFromSurroundingPara(java.lang.String nodeId,
boolean tagged)
Search for paragraphs with the given numeric part of the xml:id. |
(package private) java.lang.String |
getTextFromThisNode()
Return a string containing the text of the active node. |
(package private) void |
leaveNodeTable()
Finish working on entity and attribute tables for one paragraph type element. |
void |
menuChoice(java.lang.String choice)
|
(package private) void |
populateNodeTable()
Insert values from the various objects connected to one paragraph type element into the entity and property tables. |
void |
rowSelected(java.lang.String rowValue,
java.lang.String tableType)
A row is selected. |
void |
tableEscape()
|
Methods inherited from class javax.swing.JTabbedPane |
---|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
javax.swing.JFrame mainFrame
Constructor Detail |
---|
public GeoModelRunner(javax.swing.JFrame inFrame)
inFrame
- The frame we put things into.Method Detail |
---|
java.lang.String getTextFromNextNode()
java.lang.String getTextFromPrevNode()
java.lang.String getTextFromSelectedNode(int nodeNumber)
java.lang.String getTextFromNodeNumber(java.lang.String nodeId, boolean tagged)
nodeNumber
- The xml:id of the node.tagged
- True if tags to be included.
java.lang.String getTextFromThisNode()
java.lang.String getIdFromThisNode()
public GeoModelLinkable findNodeWithId(java.lang.String id)
id
- The xmk:id value
public GeoModelLocation findGeoModelLocation(java.lang.String id) throws GeoModelLocationException
id
- The ID identifying the object.
GeoModelLocationException
int findNodeNumberFromNodeId(java.lang.String nodeId)
nodeId
- A node ID string.
void leaveNodeTable()
void populateNodeTable()
public void menuChoice(java.lang.String choice)
menuChoice
in interface MenuInterface
NodeListView getNodeListView()
java.lang.String getNodeIdFromEntTable(int rowNum)
rowNum
- The row number in the table.
public void rowSelected(java.lang.String rowValue, java.lang.String tableType)
TableCallbackInterface
rowSelected
in interface TableCallbackInterface
rowValue
- identificator for the selected row.tableType
- to see the difference between more than one result table in a single object.public void tableEscape()
tableEscape
in interface TableCallbackInterface
public void cellLeft(int column, int row)
cellLeft
in interface TableCallbackInterface
public GeoModelLinkSet getMyGeoModelLinkSet()
public GeoModelCoref getMyGeoModelCoref()
public org.w3c.dom.Document getTeiRootNode()
public GeoModelCorefTableView getMyGeoModelCorefTableView()
java.lang.String getTextFromSurroundingPara(java.lang.String nodeId, boolean tagged)
nodeId
- The node ID to start with.tagged
- True of XML tags to be included.
public java.lang.String getIdOfSurroundingPara(java.lang.String nodeId)
nodeId
- The node ID to start with.
java.lang.String findPageNumForNode(java.lang.String nodeId)
nodeId
- The element whose page to find.
GeoModelPlaceReg getMyGeoModelPlaceReg()
GeoModelProperties getMyGeoModelProperties()
AddedNodeSet getMyAddedNodeSet()
public GeoModelPersonReg getMyGeoModelPersonReg()
public GeoModelElement[] getElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |