|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
fr.lip6.sma.simulacion.app.LocalizedWindow
fr.lip6.sma.simulacion.app.ApplicationChooser
public class ApplicationChooser
Classe générique pour lancer différents programmes Simulación.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CONSOLE_ALWAYS_ENABLED
Console activée de toute façon. |
static int |
CONSOLE_DEFAULT
Pas d'information sur la console. |
static int |
CONSOLE_DISABLED_BY_DEFAULT
Console désactivée par défaut. |
static int |
CONSOLE_ENABLED_BY_DEFAULT
Console activée par défaut. |
static int |
CONSOLE_UNAVAILABLE
Console inaccessible. |
private List |
mAppConsoleSettings
Tableau de la préférence pour la console. |
private JList |
mAppList
Vue sur la liste des applications. |
private List |
mAppNames
Tableau des noms des applications. |
private List |
mAppParams
Tableau des paramètres des applications. |
private JScrollPane |
mAppScrollPane
Scroll pane pour les applications. |
private String[] |
mArgs
Liste des arguments. |
private Configuration |
mConfiguration
Référence sur la configuration. |
private JCheckBox |
mConsoleCheckBox
Checkbox pour ouvrir une console graphique. |
private String[] |
mCurrentAppClass
Classe avec le nom de la classe (et les paramètres pour main) de l'application à lancer. |
private boolean |
mIgnoreChanges
Si on ignore les changements. |
private JComboBox |
mLocaleCombo
Popup pour la langue. |
private List |
mLocales
Tableau des localisations. |
private JToggleButton |
mQuitButton
Bouton pour quitter. |
private JToggleButton |
mStartButton
Bouton pour démarrer. |
private JLabel |
mTopLabel
Message au-dessus. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| 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, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ApplicationChooser(String inConfigPath,
String[] inArgs)
Constructeur à partir du chemin vers le fichier de configuration et des arguments. |
|
| Method Summary | |
|---|---|
protected void |
addEntryPoint(String inName,
int inConsoleSetting,
String inClass)
Ajoute un point d'entrée dans le menu. |
protected void |
addEntryPoint(String inName,
int inConsoleSetting,
String inClass,
String inArg)
Ajoute un point d'entrée dans le menu. |
private void |
appListSelectionChanged()
Méthode invoquée lorsque la sélection dans la liste des tests est changée. |
private JPanel |
createButtons()
Méthode pour créer les boutons au démarrage de l'application. |
private void |
fillLocalesCombo()
Construit le popup avec toutes les localités disponibles. |
protected void |
init()
Méthode pour initialiser la fenêtre. |
protected void |
initComponents()
Méthode pour initialiser les composants au démarrage de l'application. |
protected void |
initComponentsLocalizedContent()
Initialise la partie traduite des composants. |
private void |
localeChanged()
Méthode invoquée lorsque la sélection du menu des localités change. |
private static String[] |
mergeArgs(String inArg1,
String[] inArgs2)
Fusionne un tableau d'arguments avec un argument. |
private static String[] |
mergeArgs(String inArg1,
String inArg2,
String[] inArgs3)
Fusionne un tableau d'arguments avec deux arguments. |
protected void |
resetComponentsLocalizedContent()
Réinitialise la partie traduite des composants. |
void |
startButtonActionPerformed(ActionEvent inEvent)
Méthode invoquée lorsque le bouton démarrer est cliqué. |
| Methods inherited from class fr.lip6.sma.simulacion.app.LocalizedWindow |
|---|
addNotify, centerWindow, doQuit, localizeAbstractButton, localizeComponent, localizeCompoundBorder, localizeContainer, localizeFrame, localizeJComponent, localizeJProgressBar, localizeLabel, localizeMenuElement, localizeString, localizeTextComponent, pack, resetDefaultLocale, thisWindowClosing |
| Methods inherited from class java.awt.Frame |
|---|
finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final int CONSOLE_DEFAULT
public static final int CONSOLE_DISABLED_BY_DEFAULT
public static final int CONSOLE_ENABLED_BY_DEFAULT
public static final int CONSOLE_UNAVAILABLE
public static final int CONSOLE_ALWAYS_ENABLED
private final JScrollPane mAppScrollPane
private final JComboBox mLocaleCombo
private boolean mIgnoreChanges
private final JToggleButton mStartButton
private final JToggleButton mQuitButton
private final JCheckBox mConsoleCheckBox
private final JLabel mTopLabel
private String[] mArgs
private final List mAppNames
private final List mAppParams
private final List mAppConsoleSettings
private final List mLocales
private final Configuration mConfiguration
private String[] mCurrentAppClass
private JList mAppList
| Constructor Detail |
|---|
public ApplicationChooser(String inConfigPath,
String[] inArgs)
inConfigPath - chemin vers le fichier de configuration.inArgs - arguments de la ligne de commande.| Method Detail |
|---|
protected void init()
protected void initComponents()
protected void resetComponentsLocalizedContent()
protected void initComponentsLocalizedContent()
private JPanel createButtons()
private void fillLocalesCombo()
private void appListSelectionChanged()
private void localeChanged()
public void startButtonActionPerformed(ActionEvent inEvent)
inEvent - l'événement du clic (ignoré).
private static String[] mergeArgs(String inArg1,
String[] inArgs2)
inArg1 - premier argument.inArgs2 - tableau d'arguments.
private static String[] mergeArgs(String inArg1,
String inArg2,
String[] inArgs3)
inArg1 - premier argument.inArg2 - deuxième argument.inArgs3 - tableau d'arguments.
protected void addEntryPoint(String inName,
int inConsoleSetting,
String inClass)
inName - nom du point d'entrée.inConsoleSetting - réglage pour la console.inClass - nom de la classe.
protected void addEntryPoint(String inName,
int inConsoleSetting,
String inClass,
String inArg)
inName - nom du point d'entrée.inConsoleSetting - réglage pour la console.inClass - nom de la classe.inArg - argument.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||