|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
consultas.echo2consultas.SpWindowPane
com.sptci.echo2.WindowPane
com.sptci.rwt.webui.ConnectionDialogue
public class ConnectionDialogue
The dialogue used to initiate a new JDBC Connection.
Also used to save/edit pre-configured connections.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
protected class |
ConnectionDialogue.CancelListener
The ActionListener that cancels
(closes) this connection dialogue. |
protected class |
ConnectionDialogue.DatabaseTypeListener
The ActionListener that updates
port depending upon the selections made in databaseType. |
| Field Summary | |
|---|---|
private Column |
column
The container used to display all the components. |
private MainController |
controller
The main controller for the application. |
private TextField |
database
The name of the database to connect to. |
private SelectField |
databaseType
The component used to display configured database engines. |
private TextField |
host
The component used to specify the hostname of the database server. |
private PasswordField |
password
The component used to enter the password to logon with. |
private consultas.echo2consultas.LiveTextField |
port
The port on wich the database listens for connections. |
private TextField |
userName
The component used to enter the user name to login as. |
| Fields inherited from class consultas.echo2consultas.SpWindowPane |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, INPUT_CLOSE, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_CLOSABLE, PROPERTY_CLOSE_ICON, PROPERTY_CLOSE_ICON_INSETS, PROPERTY_DEFAULT_CLOSE_OPERATION, PROPERTY_HEIGHT, PROPERTY_ICON, PROPERTY_ICON_INSETS, PROPERTY_INSETS, PROPERTY_MAXIMIZABLE, PROPERTY_MAXIMIZE_ICON, PROPERTY_MAXIMIZE_ICON_INSETS, PROPERTY_MAXIMIZED, PROPERTY_MAXIMUM_HEIGHT, PROPERTY_MAXIMUM_WIDTH, PROPERTY_MINIMIZABLE, PROPERTY_MINIMIZE_ICON, PROPERTY_MINIMIZE_ICON_INSETS, PROPERTY_MINIMIZED, PROPERTY_MINIMUM_HEIGHT, PROPERTY_MINIMUM_WIDTH, PROPERTY_MOVABLE, PROPERTY_POSITION_X, PROPERTY_POSITION_Y, PROPERTY_RESIZABLE, PROPERTY_TITLE, PROPERTY_TITLE_BACKGROUND, PROPERTY_TITLE_BACKGROUND_IMAGE, PROPERTY_TITLE_FONT, PROPERTY_TITLE_FOREGROUND, PROPERTY_TITLE_HEIGHT, PROPERTY_TITLE_INSETS, PROPERTY_WIDTH, Z_INDEX_CHANGED_PROPERTY |
| Fields inherited from interface nextapp.echo2.app.ModalSupport |
|---|
MODAL_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
ConnectionDialogue(MainController controller)
Create a new instance blank of the view. |
|
| Method Summary | |
|---|---|
protected Component |
createButtons()
Create the component used to display the control butons for the dialogue. |
protected Component |
createDatabaseType()
Initialise the databaseType field with the localised values. |
protected Component |
createPort()
Initialise the port field with the localised values. |
protected Component |
createSave()
Create the PopUp component used to display the
component used to capture user input on the name to assign to save
the JDBC connection parameters represented by this component. |
protected String |
getDatabase()
Return the name of the database (instance) to connect to. |
protected String |
getDatabaseType()
Return the database engine that was selected. |
protected String |
getHost()
Return the hostname of the database server as entered in the view. |
protected String |
getPassword()
Return the password to use to login to the database server. |
protected int |
getPort()
Return the port on which the database server listens for connections. |
protected String |
getUserName()
Return the user name to logon to the database server as. |
private void |
initComponents()
Initialises all the view components. |
protected void |
setDatabase(String value)
Sets the value displayed in the database component. |
protected void |
setDatabaseType(String value)
Sets the selected item in databaseType to the value specified. |
protected void |
setHost(String value)
Sets the value displayed in the host component. |
protected void |
setPassword(String value)
Sets the value displayed in the password component. |
protected void |
setPort(int value)
Sets the value displayed in port component. |
protected void |
setUserName(String value)
Sets the value displayed in the userName component. |
| Methods inherited from class com.sptci.echo2.WindowPane |
|---|
init |
| Methods inherited from class consultas.echo2consultas.SpWindowPane |
|---|
addWindowPaneListener, fireWindowClosing, getBackgroundImage, getBorder, getCloseIcon, getCloseIconInsets, getDefaultCloseOperation, getHeight, getIcon, getIconInsets, getInsets, getMaximizeIcon, getMaximizeIconInsets, getMaximumHeight, getMaximumWidth, getMinimizeIcon, getMinimizeIconInsets, getMinimumHeight, getMinimumWidth, getPositionX, getPositionY, getTitle, getTitleBackground, getTitleBackgroundImage, getTitleFont, getTitleForeground, getTitleHeight, getTitleInsets, getWidth, getZIndex, isClosable, isMaximizable, isMaximized, isMinimizable, isMinimized, isModal, isMovable, isResizable, isValidChild, isValidParent, processInput, removeWindowPaneListener, setBackgroundImage, setBorder, setClosable, setCloseIcon, setCloseIconInsets, setDefaultCloseOperation, setHeight, setIcon, setIconInsets, setInsets, setMaximizable, setMaximized, setMaximumHeight, setMaximumWidth, setMinimizable, setMinimized, setMinimumHeight, setMinimumWidth, setModal, setMovable, setPositionX, setPositionY, setResizable, setTitle, setTitleBackground, setTitleBackgroundImage, setTitleFont, setTitleForeground, setTitleHeight, setTitleInsets, setWidth, setZIndex, userClose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final MainController controller
private final Column column
private SelectField databaseType
private TextField host
private consultas.echo2consultas.LiveTextField port
private TextField database
private TextField userName
private PasswordField password
| Constructor Detail |
|---|
public ConnectionDialogue(MainController controller)
controller - The controller to use.| Method Detail |
|---|
private void initComponents()
Utilities.createTextField( String, String, String, Object ),
createDatabaseType(),
createPort(),
createButtons()protected Component createDatabaseType()
databaseType field with the localised values.
databaseType component.protected Component createPort()
port field with the localised values.
port component.protected Component createButtons()
createSave()protected Component createSave()
PopUp component used to display the
component used to capture user input on the name to assign to save
the JDBC connection parameters represented by this component.
protected String getDatabaseType()
protected void setDatabaseType(String value)
databaseType to the value specified.
value - The name to set as selected.protected String getHost()
protected void setHost(String value)
host component.
value - The value to display.protected int getPort()
protected void setPort(int value)
port component.
value - The value to display.protected String getDatabase()
protected void setDatabase(String value)
database component.
value - The value to display.protected String getUserName()
protected void setUserName(String value)
userName component.
value - The value to display.protected String getPassword()
protected void setPassword(String value)
password component.
value - The value to display.
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||