|
||||||||||
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
public class LocalizedWindow
Classe pour une fenêtre dans la langue de l'utilisateur. C'est la classe de base pour presque toutes les fenêtres des applications 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 | |
---|---|
private LocalizationEngine |
mLocalizationEngine
Engine to localize strings. |
private boolean |
mShown
Si on est visible. |
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 | |
---|---|
LocalizedWindow()
Constructeur par défaut. |
|
LocalizedWindow(String inConfigPath)
Constructeur à partir du chemin vers le fichier de configuration. |
Method Summary | |
---|---|
void |
addNotify()
Méthode appelée lorsque la fenêtre est rendue visible. |
protected void |
centerWindow()
Méthode pour centrer la fenêtre. |
void |
doQuit()
Méthode appelée pour quitter. |
private void |
init()
Initialise la fenêtre. |
protected void |
localizeAbstractButton(AbstractButton inButton)
Traduit le texte d'un AbstractButton fraîchement initialisé. |
protected void |
localizeComponent(Component inComponent)
Traduit un composant fraîchement initialisé. |
protected void |
localizeCompoundBorder(CompoundBorder inBorder)
Translate the title of titled borders when they are embedded in border compounds. |
void |
localizeContainer(Container inContainer)
Traduit un conteneur fraîchement initialisé. |
protected void |
localizeFrame(Frame inFrame)
Traduit le texte d'une Frame fraîchement initialisée. |
protected void |
localizeJComponent(JComponent inJComponent)
Traduit le texte de la bulle d'aide d'un composant swing. |
protected void |
localizeJProgressBar(JProgressBar inPBar)
Traduit le texte d'une JProgressBar fraîchement initialisé. |
protected void |
localizeLabel(JLabel inLabel)
Traduit le texte d'une étiquette JLabel fraîchement initialisée. |
protected void |
localizeMenuElement(MenuElement inMenuElement)
Traduit un élément de menu fraîchement initialisé. |
String |
localizeString(String inKeyString)
Translate a string. |
protected void |
localizeTextComponent(JTextComponent inTextComponent)
Traduit le texte d'un objet inTextComponent fraîchement initialisé. |
void |
pack()
Méthode pour redimensionner la fenêtre avec tous les éléments dedans. |
protected void |
resetDefaultLocale()
Réinitialise la traduction. |
protected void |
thisWindowClosing()
Méthode appelée lorsque la case de fermeture est cliquée. |
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 |
---|
private final LocalizationEngine mLocalizationEngine
private boolean mShown
Constructor Detail |
---|
public LocalizedWindow()
public LocalizedWindow(String inConfigPath)
inConfigPath
- chemin vers le fichier de configuration.Method Detail |
---|
protected void resetDefaultLocale()
private void init()
public final String localizeString(String inKeyString)
inKeyString
- string to translate.
protected final void localizeJComponent(JComponent inJComponent)
inJComponent
- composant à traduireprotected final void localizeAbstractButton(AbstractButton inButton)
inButton
- objet à traduireprotected final void localizeCompoundBorder(CompoundBorder inBorder)
inBorder
- The compound border to (perhaps) translate.protected final void localizeJProgressBar(JProgressBar inPBar)
inPBar
- objet à traduireprotected final void localizeLabel(JLabel inLabel)
inLabel
- objet à traduireprotected final void localizeTextComponent(JTextComponent inTextComponent)
inTextComponent
- objet à traduireprotected void localizeFrame(Frame inFrame)
inFrame
- objet à traduirepublic void localizeContainer(Container inContainer)
inContainer
- objet à traduireprotected final void localizeMenuElement(MenuElement inMenuElement)
inMenuElement
- objet à traduireprotected final void localizeComponent(Component inComponent)
inComponent
- objet à traduirepublic void addNotify()
addNotify
in class Frame
protected void thisWindowClosing()
protected final void centerWindow()
public void doQuit()
public final void pack()
pack
in class Window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |