ui.config
Class ConfAccessibilite

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by ui.config.OngletConf
                      extended by ui.config.ConfAccessibilite
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, SavableTabbedConfigurationPane

public class ConfAccessibilite
extends OngletConf
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.KeyListener

Onglet d'accessibilité de l'interface

Author:
gregoire
See Also:
OngletConf, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JComboBox cbLog
          liste des niveaux de verbosité possibles
private  int helpModifiers
          help key modifiers
private  java.lang.Boolean isNewHelpKeyPossible
          boolean to allow user to change the help key
private  java.lang.Boolean isNewTradKeyPossible
          boolean to allow user to change the traduction key
private  javax.swing.JButton jbtChangeHelpKey
          button to change the help key
private  javax.swing.JButton jbtChangeTradKey
          button to change the traduction key
private  javax.swing.JCheckBox jcbCentrerFenetre
          case à cocher pour le centrage des fenêtres à l'écran
private  javax.swing.JComboBox jcbLanguage
          Available languages
private  javax.swing.JCheckBox jcbNeverReadDescr
          checkbox to never read the description
private  javax.swing.JCheckBox jcbReadDescr
          check box to always read the description
private  javax.swing.JCheckBox jcbReadTTT
          checkbox to remove every context and replace it with the tool tip text, when possible
private  javax.swing.JComboBox jcbScrReader
          Available screen readers
private  javax.swing.JCheckBox jcbSonFin
          case à cocher pour jouer un son à la fin de la transcription
private  javax.swing.JCheckBox jcbSonPendantTrans
          case à cocher pour jouer un son périodiquement pendant la transcription
private  javax.swing.JCheckBox jcbSortieAuto
          case à cocher pour nommer automatiquement le fichier de sortie
private  javax.swing.JCheckBox jcbTailleFenetre
          case à cocher pour la mémorisation des dimensions des fenêtres
private  javax.swing.JCheckBox jcbUseBrowser
          checkbox to launch help with the default browser
private  javax.swing.JCheckBox jcbUseInternet
          checkbox to launch help with the default browser
private  javax.swing.JCheckBox jcbUseTTT
          checkbox to use the tool tip text as a description
(package private)  Language langNames
          Languages' names
private  java.lang.String[] langNamesList
          langs list
private  javax.swing.JLabel ljcbLanguage
          Label for the languages list
private  javax.swing.JLabel ljcbScrReader
          Label for the screen readers list
private  javax.swing.JLabel lLog
          label pour la liste des niveaux de verbosité possibles
private  java.awt.AWTKeyStroke newHelpKey
          new help key
private  java.awt.AWTKeyStroke newTradKey
          new traduction key
private static long serialVersionUID
          Pour la sérialisation (non utilisé)
private  Language texts
          Textual contents
private  int tradModifiers
          help key modifiers
 
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
ConfAccessibilite()
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 boolean enregistrer()
          Saves the accessibility tab settings
 boolean enregistrer(java.lang.String f)
          Enregistre les options de l'onglet
private  boolean hasModifier(int key, java.lang.Boolean b)
          checks if the modifier belongs to modifiers' list
private  boolean isValid(int key, java.lang.Boolean b)
          checks is the new key is valid
 void itemStateChanged(java.awt.event.ItemEvent ie)
          ItemListener implementation
 void keyPressed(java.awt.event.KeyEvent ke)
           
 void keyReleased(java.awt.event.KeyEvent arg0)
           
 void keyTyped(java.awt.event.KeyEvent arg0)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

texts

private Language texts
Textual contents


langNames

Language langNames
Languages' names


serialVersionUID

private static final long serialVersionUID
Pour la sérialisation (non utilisé)

See Also:
Constant Field Values

jcbTailleFenetre

private javax.swing.JCheckBox jcbTailleFenetre
case à cocher pour la mémorisation des dimensions des fenêtres


jcbCentrerFenetre

private javax.swing.JCheckBox jcbCentrerFenetre
case à cocher pour le centrage des fenêtres à l'écran


jcbSonPendantTrans

private javax.swing.JCheckBox jcbSonPendantTrans
case à cocher pour jouer un son périodiquement pendant la transcription


jcbSonFin

private javax.swing.JCheckBox jcbSonFin
case à cocher pour jouer un son à la fin de la transcription


jcbSortieAuto

private javax.swing.JCheckBox jcbSortieAuto
case à cocher pour nommer automatiquement le fichier de sortie


jcbScrReader

private javax.swing.JComboBox jcbScrReader
Available screen readers


ljcbScrReader

private javax.swing.JLabel ljcbScrReader
Label for the screen readers list


cbLog

private javax.swing.JComboBox cbLog
liste des niveaux de verbosité possibles


lLog

private javax.swing.JLabel lLog
label pour la liste des niveaux de verbosité possibles


jcbLanguage

private javax.swing.JComboBox jcbLanguage
Available languages


ljcbLanguage

private javax.swing.JLabel ljcbLanguage
Label for the languages list


langNamesList

private java.lang.String[] langNamesList
langs list


jcbReadDescr

private javax.swing.JCheckBox jcbReadDescr
check box to always read the description


jcbUseTTT

private javax.swing.JCheckBox jcbUseTTT
checkbox to use the tool tip text as a description


jcbReadTTT

private javax.swing.JCheckBox jcbReadTTT
checkbox to remove every context and replace it with the tool tip text, when possible


jcbNeverReadDescr

private javax.swing.JCheckBox jcbNeverReadDescr
checkbox to never read the description


jcbUseBrowser

private javax.swing.JCheckBox jcbUseBrowser
checkbox to launch help with the default browser


jcbUseInternet

private javax.swing.JCheckBox jcbUseInternet
checkbox to launch help with the default browser


jbtChangeHelpKey

private javax.swing.JButton jbtChangeHelpKey
button to change the help key


isNewHelpKeyPossible

private java.lang.Boolean isNewHelpKeyPossible
boolean to allow user to change the help key


newHelpKey

private java.awt.AWTKeyStroke newHelpKey
new help key


helpModifiers

private int helpModifiers
help key modifiers


jbtChangeTradKey

private javax.swing.JButton jbtChangeTradKey
button to change the traduction key


isNewTradKeyPossible

private java.lang.Boolean isNewTradKeyPossible
boolean to allow user to change the traduction key


newTradKey

private java.awt.AWTKeyStroke newTradKey
new traduction key


tradModifiers

private int tradModifiers
help key modifiers

Constructor Detail

ConfAccessibilite

public ConfAccessibilite()
Constructor

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ie)
ItemListener implementation

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
ie - generated ItemEvent
See Also:
jcbUseTTT, jcbReadDescr

enregistrer

public boolean enregistrer()
Saves the accessibility tab settings

Specified by:
enregistrer in interface SavableTabbedConfigurationPane
Returns:
true si l'enregistrement s'est bien passé, false sinon
See Also:
SavableTabbedConfigurationPane.enregistrer()

enregistrer

public boolean enregistrer(java.lang.String f)
Enregistre les options de l'onglet

Specified by:
enregistrer in interface SavableTabbedConfigurationPane
Parameters:
f - adresse du fichier
Returns:
true si l'enregistrement s'est bien passé, false sinon
See Also:
SavableTabbedConfigurationPane.enregistrer(java.lang.String)

keyPressed

public void keyPressed(java.awt.event.KeyEvent ke)
Specified by:
keyPressed in interface java.awt.event.KeyListener
See Also:
KeyListener.keyPressed(java.awt.event.KeyEvent)

keyReleased

public void keyReleased(java.awt.event.KeyEvent arg0)
Specified by:
keyReleased in interface java.awt.event.KeyListener
See Also:
KeyListener.keyReleased(java.awt.event.KeyEvent)

keyTyped

public void keyTyped(java.awt.event.KeyEvent arg0)
Specified by:
keyTyped in interface java.awt.event.KeyListener
See Also:
KeyListener.keyTyped(java.awt.event.KeyEvent)

hasModifier

private boolean hasModifier(int key,
                            java.lang.Boolean b)
checks if the modifier belongs to modifiers' list

Parameters:
key - : key of the modifier
b - : true : help / false : translation
Returns:
TODO

isValid

private boolean isValid(int key,
                        java.lang.Boolean b)
checks is the new key is valid

Parameters:
key - : key to check
b - : true : help / false : translation
Returns:
TODO