argutia.gui
Class Onglets

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTabbedPane
                  extended by argutia.gui.Onglets
All Implemented Interfaces:
ComputationListener, FileListener, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants
public class Onglets
extends JTabbedPane
implements ActionListener, FileListener, ComputationListener

Crée les différents onglets de l'application.

Author:
Geoffroy AUBRY
See Also:
Serialized Form
Nested Class Summary
private static class Onglets.ComboBoxRenderer
           
private class Onglets.ComboInterrogationsListener
           
static class Onglets.JTextPaneColore
           
 
Nested classes/interfaces inherited from class javax.swing.JTabbedPane
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private JPanel argumentPanel
           
static Border BORDURE_DE_BASE
           
private JButton boutonCalculerArguments
           
private JButton boutonCalculerSituation
           
private int choixAgentValide
           
private int choixInterrogationValide
           
private JComboBox comboAgents
           
private Onglets.ComboBoxRenderer comboBoxRenderer
           
private JComboBox comboFontSize
           
private JComboBox comboInterrogations
           
private JComboBox comboLanguage
           
private Onglets.JTextPaneColore conclusionInterrogations
           
private Onglets.JTextPaneColore[] documentsEnregistrables
           
private Onglets.JTextPaneColore eFInterrogations
           
private JPanel eFPanel
           
private SpellingInputVerifier inputVerifier
           
private Onglets.JTextPaneColore K_A
           
private Onglets.JTextPaneColore K_B
           
private FileEvent.Type lastFileEventType
           
private MainFrame mainFrame
           
private Menu menu
           
private JLabel msgArgumentTab
           
private JPanel ongletAgents
           
private JPanel ongletConfiguration
           
private JPanel ongletReponses
           
private JPanel ongletSituation
           
static String RB_TAB_AGENTS
           
static String RB_TAB_ARGUMENTS
           
static String RB_TAB_CONFIGURATION
           
static String RB_TAB_SITUATION
           
private Onglets.JTextPaneColore REPONSES
           
private static long serialVersionUID
          The serial version of this class.
private Situation situation
           
private Onglets.JTextPaneColore SITUATION
           
private Onglets.JTextPaneColore supportInterrogations
           
private Onglets.JTextPaneColore X_A
           
private Onglets.JTextPaneColore X_B
           
 
Fields inherited from class javax.swing.JTabbedPane
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
 
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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Onglets(MainFrame mainFrame, Argutia.Builder init)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
private void addJPanel(JPanel panel, String clef)
           
 void calculStateChanged(ComputationEvent e)
          Notifie l'écouteur qu'un événement est survenu concernant l'analyse syntaxique, le calcul de la situation ou la génération des arguments.
private JScrollPane createJScrollPane(JTextComponent txt)
           
private void createJTextFieldUnite(JPanel panel, int ligne, Representation r, GridBagConstraints c)
           
private JPanel createOngletAgents()
           
private JPanel createOngletArguments()
           
private JPanel createOngletConfiguration()
           
private JPanel createOngletConfigurationFontSize()
           
private JPanel createOngletConfigurationGestion()
           
private JPanel createOngletConfigurationLangue()
           
private JPanel createOngletConfigurationOther()
           
private JPanel createOngletConfigurationUSC()
           
private JPanel createOngletSituation()
           
private TitledBorder createTitledBorder(String title, MyStyles.StyleNames style)
           
 void fileStateChanged(FileEvent e)
          Notifie l'écouteur qu'un événement est survenu concernant la gestion des fichiers.
private void getAnalyseSyntaxiqueSituation()
           
private String getMsgTempsDeCalcul(String key, double temps)
           
 JPanel getOngletConfiguration()
           
 void remplacerUnitesOldOrthographe(Collection<Representation> modifies)
           
private void showCancelMsgConfigurationGestion(Argutia.Builder.Type type)
           
private void showMsgConfigurationGestion(String msg)
           
private void updateMsgArgumentTab()
           
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, 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, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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
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, 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

BORDURE_DE_BASE

public static final Border BORDURE_DE_BASE

serialVersionUID

private static final long serialVersionUID
The serial version of this class.

See Also:
Serializable, Constant Field Values
Constant Field Value:
-4663220485296569426L

boutonCalculerArguments

private final JButton boutonCalculerArguments

boutonCalculerSituation

private final JButton boutonCalculerSituation

inputVerifier

private SpellingInputVerifier inputVerifier

K_A

private final Onglets.JTextPaneColore K_A

K_B

private final Onglets.JTextPaneColore K_B

ongletConfiguration

private final JPanel ongletConfiguration

ongletAgents

private final JPanel ongletAgents

ongletReponses

private final JPanel ongletReponses

ongletSituation

private final JPanel ongletSituation

REPONSES

private final Onglets.JTextPaneColore REPONSES

SITUATION

private final Onglets.JTextPaneColore SITUATION

X_A

private final Onglets.JTextPaneColore X_A

X_B

private final Onglets.JTextPaneColore X_B

eFInterrogations

private final Onglets.JTextPaneColore eFInterrogations

supportInterrogations

private final Onglets.JTextPaneColore supportInterrogations

conclusionInterrogations

private final Onglets.JTextPaneColore conclusionInterrogations

documentsEnregistrables

private final Onglets.JTextPaneColore[] documentsEnregistrables

mainFrame

private final MainFrame mainFrame

menu

private final Menu menu

situation

private Situation situation

choixAgentValide

private int choixAgentValide

choixInterrogationValide

private int choixInterrogationValide

comboAgents

private JComboBox comboAgents

comboInterrogations

private JComboBox comboInterrogations

comboLanguage

private JComboBox comboLanguage

comboFontSize

private JComboBox comboFontSize

eFPanel

private JPanel eFPanel

argumentPanel

private JPanel argumentPanel

msgArgumentTab

private JLabel msgArgumentTab

comboBoxRenderer

private final Onglets.ComboBoxRenderer comboBoxRenderer

lastFileEventType

private FileEvent.Type lastFileEventType

RB_TAB_CONFIGURATION

@ResourceBundle.Prefix(value="argutia.argutia")
public static final String RB_TAB_CONFIGURATION
Constant Field Value:
"tab.configuration"

RB_TAB_AGENTS

@ResourceBundle.Prefix(value="argutia.argutia")
public static final String RB_TAB_AGENTS
Constant Field Value:
"tab.agents"

RB_TAB_SITUATION

@ResourceBundle.Prefix(value="argutia.argutia")
public static final String RB_TAB_SITUATION
Constant Field Value:
"tab.situation"

RB_TAB_ARGUMENTS

@ResourceBundle.Prefix(value="argutia.argutia")
public static final String RB_TAB_ARGUMENTS
Constant Field Value:
"tab.arguments"
Constructor Detail

Onglets

public Onglets(MainFrame mainFrame,
               Argutia.Builder init)
Method Detail

showMsgConfigurationGestion

private void showMsgConfigurationGestion(String msg)

showCancelMsgConfigurationGestion

private void showCancelMsgConfigurationGestion(Argutia.Builder.Type type)

getAnalyseSyntaxiqueSituation

private void getAnalyseSyntaxiqueSituation()

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getMsgTempsDeCalcul

private String getMsgTempsDeCalcul(String key,
                                   double temps)

calculStateChanged

public void calculStateChanged(ComputationEvent e)
Description copied from interface: ComputationListener
Notifie l'écouteur qu'un événement est survenu concernant l'analyse syntaxique, le calcul de la situation ou la génération des arguments.

Specified by:
calculStateChanged in interface ComputationListener
Parameters:
e - événement survenu.

addJPanel

private void addJPanel(JPanel panel,
                       String clef)

createJScrollPane

private JScrollPane createJScrollPane(JTextComponent txt)

createJTextFieldUnite

private void createJTextFieldUnite(JPanel panel,
                                   int ligne,
                                   Representation r,
                                   GridBagConstraints c)

createTitledBorder

private TitledBorder createTitledBorder(String title,
                                        MyStyles.StyleNames style)

fileStateChanged

public void fileStateChanged(FileEvent e)
Description copied from interface: FileListener
Notifie l'écouteur qu'un événement est survenu concernant la gestion des fichiers.

Specified by:
fileStateChanged in interface FileListener
Parameters:
e - événement concernant la gestion des fichiers.

getOngletConfiguration

public JPanel getOngletConfiguration()

createOngletConfigurationUSC

private JPanel createOngletConfigurationUSC()

createOngletConfigurationLangue

private JPanel createOngletConfigurationLangue()

createOngletConfigurationFontSize

private JPanel createOngletConfigurationFontSize()

createOngletConfigurationGestion

private JPanel createOngletConfigurationGestion()

createOngletConfigurationOther

private JPanel createOngletConfigurationOther()

createOngletConfiguration

private JPanel createOngletConfiguration()

createOngletAgents

private JPanel createOngletAgents()

updateMsgArgumentTab

private void updateMsgArgumentTab()

createOngletArguments

private JPanel createOngletArguments()

createOngletSituation

private JPanel createOngletSituation()

remplacerUnitesOldOrthographe

public void remplacerUnitesOldOrthographe(Collection<Representation> modifies)
Argutia JavaDoc
23 décembre 2007