|
dLife Home Page | |||||||||
| 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.Dialog
javax.swing.JDialog
dlife.gui.connectiondialog.ConnectionDialog
public class ConnectionDialog
Display a dialog for obtaining the information necessary to create a connection to a robot, service or another computer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
BLUETOOTH
Constant indicating that the tab for establishing a bluetooth connection should be enabled. |
static int |
SERIALPORT
Constant indicating that the tab for establishing a serial port connection should be enabled. |
static int |
SOCKET
Constant indicating that the tab for establishing a socket connection should be enabled. |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ConnectionDialog(String title,
String datafile,
int tabMask,
String btNamePattern,
String serialNamePattern)
Construct a new SerialConnectionDialog. |
|
| Method Summary | |
|---|---|
boolean |
canceled()
Returns true if the user canceled the dialog box. |
String |
getBluetoothAddress()
Return the bluetooth address that was selected in the "Bluetooth" tab. |
String |
getSerialPortFile()
Return the file that was selected in the "Serial Port" tab. |
int |
getSocketPort()
Return the server port that was entered in the "Socket" tab. |
String |
getSocketServer()
Return the server address (IP or domain name) that was entered in the "Socket" tab. |
static void |
main(String[] args)
A main method to display the ConnectionDialog and allow the user to interact with it for testing purposes. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BLUETOOTH
public static final int SERIALPORT
public static final int SOCKET
| Constructor Detail |
|---|
public ConnectionDialog(String title,
String datafile,
int tabMask,
String btNamePattern,
String serialNamePattern)
title - the title to appear in the dialog.datafile - the path and base name of the file where the dialog
defaults should be saved. In practice several files are
created by different components by appending different file
extensions to the base name provided here.tabMask - the bitwise or of the class constants that enable the
connection types.btNamePattern - a regular expression that is used to match the
bluetooth friendly name. Only names that match this regular
expression will be included in the available bluetooth
devices. If the BLUETOOTH tab is not displayed this value is
ignored.serialNamePattern - a regular expression that is used to match the
serial port device filename. Only names that match this
regular expression will be able to be selected in the file
chooser. If the SERIALPORT tab is not displayed this value is
ignored.| Method Detail |
|---|
public boolean canceled()
public String getSerialPortFile()
public String getSocketServer()
public int getSocketPort()
public String getBluetoothAddress()
public static void main(String[] args)
args - none
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||