|
|||||||||
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 | +--breakout.NetworkSettings
NetworkSettings is a stateful window that is used to query the user's desired network parameters.
Connector
,
Serialized FormField Summary | |
static int |
NETWORK_CLIENT
user requested that this instance be a client |
static int |
NETWORK_NONE
user requested no network connection |
static int |
NETWORK_SERVER
user requested that this instance be a server |
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 | |
NetworkSettings()
Builds a frame to ask for user's network settings, but doesn't display it |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Responds to user button-pushes. |
String |
getHost()
returns the name of the host to connect to as a client. |
int |
getPort()
returns the requested port. |
void |
getSettings()
Requests that the frame be shown to the user. |
int |
getState()
Returns the requested state of network connectivity |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, 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 NETWORK_NONE
public static final int NETWORK_CLIENT
public static final int NETWORK_SERVER
Constructor Detail |
public NetworkSettings()
Method Detail |
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- The triggering action.public void getSettings()
public int getState()
getState
in class Frame
public int getPort()
RuntimeException
- if the state was NETWORK_NONE.public String getHost()
RuntimeException
- if the state was not NETWORK_CLIENT.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |