gate.gui.teamware
Class InputOutputAnnotationSetsDialog

java.lang.Object
  extended by gate.gui.teamware.InputOutputAnnotationSetsDialog

public class InputOutputAnnotationSetsDialog
extends Object

Dialog box to edit the lists of input and output annotation set names for the "export to teamware" option.


Nested Class Summary
(package private)  class InputOutputAnnotationSetsDialog.AnnotationSetsList
          Panel representing the list of annotation set names for either input or output.
protected static class InputOutputAnnotationSetsDialog.NaturalComparator
          A comparator for strings that uses their natural order, treating null as less than anything non-null.
 
Field Summary
private  Controller controller
          The controller being exported.
private  InputOutputAnnotationSetsDialog.AnnotationSetsList inputList
          Editor component for the input annotation set names.
private  Set<String> inputSetNames
           
private static Comparator<String> NATURAL_COMPARATOR
           
private  InputOutputAnnotationSetsDialog.AnnotationSetsList outputList
          Editor component for the output annotation set names.
private  Set<String> outputSetNames
           
private  JPanel panel
           
 
Constructor Summary
InputOutputAnnotationSetsDialog(Controller controller)
           
 
Method Summary
protected  void initGuiComponents()
          Set up the GUI.
 boolean showDialog(Component parent)
          Show the dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

private Controller controller
The controller being exported.


panel

private JPanel panel

inputList

private InputOutputAnnotationSetsDialog.AnnotationSetsList inputList
Editor component for the input annotation set names.


inputSetNames

private Set<String> inputSetNames

outputList

private InputOutputAnnotationSetsDialog.AnnotationSetsList outputList
Editor component for the output annotation set names.


outputSetNames

private Set<String> outputSetNames

NATURAL_COMPARATOR

private static final Comparator<String> NATURAL_COMPARATOR
Constructor Detail

InputOutputAnnotationSetsDialog

public InputOutputAnnotationSetsDialog(Controller controller)
Method Detail

initGuiComponents

protected void initGuiComponents()
Set up the GUI.


showDialog

public boolean showDialog(Component parent)
Show the dialog. If the dialog is closed with the OK button, the contents of the two lists (input and output annotation set names) are persisted back to the relevant Controller features.

Returns:
true if the dialog was closed with the OK button, false otherwise.