|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Dialog javax.swing.JDialog gate.gui.OptionsDialog
public class OptionsDialog
The options dialog for Gate.
Nested Class Summary | |
---|---|
protected class |
OptionsDialog.CancelAction
|
protected static class |
OptionsDialog.LNFData
|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JCheckBox |
addSpaceOnMarkupUnpackChk
The "Add extra space markup unpack if needed" checkbox |
protected JComboBox |
browserComboBox
List of browsers. |
protected JTextField |
browserCommandLineTextField
Browser command line. |
protected JButton |
cancelButton
The Cancel button for the dialog. |
protected Font |
componentsFont
The font to be used for GUI components; cached value for the one in the user config map. |
static String[] |
componentsKeys
|
protected boolean |
dirtyGUI
This flag becomes true when an GUI related option has been changed |
protected ButtonGroup |
fontBG
Button group for the font setting radio buttons |
protected JFontChooser |
fontChooser
The font chooser used for selecting fonts |
protected JCheckBox |
includeFeaturesOnPreserveFormatChk
The "Include Annotation Features in Save Preserving Format" checkbox |
protected JComboBox |
lnfCombo
The combobox for the look and feel selection |
protected String |
lookAndFeelClassName
The name of the look and feel class |
protected JTabbedPane |
mainTabbedPane
The main tabbed pane |
protected JRadioButton |
menuBtn
Radio button used to set the font for menu components |
static String[] |
menuKeys
|
protected Font |
menusFont
The font to be used for the menus; cached value for the one in the user config map. |
protected JButton |
okButton
The OK button for the dialog. |
protected JRadioButton |
otherCompsBtn
Radio button used to set the font for other components |
protected JCheckBox |
saveOptionsChk
The "Save Options on close" checkbox |
protected JCheckBox |
saveSessionChk
The "Save Session on close" checkbox |
protected String |
selectedFontBtn
which text is currently being edited; values are: "text", "menu", "other" |
protected JRadioButton |
textBtn
Radio button used to set the font for text components |
protected Font |
textComponentsFont
The font to be used for text components; cached value for the one in the user config map. |
static String[] |
textComponentsKeys
|
protected JCheckBox |
treeSelectViewChk
|
protected JCheckBox |
viewSelectTreeChk
|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
OptionsDialog(Frame owner)
|
Method Summary | |
---|---|
protected void |
initGuiComponents()
|
protected void |
initListeners()
|
protected void |
initLocalData()
|
static void |
main(String[] args)
|
protected void |
selectedFontChanged()
|
static void |
setComponentsFont(Font font)
Updates the Swing defaults table with the provided font to be used for various compoents that neither text or menu components |
static void |
setMenuComponentsFont(Font font)
Updates the Swing defaults table with the provided font to be used for the menu components |
static void |
setTextComponentsFont(Font font)
Updates the Swing defaults table with the provided font to be used for the text components |
protected static void |
setUIDefaults(Object[] keys,
Object value)
|
void |
showDialog()
|
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String[] menuKeys
public static String[] componentsKeys
public static String[] textComponentsKeys
protected JTabbedPane mainTabbedPane
protected JRadioButton textBtn
protected JButton okButton
protected JButton cancelButton
protected String selectedFontBtn
protected JRadioButton menuBtn
protected JRadioButton otherCompsBtn
protected ButtonGroup fontBG
protected JFontChooser fontChooser
protected JCheckBox saveOptionsChk
protected JCheckBox saveSessionChk
protected JCheckBox includeFeaturesOnPreserveFormatChk
protected JCheckBox addSpaceOnMarkupUnpackChk
protected String lookAndFeelClassName
protected Font menusFont
protected Font textComponentsFont
protected Font componentsFont
protected boolean dirtyGUI
protected JComboBox lnfCombo
protected JComboBox browserComboBox
protected JTextField browserCommandLineTextField
protected JCheckBox treeSelectViewChk
protected JCheckBox viewSelectTreeChk
Constructor Detail |
---|
public OptionsDialog(Frame owner)
Method Detail |
---|
protected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
protected void selectedFontChanged()
public void showDialog()
public static void main(String[] args)
protected static void setUIDefaults(Object[] keys, Object value)
public static void setTextComponentsFont(Font font)
public static void setMenuComponentsFont(Font font)
public static void setComponentsFont(Font font)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |