@CreoleResource(name="Serial Application Editor", guiType=LARGE, resourceDisplayed="gate.creole.SerialController", mainViewer=true) public class SerialControllerEditor extends AbstractVisualResource implements CreoleListener, ControllerListener, ActionsPublisher
| Modifier and Type | Class and Description |
|---|---|
protected class |
SerialControllerEditor.CorporaComboModel
A model for a combobox containing the loaded corpora in the system
|
protected class |
SerialControllerEditor.InternalProgressListener
A simple progress listener used to forward the events upstream.
|
protected class |
SerialControllerEditor.InternalStatusListener
A simple status listener used to forward the events upstream.
|
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected List<Action> |
actionList
The list of actions provided by this editor
|
protected JButton |
addButton
Adds one or more PR(s) to the controller
|
protected boolean |
analyserMode
Is the controller displayed an analyser controller?
|
protected JRadioButton |
conditional_RunRBtn
Button for conditional run.
|
protected boolean |
conditionalMode
Is the controller displayed conditional?
|
protected SerialController |
controller
The controller this editor edits
|
protected JComboBox |
corpusCombo
A combobox that allows selection of a corpus from the list of loaded
corpora.
|
protected SerialControllerEditor.CorporaComboModel |
corpusComboModel |
protected boolean |
corpusControllerMode
Is the controller displayed a CorpusController?
|
protected JTextField |
featureNameTextField
Text field for the feature name for conditional run.
|
protected JTextField |
featureValueTextField
Text field for the feature value for conditional run.
|
protected XJTable |
loadedPRsTable
Contains all the PRs loaded in the sytem that are not already part of the
serial controller
|
protected gate.gui.SerialControllerEditor.LoadedPRsTableModel |
loadedPRsTableModel
model for the
loadedPRsTable JTable. |
protected XJTable |
memberPRsTable
Displays the PRs in the controller
|
protected gate.gui.SerialControllerEditor.MemberPRsTableModel |
memberPRsTableModel
model for
memberPRsTable |
protected JButton |
moveDownButton
Moves the module down in the controller list
|
protected JButton |
moveUpButton
Moves the module up in the controller list
|
protected JRadioButton |
no_RunRBtn
Button for never run.
|
protected TitledBorder |
parametersBorder
A border for the
parametersPanel |
protected ResourceParametersEditor |
parametersEditor
A component for editing the parameters of the currently selected PR
|
protected JPanel |
parametersPanel
A JPanel containing the
parametersEditor |
protected JButton |
removeButton
Removes one or more PR(s) from the controller
|
protected gate.gui.SerialControllerEditor.RunAction |
runAction
Action that runs the application
|
protected ButtonGroup |
runBtnGrp
The group for run strategy buttons;
|
protected ProcessingResource |
selectedPR
The PR currently selected (having its parameters set)
|
protected RunningStrategy |
selectedPRRunStrategy
The running strategy for the selected PR.
|
protected TitledBorder |
strategyBorder
A border for the running strategy options box
|
protected JPanel |
strategyPanel
A JPanel containing the running strategy options
|
protected JRadioButton |
yes_RunRBtn
Button for run always.
|
features, handlelistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
SerialControllerEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProgressListener(ProgressListener l) |
void |
addStatusListener(StatusListener l) |
void |
cleanup()
Cleans the internal data and prepares this object to be collected
|
static void |
clearAllSelections()
Forces all open controller editors to refresh the list of selected PRs.
|
void |
datastoreClosed(CreoleEvent e)
Called when a
DataStore has been closed |
void |
datastoreCreated(CreoleEvent e)
Called when a
DataStore has been created |
void |
datastoreOpened(CreoleEvent e)
Called when a
DataStore has been opened |
protected void |
fireProcessFinished() |
protected void |
fireProgressChanged(int e) |
protected void |
fireStatusChanged(String e) |
List<Action> |
getActions()
Returns a list of Action objects.
|
Resource |
init()
Initialise this resource, and return it.
|
protected void |
initGuiComponents() |
protected void |
initListeners() |
protected void |
initLocalData() |
void |
removeProgressListener(ProgressListener l) |
void |
removeStatusListener(StatusListener l) |
void |
resourceAdded(ControllerEvent evt)
Called by the controller when a new PR has been added.
|
void |
resourceLoaded(CreoleEvent e)
Called when a new
Resource has been loaded into the system |
void |
resourceRemoved(ControllerEvent evt)
Called by the controller when a new PR has been removed.
|
void |
resourceRenamed(Resource resource,
String oldName,
String newName)
Called when the creole register has renamed a resource.1
|
void |
resourceUnloaded(CreoleEvent e)
Called when a
Resource has been removed from the system |
protected void |
selectPR(int index)
Called when a PR has been selected in the member PRs table;
|
void |
setHandle(Handle handle)
Used by the main GUI to tell this VR what handle created it.
|
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a
specific object.
|
getFeatures, getInitParameterValues, getParameterValue, setFeatures, setParameterValue, setParameterValuesgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, updateadd, add, add, add, add, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, 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, 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, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittargetReinitialisedgetName, setNameprotected SerialController controller
protected XJTable loadedPRsTable
protected gate.gui.SerialControllerEditor.LoadedPRsTableModel loadedPRsTableModel
loadedPRsTable JTable.protected XJTable memberPRsTable
protected gate.gui.SerialControllerEditor.MemberPRsTableModel memberPRsTableModel
memberPRsTableprotected JButton addButton
protected JButton removeButton
protected JButton moveUpButton
protected JButton moveDownButton
protected ResourceParametersEditor parametersEditor
protected JPanel parametersPanel
parametersEditorprotected TitledBorder parametersBorder
parametersPanelprotected JPanel strategyPanel
protected TitledBorder strategyBorder
protected JRadioButton yes_RunRBtn
protected JRadioButton no_RunRBtn
protected JRadioButton conditional_RunRBtn
protected ButtonGroup runBtnGrp
protected JTextField featureNameTextField
protected JTextField featureValueTextField
protected JComboBox corpusCombo
protected SerialControllerEditor.CorporaComboModel corpusComboModel
protected gate.gui.SerialControllerEditor.RunAction runAction
protected boolean corpusControllerMode
protected boolean analyserMode
protected boolean conditionalMode
protected ProcessingResource selectedPR
protected RunningStrategy selectedPRRunStrategy
public static void clearAllSelections()
public void setTarget(Object target)
AbstractVisualResourcesetTarget in interface VisualResourcesetTarget in class AbstractVisualResourcetarget - the object (be it a Resource,
DataStore or whatever) this viewer has to displaypublic void setHandle(Handle handle)
AbstractVisualResourcesetHandle in interface VisualResourcesetHandle in class AbstractVisualResourcepublic Resource init() throws ResourceInstantiationException
AbstractVisualResourceinit in interface Resourceinit in class AbstractVisualResourceResourceInstantiationExceptionprotected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
public List<Action> getActions()
ActionsPublishergetActions in interface ActionsPublisherList of Actions.public void cleanup()
cleanup in interface Resourcecleanup in class AbstractVisualResourceprotected void selectPR(int index)
index - row index in memberPRsTable (or -1 if no PR is
currently selected)public void resourceLoaded(CreoleEvent e)
CreoleListenerResource has been loaded into the systemresourceLoaded in interface CreoleListenerpublic void resourceUnloaded(CreoleEvent e)
CreoleListenerResource has been removed from the systemresourceUnloaded in interface CreoleListenerpublic void resourceRenamed(Resource resource, String oldName, String newName)
CreoleListenerresourceRenamed in interface CreoleListenerpublic void datastoreOpened(CreoleEvent e)
CreoleListenerDataStore has been openeddatastoreOpened in interface CreoleListenerpublic void datastoreCreated(CreoleEvent e)
CreoleListenerDataStore has been createddatastoreCreated in interface CreoleListenerpublic void datastoreClosed(CreoleEvent e)
CreoleListenerDataStore has been closeddatastoreClosed in interface CreoleListenerpublic void removeStatusListener(StatusListener l)
public void resourceAdded(ControllerEvent evt)
ControllerListenerresourceAdded in interface ControllerListenerevt - the event.public void resourceRemoved(ControllerEvent evt)
ControllerListenerresourceRemoved in interface ControllerListenerevt - the event.public void addStatusListener(StatusListener l)
protected void fireStatusChanged(String e)
public void removeProgressListener(ProgressListener l)
public void addProgressListener(ProgressListener l)
protected void fireProgressChanged(int e)
protected void fireProcessFinished()
Copyright © 2024 GATE. All rights reserved.