GrammarScope  4.0.0
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.editor.dialog.SettingsDialog Class Reference
Inheritance diagram for grammarscope.editor.dialog.SettingsDialog:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.editor.dialog.SettingsDialog:
Collaboration graph
[legend]

Public Member Functions

 SettingsDialog (final Frame owner, final Properties settings)
 
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 makeCommandPanel ()
 
JButton makeBrowseButton (final JTextField field, @SuppressWarnings("SameParameterValue") final boolean directory, @SuppressWarnings("SameParameterValue") final String ext, @SuppressWarnings("SameParameterValue") final String type)
 
JButton makeOkButton ()
 
JButton makeCancelButton ()
 

Static Private Member Functions

static JTextField makeTextField ()
 
static JFileChooser makeFileChooser (final String ext, final String type)
 
static JFileChooser makeFolderChooser ()
 
static void setCurrentDirectory (final JFileChooser chooser, final String currentDirectory)
 

Private Attributes

final Properties settings
 
LanguageComboBox languageComboBox
 
JTextField relationsTextField
 

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_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets II_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 
static final Insets II_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets IT_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 
static final Insets IT_n = new Insets(TOP, LEFT, BOTTOM, RIGHT)
 
static final Insets IB_1 = new Insets(TOP0, LEFT, 0, RIGHT)
 

Detailed Description

Settings dialog

Author
Bernard Bou

Constructor & Destructor Documentation

◆ SettingsDialog()

grammarscope.editor.dialog.SettingsDialog.SettingsDialog ( final Frame  owner,
final Properties  settings 
)

Constructor

Parameters
ownerframe owner
settingssettings

Member Function Documentation

◆ initialize()

void grammarscope.editor.dialog.SettingsDialog.initialize ( )
private

Initialize

◆ main()

static void grammarscope.editor.dialog.SettingsDialog.main ( final String[]  args)
static

◆ makeBrowseButton()

JButton grammarscope.editor.dialog.SettingsDialog.makeBrowseButton ( final JTextField  field,
@SuppressWarnings("SameParameterValue") final boolean  directory,
@SuppressWarnings("SameParameterValue") final String  ext,
@SuppressWarnings("SameParameterValue") final String  type 
)
private

Make browse button

Parameters
fieldbuffy field
directorydirectory
extextension
typetype
Returns
browse button

◆ makeCancelButton()

JButton grammarscope.editor.dialog.SettingsDialog.makeCancelButton ( )
private

Make cancel button

Returns
cancel button

◆ makeCommandPanel()

JPanel grammarscope.editor.dialog.SettingsDialog.makeCommandPanel ( )
private

Make command panel

Returns
command panel

◆ makeFileChooser()

static JFileChooser grammarscope.editor.dialog.SettingsDialog.makeFileChooser ( final String  ext,
final String  type 
)
staticprivate

Make file chooser

Parameters
extextension
typetype
Returns
file chooser

◆ makeFolderChooser()

static JFileChooser grammarscope.editor.dialog.SettingsDialog.makeFolderChooser ( )
staticprivate

Make folder chooser

Returns
folder chooser

◆ makeGeneralPanel()

JPanel grammarscope.editor.dialog.SettingsDialog.makeGeneralPanel ( )
private

Make settings panel

Returns
settings panel

◆ makeOkButton()

JButton grammarscope.editor.dialog.SettingsDialog.makeOkButton ( )
private

Make ok button

Returns
ok button

◆ makeTextField()

static JTextField grammarscope.editor.dialog.SettingsDialog.makeTextField ( )
staticprivate

Make textfield

Returns
text field

◆ setCurrentDirectory()

static void grammarscope.editor.dialog.SettingsDialog.setCurrentDirectory ( final JFileChooser  chooser,
final String  currentDirectory 
)
staticprivate

Set current directory for file chooser

Parameters
chooserfile chooser
currentDirectorydirectory to set as current

◆ setVisible()

void grammarscope.editor.dialog.SettingsDialog.setVisible ( final boolean  show)

Member Data Documentation

◆ BOTTOM

final int grammarscope.editor.dialog.SettingsDialog.BOTTOM = 20
staticprivate

◆ IB_1

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

◆ II_1

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

◆ II_n

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

◆ IL_1

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

◆ IL_n

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

◆ IT_1

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

◆ IT_n

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

◆ languageComboBox

LanguageComboBox grammarscope.editor.dialog.SettingsDialog.languageComboBox
private

Language name for grammatical structure parsing

◆ LEFT

final int grammarscope.editor.dialog.SettingsDialog.LEFT = 20
staticprivate

◆ ok

boolean grammarscope.editor.dialog.SettingsDialog.ok

Whether OK button was pressed

◆ relationsTextField

JTextField grammarscope.editor.dialog.SettingsDialog.relationsTextField
private

Path to relations file

◆ RIGHT

final int grammarscope.editor.dialog.SettingsDialog.RIGHT = 10
staticprivate

◆ serialVersionUID

final long grammarscope.editor.dialog.SettingsDialog.serialVersionUID = 1L
staticprivate

◆ settings

final Properties grammarscope.editor.dialog.SettingsDialog.settings
private

Settings

◆ TOP

final int grammarscope.editor.dialog.SettingsDialog.TOP = 5
staticprivate

◆ TOP0

final int grammarscope.editor.dialog.SettingsDialog.TOP0 = 20
staticprivate

The documentation for this class was generated from the following file: