GrammarScope  4.0.0
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.browser.dialog.ServerSettingsDialog Class Reference
Inheritance diagram for grammarscope.browser.dialog.ServerSettingsDialog:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.browser.dialog.ServerSettingsDialog:
Collaboration graph
[legend]

Classes

enum  TriState
 

Public Member Functions

 ServerSettingsDialog (final Settings settings, final Frame owner)
 
void setVisible (final boolean show)
 

Static Public Member Functions

static void main (final String[] args)
 

Public Attributes

boolean ok
 

Private Member Functions

void initialize ()
 
JPanel makeGeneralPanel ()
 
JPanel makeProviderPanel ()
 
JPanel makePreParsingPanel ()
 
JPanel makeParsingPanel ()
 
JPanel makeMemoryPanel ()
 
JPanel makeCommandPanel ()
 
LanguageButton makeBrowseResourceButton (final JTextComponent buddy, final String exts, final String jarEntryFilter)
 
JButton makeAnnotatorButton (final JTextComponent buddy)
 
JButton makeOkButton ()
 
JButton makeCancelButton ()
 
void settingsToSelector2 (final MultipleChoice radioGroup, @SuppressWarnings("SameParameterValue") final Setting setting, @SuppressWarnings("SameParameterValue") final Enum<?> defaultValue)
 
void checkBoxToSettings (final JCheckBox checkBox, final Setting setting)
 
void settingsToCheckBox (final JCheckBox checkBox, final Setting setting, final boolean defaultNull)
 
void selector2ToSettings (final MultipleChoice radioGroup, @SuppressWarnings("SameParameterValue") final Setting setting)
 
void textComponentToSettings (final JTextComponent textComponent, final Setting setting)
 
void settingsToTextComponent (final JTextComponent textComponent, final Setting setting)
 
void numTextComponentToNumSettings (final JTextComponent textComponent, @SuppressWarnings("SameParameterValue") final Setting setting)
 
void numSettingsToNumTextComponent (final JTextComponent textComponent, @SuppressWarnings("SameParameterValue") final Setting setting)
 
void comboBoxToSettings (final JComboBox< Object > comboBox, final Setting setting)
 
void settingsToComboBox (final JComboBox< Object > comboBox, final Setting setting)
 
void languageComboBoxToSettings (final LanguageComboBox comboBox, @SuppressWarnings("SameParameterValue") final Setting setting)
 
void settingsToLanguageComboBox (final LanguageComboBox comboBox, @SuppressWarnings("SameParameterValue") final Setting setting)
 

Static Private Member Functions

static MultipleChoice makeSelector (final Object[] objects)
 
static JTextField makeTextField ()
 
static JTextArea makeTextArea ()
 
static JComponent scrollWrap (final JComponent component)
 
static JCheckBox makeCheckBox (final String label)
 
static JComboBox< Object > makeComboBox (final Object[] options0)
 
static LanguageButton makeBrowseClassPathButton (final JTextComponent buddy, final String filter)
 

Private Attributes

final Settings settings
 
JComboBox< Object > typedDependenciesModeComboBox
 
JComboBox< Object > providerComboBox
 
JCheckBox loadDependencyParserCheckBox
 
JCheckBox relaunchOnChangeCheckBox
 
JTextComponent annotatorsTextComponent
 
JTextComponent annotatorsOptionsTextComponent
 
JTextComponent constituencyParserComponent
 
JTextComponent parserOptionsComponent
 
JTextComponent dependencyParserComponent
 
MultipleChoice typedDependenciesProviderSelector
 
JTextComponent dependencyParserOptionsComponent
 
LanguageComboBox languageComboBox
 
LanguageButton constituencyParserBrowseClasspathButton
 
LanguageButton dependencyParserBrowseClasspathButton
 
LanguageButton constituencyParserBrowseResourceButton
 
LanguageButton dependencyParserBrowseResourceButton
 
LanguageButton posTaggerModelBrowseClasspathButton
 
LanguageButton posTaggerModelBrowseResourceButton
 
JTextComponent tokenizerLanguageComponent
 
JTextComponent posTaggerModelComponent
 
JTextComponent xMemoryComponent
 
JTabbedPane providerTabbedPane
 

Static Private Attributes

static final long serialVersionUID = 1L
 
static final int TOP0 = 20
 
static final int TOP = 5
 
static final int BOTTOM = 20
 
static final int LEFT = 20
 
static final int RIGHT = 10
 
static final Insets IL_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 
static final Insets IL = new Insets(TOP, LEFT, 0, RIGHT)
 
static final Insets IL_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets IL_1n
 
static final Insets II_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 
static final Insets II = new Insets(TOP, LEFT, 0, RIGHT)
 
static final Insets II_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets II_1n
 
static final Insets IT_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 
static final Insets IT = new Insets(TOP, LEFT, 0, RIGHT)
 
static final Insets IT_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets IT_1n
 
static final Insets IB_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 
static final Insets IB = new Insets(TOP, LEFT, 0, RIGHT)
 
static final Insets IB_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets IB_1n
 
static final int TEXT_WIDTH = 300
 
static final int MIN_PAD_X = 150
 
static final String DEFAULT = "<DEFAULT>"
 

Detailed Description

Settings dialog

Author
Bernard Bou

Constructor & Destructor Documentation

◆ ServerSettingsDialog()

grammarscope.browser.dialog.ServerSettingsDialog.ServerSettingsDialog ( final Settings  settings,
final Frame  owner 
)

Constructor

Parameters
settingssettings
ownerframe owner

Member Function Documentation

◆ checkBoxToSettings()

void grammarscope.browser.dialog.ServerSettingsDialog.checkBoxToSettings ( final JCheckBox  checkBox,
final Setting  setting 
)
private

◆ comboBoxToSettings()

void grammarscope.browser.dialog.ServerSettingsDialog.comboBoxToSettings ( final JComboBox< Object >  comboBox,
final Setting  setting 
)
private

◆ initialize()

void grammarscope.browser.dialog.ServerSettingsDialog.initialize ( )
private

Initialize

◆ languageComboBoxToSettings()

void grammarscope.browser.dialog.ServerSettingsDialog.languageComboBoxToSettings ( final LanguageComboBox  comboBox,
@SuppressWarnings("SameParameterValue") final Setting  setting 
)
private

◆ main()

static void grammarscope.browser.dialog.ServerSettingsDialog.main ( final String[]  args)
static

Main

Parameters
argscommand line arguments

◆ makeAnnotatorButton()

JButton grammarscope.browser.dialog.ServerSettingsDialog.makeAnnotatorButton ( final JTextComponent  buddy)
private

Make browse annotator button

Parameters
buddybuddy component
Returns
button

◆ makeBrowseClassPathButton()

static LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.makeBrowseClassPathButton ( final JTextComponent  buddy,
final String  filter 
)
staticprivate

Make browse button

Parameters
buddybuddy text component to write result to
filterentry filter
Returns
browse button

◆ makeBrowseResourceButton()

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.makeBrowseResourceButton ( final JTextComponent  buddy,
final String  exts,
final String  jarEntryFilter 
)
private

Make browse button

Parameters
buddybuddy text component to write result to
extsfile extensions
jarEntryFilterjar entry filter
Returns
browse button

◆ makeCancelButton()

JButton grammarscope.browser.dialog.ServerSettingsDialog.makeCancelButton ( )
private

Make cancel button

Returns
cancel button

◆ makeCheckBox()

static JCheckBox grammarscope.browser.dialog.ServerSettingsDialog.makeCheckBox ( final String  label)
staticprivate

Make checkbox

Parameters
labellabel
Returns
checkbox

◆ makeComboBox()

static JComboBox<Object> grammarscope.browser.dialog.ServerSettingsDialog.makeComboBox ( final Object[]  options0)
staticprivate

Make combobox

Parameters
options0options
Returns
combobox

◆ makeCommandPanel()

JPanel grammarscope.browser.dialog.ServerSettingsDialog.makeCommandPanel ( )
private

Make command panel

Returns
command panel

◆ makeGeneralPanel()

JPanel grammarscope.browser.dialog.ServerSettingsDialog.makeGeneralPanel ( )
private

Make server url settings panel

Returns
settings panel

◆ makeMemoryPanel()

JPanel grammarscope.browser.dialog.ServerSettingsDialog.makeMemoryPanel ( )
private

Make memory panel

Returns
memory panel

◆ makeOkButton()

JButton grammarscope.browser.dialog.ServerSettingsDialog.makeOkButton ( )
private

Make ok button

Returns
ok button

◆ makeParsingPanel()

JPanel grammarscope.browser.dialog.ServerSettingsDialog.makeParsingPanel ( )
private

Make parsing settings panel

Returns
settings panel

◆ makePreParsingPanel()

JPanel grammarscope.browser.dialog.ServerSettingsDialog.makePreParsingPanel ( )
private

Make parsing settings panel

Returns
settings panel

◆ makeProviderPanel()

JPanel grammarscope.browser.dialog.ServerSettingsDialog.makeProviderPanel ( )
private

Make provider settings panel

Returns
settings panel

◆ makeSelector()

static MultipleChoice grammarscope.browser.dialog.ServerSettingsDialog.makeSelector ( final Object[]  objects)
staticprivate

Make 2-state radio group

Returns
radio group

◆ makeTextArea()

static JTextArea grammarscope.browser.dialog.ServerSettingsDialog.makeTextArea ( )
staticprivate

Make text area

Returns
text area

◆ makeTextField()

static JTextField grammarscope.browser.dialog.ServerSettingsDialog.makeTextField ( )
staticprivate

Make textfield

Returns
text field

◆ numSettingsToNumTextComponent()

void grammarscope.browser.dialog.ServerSettingsDialog.numSettingsToNumTextComponent ( final JTextComponent  textComponent,
@SuppressWarnings("SameParameterValue") final Setting  setting 
)
private

◆ numTextComponentToNumSettings()

void grammarscope.browser.dialog.ServerSettingsDialog.numTextComponentToNumSettings ( final JTextComponent  textComponent,
@SuppressWarnings("SameParameterValue") final Setting  setting 
)
private

◆ scrollWrap()

static JComponent grammarscope.browser.dialog.ServerSettingsDialog.scrollWrap ( final JComponent  component)
staticprivate

Scroll wrap text area

Returns
wrapped component

◆ selector2ToSettings()

void grammarscope.browser.dialog.ServerSettingsDialog.selector2ToSettings ( final MultipleChoice  radioGroup,
@SuppressWarnings("SameParameterValue") final Setting  setting 
)
private

◆ settingsToCheckBox()

void grammarscope.browser.dialog.ServerSettingsDialog.settingsToCheckBox ( final JCheckBox  checkBox,
final Setting  setting,
final boolean  defaultNull 
)
private

◆ settingsToComboBox()

void grammarscope.browser.dialog.ServerSettingsDialog.settingsToComboBox ( final JComboBox< Object >  comboBox,
final Setting  setting 
)
private

◆ settingsToLanguageComboBox()

void grammarscope.browser.dialog.ServerSettingsDialog.settingsToLanguageComboBox ( final LanguageComboBox  comboBox,
@SuppressWarnings("SameParameterValue") final Setting  setting 
)
private

◆ settingsToSelector2()

void grammarscope.browser.dialog.ServerSettingsDialog.settingsToSelector2 ( final MultipleChoice  radioGroup,
@SuppressWarnings("SameParameterValue") final Setting  setting,
@SuppressWarnings("SameParameterValue") final Enum<?>  defaultValue 
)
private

◆ settingsToTextComponent()

void grammarscope.browser.dialog.ServerSettingsDialog.settingsToTextComponent ( final JTextComponent  textComponent,
final Setting  setting 
)
private

◆ setVisible()

void grammarscope.browser.dialog.ServerSettingsDialog.setVisible ( final boolean  show)

◆ textComponentToSettings()

void grammarscope.browser.dialog.ServerSettingsDialog.textComponentToSettings ( final JTextComponent  textComponent,
final Setting  setting 
)
private

Member Data Documentation

◆ annotatorsOptionsTextComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.annotatorsOptionsTextComponent
private

Annotators options

◆ annotatorsTextComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.annotatorsTextComponent
private

Annotators

◆ BOTTOM

final int grammarscope.browser.dialog.ServerSettingsDialog.BOTTOM = 20
staticprivate

◆ constituencyParserBrowseClasspathButton

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.constituencyParserBrowseClasspathButton
private

Language browse for constituency parsing

◆ constituencyParserBrowseResourceButton

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.constituencyParserBrowseResourceButton
private

Language browse for constituency parsing

◆ constituencyParserComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.constituencyParserComponent
private

Path to lex parser data file

◆ DEFAULT

final String grammarscope.browser.dialog.ServerSettingsDialog.DEFAULT = "<DEFAULT>"
staticprivate

◆ dependencyParserBrowseClasspathButton

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.dependencyParserBrowseClasspathButton
private

Language browse for dependency parser

◆ dependencyParserBrowseResourceButton

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.dependencyParserBrowseResourceButton
private

Language browse for dependency parser

◆ dependencyParserComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.dependencyParserComponent
private

Path to dependency parser data file

◆ dependencyParserOptionsComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.dependencyParserOptionsComponent
private

Dependency parser data options

◆ IB

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IB = new Insets(TOP, LEFT, 0, RIGHT)
staticprivate

◆ IB_1

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IB_1 = new Insets(TOP0, LEFT, 0, RIGHT)
staticprivate

◆ IB_1n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IB_1n
staticprivate
Initial value:
= new Insets(TOP0, LEFT, BOTTOM,

◆ IB_n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IB_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
staticprivate

◆ II

final Insets grammarscope.browser.dialog.ServerSettingsDialog.II = new Insets(TOP, LEFT, 0, RIGHT)
staticprivate

◆ II_1

final Insets grammarscope.browser.dialog.ServerSettingsDialog.II_1 = new Insets(TOP0, LEFT, 0, RIGHT)
staticprivate

◆ II_1n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.II_1n
staticprivate
Initial value:
= new Insets(TOP0, LEFT, BOTTOM,

◆ II_n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.II_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
staticprivate

◆ IL

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IL = new Insets(TOP, LEFT, 0, RIGHT)
staticprivate

◆ IL_1

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IL_1 = new Insets(TOP0, LEFT, 0, RIGHT)
staticprivate

◆ IL_1n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IL_1n
staticprivate
Initial value:
= new Insets(TOP0, LEFT, BOTTOM,

◆ IL_n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IL_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
staticprivate

◆ IT

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IT = new Insets(TOP, LEFT, 0, RIGHT)
staticprivate

◆ IT_1

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IT_1 = new Insets(TOP0, LEFT, 0, RIGHT)
staticprivate

◆ IT_1n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IT_1n
staticprivate
Initial value:
= new Insets(TOP0, LEFT, BOTTOM,

◆ IT_n

final Insets grammarscope.browser.dialog.ServerSettingsDialog.IT_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
staticprivate

◆ languageComboBox

LanguageComboBox grammarscope.browser.dialog.ServerSettingsDialog.languageComboBox
private

Language name for general settings

◆ LEFT

final int grammarscope.browser.dialog.ServerSettingsDialog.LEFT = 20
staticprivate

◆ loadDependencyParserCheckBox

JCheckBox grammarscope.browser.dialog.ServerSettingsDialog.loadDependencyParserCheckBox
private

Load dependency parser

◆ MIN_PAD_X

final int grammarscope.browser.dialog.ServerSettingsDialog.MIN_PAD_X = 150
staticprivate

◆ ok

boolean grammarscope.browser.dialog.ServerSettingsDialog.ok

Whether OK button was pressed

◆ parserOptionsComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.parserOptionsComponent
private

Lex parser data options

◆ posTaggerModelBrowseClasspathButton

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.posTaggerModelBrowseClasspathButton
private

Language browse for pos tagger

◆ posTaggerModelBrowseResourceButton

LanguageButton grammarscope.browser.dialog.ServerSettingsDialog.posTaggerModelBrowseResourceButton
private

Language browse for pos tagger

◆ posTaggerModelComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.posTaggerModelComponent
private

Pos-tagger model

◆ providerComboBox

JComboBox<Object> grammarscope.browser.dialog.ServerSettingsDialog.providerComboBox
private

Provider

◆ providerTabbedPane

JTabbedPane grammarscope.browser.dialog.ServerSettingsDialog.providerTabbedPane
private

Provider tabbed pane

◆ relaunchOnChangeCheckBox

JCheckBox grammarscope.browser.dialog.ServerSettingsDialog.relaunchOnChangeCheckBox
private

Relaunch on change

◆ RIGHT

final int grammarscope.browser.dialog.ServerSettingsDialog.RIGHT = 10
staticprivate

◆ serialVersionUID

final long grammarscope.browser.dialog.ServerSettingsDialog.serialVersionUID = 1L
staticprivate

◆ settings

final Settings grammarscope.browser.dialog.ServerSettingsDialog.settings
private

◆ TEXT_WIDTH

final int grammarscope.browser.dialog.ServerSettingsDialog.TEXT_WIDTH = 300
staticprivate

◆ tokenizerLanguageComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.tokenizerLanguageComponent
private

Tokenize language

◆ TOP

final int grammarscope.browser.dialog.ServerSettingsDialog.TOP = 5
staticprivate

◆ TOP0

final int grammarscope.browser.dialog.ServerSettingsDialog.TOP0 = 20
staticprivate

◆ typedDependenciesModeComboBox

JComboBox<Object> grammarscope.browser.dialog.ServerSettingsDialog.typedDependenciesModeComboBox
private

Typed Dependency mode

◆ typedDependenciesProviderSelector

MultipleChoice grammarscope.browser.dialog.ServerSettingsDialog.typedDependenciesProviderSelector
private

Typed Dependency provider selector

◆ xMemoryComponent

JTextComponent grammarscope.browser.dialog.ServerSettingsDialog.xMemoryComponent
private

Extra memory


The documentation for this class was generated from the following file:
grammarscope.browser.dialog.ServerSettingsDialog.TOP0
static final int TOP0
Definition: ServerSettingsDialog.java:35
grammarscope.browser.dialog.ServerSettingsDialog.RIGHT
static final int RIGHT
Definition: ServerSettingsDialog.java:43
grammarscope.browser.dialog.ServerSettingsDialog.LEFT
static final int LEFT
Definition: ServerSettingsDialog.java:41
grammarscope.browser.dialog.ServerSettingsDialog.BOTTOM
static final int BOTTOM
Definition: ServerSettingsDialog.java:39