ui.config
Class ConfMiseEnPage

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.ConfMiseEnPage
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ChangeListener, SavableTabbedConfigurationPane

public class ConfMiseEnPage
extends OngletConf
implements java.awt.event.ItemListener, javax.swing.event.ChangeListener, java.awt.event.ActionListener

Onglet de configuration de la mise en page

Author:
bruno
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.JButton btEditStyle
          Bouton ouvrant le dialogue d'édition des styles
private  javax.swing.JComboBox jcbLV
          JComboBox contenant les styles de gestion des lignes vides possibles
private  javax.swing.JComboBox jcbNumerotation
          JComboBox contenant les styles de numérotations possibles
private  javax.swing.JCheckBox jchbInsertIndex
          JCheckBox insertion d'une table des matières braille en fin de document
private  javax.swing.JCheckBox jchbLineariseTable
          JCheckBox linéariser les structures de type table
private  javax.swing.JCheckBox jchbSautFin
          JCheckBox ajouter un saut de page
private  javax.swing.JCheckBox jchKeepPageBreak
          JCheckBox pour produire un saut de page
private  javax.swing.JCheckBox jchMinPageBreak
          JCheckBox pour produire un saut de page
private  javax.swing.JSpinner jsLongLigne
          JSpinner longueur de la ligne braille
private  javax.swing.JSpinner jsMin1L
          JSpinner minimum pour produire 1 ligne vide
private  javax.swing.JSpinner jsMin2L
          JSpinner minimum pour produire 2 lignes vides
private  javax.swing.JSpinner jsMin3L
          JSpinner minimum pour produire 3 lignes vides
private  javax.swing.JSpinner jsMinCellLin
          JSpinner nombre minimum de cellule pour rendre une table en 2D
private  javax.swing.JSpinner jsMinPageBreak
          JSpinner minimum pour produire un saut de page
private  javax.swing.JSpinner jsNbLigne
          JSpinner nombre de lignes par page
private  javax.swing.JSpinner jspNumberingStartPage
          JSpinner numéroter à partir de...
private  javax.swing.JTextField jtfChimie
          Nom du style pour la chimie
private  javax.swing.JTextField jtfIndexTableName
          Nom de la table des matières
private  javax.swing.JTextField jtfNotesTr
          Nom du style pour les note de transcripteur
private  javax.swing.JTextField jtfPoesie
          Nom du style pour la poésie
private  javax.swing.JLabel ljs1
          Label pour le JSpinner 1 ligne en sortie
private  javax.swing.JLabel ljs2
          Label pour le JSpinner 2 lignes en sortie
private  javax.swing.JLabel ljs3
          Label pour le JSpinner 3 lignes en sortie
private  javax.swing.JLabel ljsMinLin
          JLabel nombre minimum de cellule pour rendre une table en 2D
private  javax.swing.JLabel ljspb
          Label pour le JSpinner saut de page
private  javax.swing.JLabel lJspNumberingStartPage
          JLabel for jspNumberingStartPage
private  javax.swing.JLabel lLongLigne
          JLabel longueur de la ligne braille
private  javax.swing.JLabel lNbLigne
          JLabel Nombre de lignes par page braille
private  int NUM_AUCUN
          Constante d'accès représentant l'indice de "Aucune Numérotation" dans tabNumPossible
private  int NUM_BB
          Constante d'accès représentant l'indice de "en bas sur une ligne partagée" dans tabNumPossible
private  int NUM_BS
          Constante d'accès représentant l'indice de "en bas sur une ligne" dans tabNumPossible
private  int NUM_HB
          Constante d'accès représentant l'indice de "en haut sur une ligne partagée" dans tabNumPossible
private  int NUM_HS
          Constante d'accès représentant l'indice de "en haut seul sur une ligne" dans tabNumPossible
private  javax.swing.JPanel panLVPerso
          Panneau masquable contenant les options personnalisées pour la gestion des lignes vides
private static long serialVersionUID
          pour la sérialisation (non utilisé
private  java.lang.String[] tabLVPossible
          Tableau des gestions des lignes vides possibles
private  java.lang.String[] tabNumPossible
          Tableau des numérotations possibles
private  Language texts
          Textual contents
 
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
ConfMiseEnPage()
          Constructeur de l'onglet Mise en page
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
private  void changeLignes()
          Active ou non les options avancées conernant les lignes vides, suivant que personnalisé est choisi ou non
 boolean enregistrer()
          Enregistre les options de l'onglet
 boolean enregistrer(java.lang.String f)
          Enregistre les options de l'onglet
 void itemStateChanged(java.awt.event.ItemEvent ie)
          Méthode redéfinie de ItemListener Masque les éléments utilisés dans la linéarisation suivant l'état de jchbLineariseTable Appel changeLignes() si la source est le combobox des lignes vides
 void stateChanged(javax.swing.event.ChangeEvent ce)
          Redéfinie de ChangeListener Vérifie la cohérence des valeurs des JSpinner des lignes vides
 
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


serialVersionUID

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

See Also:
Constant Field Values

jchKeepPageBreak

private javax.swing.JCheckBox jchKeepPageBreak
JCheckBox pour produire un saut de page


jchMinPageBreak

private javax.swing.JCheckBox jchMinPageBreak
JCheckBox pour produire un saut de page


jsMinPageBreak

private javax.swing.JSpinner jsMinPageBreak
JSpinner minimum pour produire un saut de page


jsMin3L

private javax.swing.JSpinner jsMin3L
JSpinner minimum pour produire 3 lignes vides


jsMin2L

private javax.swing.JSpinner jsMin2L
JSpinner minimum pour produire 2 lignes vides


jsMin1L

private javax.swing.JSpinner jsMin1L
JSpinner minimum pour produire 1 ligne vide


jsLongLigne

private javax.swing.JSpinner jsLongLigne
JSpinner longueur de la ligne braille


lLongLigne

private javax.swing.JLabel lLongLigne
JLabel longueur de la ligne braille


jsNbLigne

private javax.swing.JSpinner jsNbLigne
JSpinner nombre de lignes par page


lNbLigne

private javax.swing.JLabel lNbLigne
JLabel Nombre de lignes par page braille


jchbSautFin

private javax.swing.JCheckBox jchbSautFin
JCheckBox ajouter un saut de page


jchbLineariseTable

private javax.swing.JCheckBox jchbLineariseTable
JCheckBox linéariser les structures de type table


jsMinCellLin

private javax.swing.JSpinner jsMinCellLin
JSpinner nombre minimum de cellule pour rendre une table en 2D


ljsMinLin

private javax.swing.JLabel ljsMinLin
JLabel nombre minimum de cellule pour rendre une table en 2D


jcbNumerotation

private javax.swing.JComboBox jcbNumerotation
JComboBox contenant les styles de numérotations possibles


tabNumPossible

private final java.lang.String[] tabNumPossible
Tableau des numérotations possibles


NUM_AUCUN

private final int NUM_AUCUN
Constante d'accès représentant l'indice de "Aucune Numérotation" dans tabNumPossible

See Also:
Constant Field Values

NUM_HB

private final int NUM_HB
Constante d'accès représentant l'indice de "en haut sur une ligne partagée" dans tabNumPossible

See Also:
Constant Field Values

NUM_HS

private final int NUM_HS
Constante d'accès représentant l'indice de "en haut seul sur une ligne" dans tabNumPossible

See Also:
Constant Field Values

NUM_BB

private final int NUM_BB
Constante d'accès représentant l'indice de "en bas sur une ligne partagée" dans tabNumPossible

See Also:
Constant Field Values

NUM_BS

private final int NUM_BS
Constante d'accès représentant l'indice de "en bas sur une ligne" dans tabNumPossible

See Also:
Constant Field Values

jspNumberingStartPage

private javax.swing.JSpinner jspNumberingStartPage
JSpinner numéroter à partir de... JSpinner start numbering from...


lJspNumberingStartPage

private javax.swing.JLabel lJspNumberingStartPage
JLabel for jspNumberingStartPage


jcbLV

private javax.swing.JComboBox jcbLV
JComboBox contenant les styles de gestion des lignes vides possibles


tabLVPossible

private final java.lang.String[] tabLVPossible
Tableau des gestions des lignes vides possibles


panLVPerso

private javax.swing.JPanel panLVPerso
Panneau masquable contenant les options personnalisées pour la gestion des lignes vides


ljs1

private javax.swing.JLabel ljs1
Label pour le JSpinner 1 ligne en sortie


ljs2

private javax.swing.JLabel ljs2
Label pour le JSpinner 2 lignes en sortie


ljs3

private javax.swing.JLabel ljs3
Label pour le JSpinner 3 lignes en sortie


ljspb

private javax.swing.JLabel ljspb
Label pour le JSpinner saut de page


jtfChimie

private javax.swing.JTextField jtfChimie
Nom du style pour la chimie


jtfPoesie

private javax.swing.JTextField jtfPoesie
Nom du style pour la poésie


jtfNotesTr

private javax.swing.JTextField jtfNotesTr
Nom du style pour les note de transcripteur


jtfIndexTableName

private javax.swing.JTextField jtfIndexTableName
Nom de la table des matières


jchbInsertIndex

private javax.swing.JCheckBox jchbInsertIndex
JCheckBox insertion d'une table des matières braille en fin de document


btEditStyle

private javax.swing.JButton btEditStyle
Bouton ouvrant le dialogue d'édition des styles

Constructor Detail

ConfMiseEnPage

public ConfMiseEnPage()
Constructeur de l'onglet Mise en page

Method Detail

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ie)
Méthode redéfinie de ItemListener Masque les éléments utilisés dans la linéarisation suivant l'état de jchbLineariseTable Appel changeLignes() si la source est le combobox des lignes vides

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
ie - l'instance d'Itemevent
See Also:
changeLignes()

changeLignes

private void changeLignes()
Active ou non les options avancées conernant les lignes vides, suivant que personnalisé est choisi ou non


stateChanged

public void stateChanged(javax.swing.event.ChangeEvent ce)
Redéfinie de ChangeListener Vérifie la cohérence des valeurs des JSpinner des lignes vides

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
ce - ChangeEvent généré

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)

enregistrer

public boolean enregistrer()
Enregistre les options de l'onglet

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

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)