|
GATE Version 3.1-2270 |
|||||||||
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.JPanel
gate.creole.AbstractVisualResource
gate.gui.SerialControllerEditor
public class SerialControllerEditor
Nested Class Summary | |
---|---|
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. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected List |
actionList
The list of actions provided by this editor |
protected JButton |
addButon
Adds one or more PR(s) to the controller |
protected JMenu |
addMenu
The "Add PR" menu; part of the popup menu |
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 JTextField |
featureNameTextField
Text field for the feature name for conditional run. |
protected JTextField |
featureValueTextField
Text field for the feature value for conditional run. |
protected Handle |
handle
The Handle that created this view |
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 JMenu |
removeMenu
The "Remove PR" menu; part of the popup menu |
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. |
Fields inherited from class gate.creole.AbstractVisualResource |
---|
features |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SerialControllerEditor()
|
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener l)
|
void |
addStatusListener(StatusListener l)
|
protected void |
buildInternalMenus()
|
void |
cleanup()
Cleans the internal data and prepares this object to be collected |
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 |
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 memeber 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. |
protected void |
showParamsEditor(ProcessingResource pr)
Stops the current edits for parameters; sets the paarmeters for the resource currently being edited and diplays the editor for the new resource |
Methods inherited from class gate.creole.AbstractVisualResource |
---|
getFeatures, getParameterValue, setFeatures, setParameterValue, setParameterValues |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Field Detail |
---|
protected SerialController controller
protected Handle handle
Handle
that created this view
protected List actionList
protected XJTable loadedPRsTable
protected gate.gui.SerialControllerEditor.LoadedPRsTableModel loadedPRsTableModel
loadedPRsTable
JTable.
protected XJTable memberPRsTable
protected gate.gui.SerialControllerEditor.MemberPRsTableModel memberPRsTableModel
memberPRsTable
protected JButton addButon
protected JButton removeButton
protected JButton moveUpButton
protected JButton moveDownButton
protected ResourceParametersEditor parametersEditor
protected JPanel parametersPanel
parametersEditor
protected TitledBorder parametersBorder
parametersPanel
protected 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 JMenu addMenu
protected JMenu removeMenu
protected gate.gui.SerialControllerEditor.RunAction runAction
protected boolean analyserMode
protected boolean conditionalMode
protected ProcessingResource selectedPR
protected RunningStrategy selectedPRRunStrategy
Constructor Detail |
---|
public SerialControllerEditor()
Method Detail |
---|
public void setTarget(Object target)
AbstractVisualResource
setTarget
in interface VisualResource
setTarget
in class AbstractVisualResource
target
- the object (be it a Resource
,
DataStore
or whatever) this viewer has to displaypublic void setHandle(Handle handle)
AbstractVisualResource
setHandle
in interface VisualResource
setHandle
in class AbstractVisualResource
public Resource init() throws ResourceInstantiationException
AbstractVisualResource
init
in interface Resource
init
in class AbstractVisualResource
ResourceInstantiationException
protected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
public List getActions()
ActionsPublisher
getActions
in interface ActionsPublisher
List
of Action
s.public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractVisualResource
protected void buildInternalMenus()
protected void selectPR(int index)
protected void showParamsEditor(ProcessingResource pr)
pr
- the new resourcepublic void resourceLoaded(CreoleEvent e)
CreoleListener
Resource
has been loaded into the system
resourceLoaded
in interface CreoleListener
public void resourceUnloaded(CreoleEvent e)
CreoleListener
Resource
has been removed from the system
resourceUnloaded
in interface CreoleListener
public void resourceRenamed(Resource resource, String oldName, String newName)
CreoleListener
resourceRenamed
in interface CreoleListener
public void datastoreOpened(CreoleEvent e)
CreoleListener
DataStore
has been opened
datastoreOpened
in interface CreoleListener
public void datastoreCreated(CreoleEvent e)
CreoleListener
DataStore
has been created
datastoreCreated
in interface CreoleListener
public void datastoreClosed(CreoleEvent e)
CreoleListener
DataStore
has been closed
datastoreClosed
in interface CreoleListener
public void removeStatusListener(StatusListener l)
public void resourceAdded(ControllerEvent evt)
ControllerListener
resourceAdded
in interface ControllerListener
evt
- the event.public void resourceRemoved(ControllerEvent evt)
ControllerListener
resourceRemoved
in interface ControllerListener
evt
- 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()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |