|
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.JTable
gate.swing.XJTable
gate.gui.ResourceParametersEditor
public class ResourceParametersEditor
Allows the editing of a set of parameters for a resource. It needs a pointer to the resource and a list of the parameter names for the parameters that should be displayed. The list of the parameters is actually a list of lists of strings representing parameter disjunctions.
Nested Class Summary | |
---|---|
protected class |
ResourceParametersEditor.ParametersTableModel
|
Nested classes/interfaces inherited from class gate.swing.XJTable |
---|
XJTable.ColumnData, XJTable.HeaderMouseListener, XJTable.SortingModel |
Nested classes/interfaces inherited from class javax.swing.JTable |
---|
JTable.AccessibleJTable, JTable.PrintMode |
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 boolean |
editable
|
protected List |
parameterDisjunctions
A list of ParameterDisjunction |
Fields inherited from class gate.swing.XJTable |
---|
ascending, columnData, defaultComparator, sortable, sortedColumn, sortingModel |
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 | |
---|---|
ResourceParametersEditor()
|
Method Summary | |
---|---|
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 |
FeatureMap |
getParameterValues()
Gets the current values for the parameters. |
Resource |
getResource()
Does this GUI component allow editing? |
void |
init(Resource resource,
List parameters)
Initialises this GUI component. |
protected void |
initGuiComponents()
|
protected void |
initListeners()
|
protected void |
initLocalData()
|
boolean |
isEditable()
|
void |
resourceLoaded(CreoleEvent e)
Called when a new Resource has been loaded into the system |
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 |
void |
setEditable(boolean editable)
|
void |
setParameters()
Sets the parameters for the resource to their new values as resulted from the user's edits. |
Methods inherited from class gate.swing.XJTable |
---|
adjustSizes, getPreferredScrollableViewportSize, getPreferredSize, getSortedColumn, getTableRow, isAscending, isColumnHidden, isSortable, newColumns, rowModelToView, rowViewToModel, setAscending, setComparator, setModel, setSortable, setSortedColumn, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List parameterDisjunctions
ParameterDisjunction
protected boolean editable
Constructor Detail |
---|
public ResourceParametersEditor()
Method Detail |
---|
public void init(Resource resource, List parameters)
resource
- the resource for which the parameters need to be set.parameters
- a list of lists of Parameter
representing
parameter disjunctions.protected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
public void cleanup()
public void setParameters() throws ResourceInstantiationException
ResourceInstantiationException
public Resource getResource()
public FeatureMap getParameterValues()
FeatureMap
conatining the curent values for the curently
selected parameters in each disjunction.public 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 setEditable(boolean editable)
public boolean isEditable()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |