|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame fr.lip6.sma.simulacion.app.LocalizedWindow fr.lip6.sma.simulacion.server.http.HTTPSetupFrame
public class HTTPSetupFrame
Classe pour la fenêtre de connexion au serveur Simulación HTTP.
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 static String |
HIDEURL_PROPERTY
Property to mention that the URL should be hidden. |
private JPanel |
mButtonsLayout
Panel to lay out the buttons. |
private JPanel |
mButtonsPanel
Panel with the buttons. |
private HTTPClient |
mClient
Reference on the HTTP client. |
private JButton |
mConnectButton
"Connect" button. |
private String |
mHTTPFile
HTTP directory (currently ignored, maintained here for esthetic purposes). |
private JPanel |
mImagePanel
Panel with the background image. |
private HTTPMDNSBrowser |
mMDNSBrowser
mDNS browser or null if we don't browse for existing
HTTP servers. |
private JProgressBar |
mProgressBar
Progress bar for the connection. |
private JButton |
mQuitButton
"Quit" button. |
private JComboBox |
mServerURLCombo
Combo box with the URL. |
private JTextField |
mServerURLTextField
Text field with the URL. |
private JPanel |
mSetupPanel
Panel with the setup controls. |
private static String |
NOSETUP_PROPERTY
Property to mention that we don't display any frame. |
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 | |
---|---|
HTTPSetupFrame(HTTPClient inClient,
Configuration inConfiguration)
Constructeur à partir du client et de la configuration. |
Method Summary | |
---|---|
private void |
browserListUpdated()
Method called when the browser list was updated. |
static void |
displaySetupFrame(HTTPClient inClient,
Configuration inConfiguration)
Display the frame (or not). |
private void |
doBrowserListUpdated()
Method called when the browser list was updated. |
private boolean |
doConfigure()
Actually configure the connection. |
private void |
doShake()
Méthode pour secouer la fenêtre. |
private void |
finishComponentsSetup(Configuration inConfiguration)
Méthode pour terminer l'initialisation des composants. |
private static String |
getDefaultURL(Configuration inConfiguration)
Determine the default URL from the configuration. |
private void |
initComponents()
Méthode pour initialiser les composants au démarrage de l'application. |
private void |
mConnectButtonActionPerformed(ActionEvent inEvent)
Méthode invoquée lorsque le bouton Connexion est cliqué. |
private void |
mQuitButtonActionPerformed(ActionEvent inEvent)
Méthode invoquée lorsque le bouton Quitter est cliqué. |
private void |
shake()
Méthode pour secouer la fenêtre. |
protected void |
thisWindowClosing(WindowEvent inEvent)
Méthode appelée lorsque la case de fermeture est cliquée. |
(package private) void |
waitAndSetup()
Attente jusqu'à ce que l'utilisateur ait choisi une URL. |
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 |
---|
private static final String NOSETUP_PROPERTY
private static final String HIDEURL_PROPERTY
private final HTTPClient mClient
private final String mHTTPFile
private final HTTPMDNSBrowser mMDNSBrowser
null
if we don't browse for existing
HTTP servers.
private final JPanel mImagePanel
private final JPanel mSetupPanel
private final JTextField mServerURLTextField
private final JComboBox mServerURLCombo
private final JPanel mButtonsPanel
private final JProgressBar mProgressBar
private final JPanel mButtonsLayout
private final JButton mQuitButton
private final JButton mConnectButton
Constructor Detail |
---|
HTTPSetupFrame(HTTPClient inClient, Configuration inConfiguration)
inClient
- le client.inConfiguration
- la configuration de l'application.Method Detail |
---|
private void initComponents()
private void finishComponentsSetup(Configuration inConfiguration)
inConfiguration
- la configuration de l'application.private void mConnectButtonActionPerformed(ActionEvent inEvent)
inEvent
- l'événement du clic.private void mQuitButtonActionPerformed(ActionEvent inEvent)
inEvent
- l'événement du clic.protected final void thisWindowClosing(WindowEvent inEvent)
inEvent
- l'événement du clic.final void waitAndSetup()
private boolean doConfigure()
true
if the connection was properly configured.private void shake()
private void doShake()
shake()
private void browserListUpdated()
private void doBrowserListUpdated()
private static String getDefaultURL(Configuration inConfiguration)
inConfiguration
- configuration file.
""
if no default URL could
be built.public static void displaySetupFrame(HTTPClient inClient, Configuration inConfiguration)
inClient
- le client.inConfiguration
- la configuration de l'application.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |