com.ibm.dse.tools.workbench.gui
Class URLConnectionEditor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--com.ibm.dse.tools.workbench.gui.URLConnectionEditor

public class URLConnectionEditor
extends javax.swing.JDialog

This class implements an editor for a URL Connection The following protocols are supported: ftp, http, file and local file

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Field Summary
static int FILE_PROTOCOL
           
static int FTP_PROTOCOL
           
static int HTTP_PROTOCOL
           
static int LOCAL_FILE
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
URLConnectionEditor()
          Creates a non-modal URLConnectionEditor dialog without a title and without a specified Frame owner.
URLConnectionEditor(java.awt.Dialog owner)
          Creates a non-modal URLConnectionEditor dialog without a title with the specifed Dialog as its owner.
URLConnectionEditor(java.awt.Dialog owner, boolean modal)
          Creates a modal or non-modal URLConnectionEditor dialog without a title and with the specified owner dialog.
URLConnectionEditor(java.awt.Dialog owner, java.lang.String title)
          Creates a non-modal URLConnectionEditor dialog with the specified title and with the specified owner dialog.
URLConnectionEditor(java.awt.Dialog owner, java.lang.String title, boolean modal)
          Creates a modal or non-modal URLConnectionEditor dialog with the specified title and the specified owner frame.
URLConnectionEditor(java.awt.Frame owner)
          Creates a non-modal URLConnectionEditor dialog without a title with the specifed Frame as its owner.
URLConnectionEditor(java.awt.Frame owner, boolean modal)
          Creates a modal or non-modal URLConnectionEditor dialog without a title and with the specified owner frame.
URLConnectionEditor(java.awt.Frame owner, java.lang.String title)
          Creates a non-modal URLConnectionEditor dialog with the specified title and with the specified owner frame.
URLConnectionEditor(java.awt.Frame owner, java.lang.String title, boolean modal)
          Creates a modal or non-modal URLConnectionEditor dialog with the specified title and the specified owner frame.
 
Method Summary
 boolean accepted()
          Returns if the user has accepted the edition or if not
 java.lang.String getFilename()
          Returns the filename
 java.lang.String getHost()
          Returns the host
 char[] getPassword()
          This method returns the password
 int getPort()
          Returns the port
 int getProtocol()
          Returns the protocol
 java.lang.String getUsername()
          Returns the username
 void setFilename(java.lang.String filename)
          Sets the filename
 void setHost(java.lang.String host)
          Sets the host
 void setPort(int port)
          Sets the port
 void setProtocol(int protocol)
          Sets the protocol
 void setProtocol(java.lang.String protocolName)
          This method sets the protocol depending on the protocol name
 void setUsername(java.lang.String username)
          Sets the username
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCAL_FILE

public static final int LOCAL_FILE

FILE_PROTOCOL

public static final int FILE_PROTOCOL

HTTP_PROTOCOL

public static final int HTTP_PROTOCOL

FTP_PROTOCOL

public static final int FTP_PROTOCOL
Constructor Detail

URLConnectionEditor

public URLConnectionEditor()
Creates a non-modal URLConnectionEditor dialog without a title and without a specified Frame owner. A shared, hidden frame will be set as the owner of the Dialog.

URLConnectionEditor

public URLConnectionEditor(java.awt.Dialog owner)
Creates a non-modal URLConnectionEditor dialog without a title with the specifed Dialog as its owner.
Parameters:
owner - the Dialog from which the dialog is displayed

URLConnectionEditor

public URLConnectionEditor(java.awt.Dialog owner,
                           java.lang.String title)
Creates a non-modal URLConnectionEditor dialog with the specified title and with the specified owner dialog.
Parameters:
owner - the Dialog from which the dialog is displayed
title - the String to display in the dialog's title bar

URLConnectionEditor

public URLConnectionEditor(java.awt.Dialog owner,
                           java.lang.String title,
                           boolean modal)
Creates a modal or non-modal URLConnectionEditor dialog with the specified title and the specified owner frame.
Parameters:
owner - the dialog from which the dialog is displayed
title - the String to display in the dialog's title bar
modal - true for a modal dialog, false for one that allows others windows to be active at the same time

URLConnectionEditor

public URLConnectionEditor(java.awt.Dialog owner,
                           boolean modal)
Creates a modal or non-modal URLConnectionEditor dialog without a title and with the specified owner dialog.
Parameters:
owner - the Dialog from which the dialog is displayed
modal - true for a modal dialog, false for one that allows others windows to be active at the same time

URLConnectionEditor

public URLConnectionEditor(java.awt.Frame owner)
Creates a non-modal URLConnectionEditor dialog without a title with the specifed Frame as its owner.
Parameters:
owner - the Frame from which the dialog is displayed

URLConnectionEditor

public URLConnectionEditor(java.awt.Frame owner,
                           java.lang.String title)
Creates a non-modal URLConnectionEditor dialog with the specified title and with the specified owner frame.
Parameters:
owner - the Frame from which the dialog is displayed
title - the String to display in the dialog's title bar

URLConnectionEditor

public URLConnectionEditor(java.awt.Frame owner,
                           java.lang.String title,
                           boolean modal)
Creates a modal or non-modal URLConnectionEditor dialog with the specified title and the specified owner frame.
Parameters:
owner - the frame from which the dialog is displayed
title - the String to display in the dialog's title bar
modal - true for a modal dialog, false for one that allows others windows to be active at the same time

URLConnectionEditor

public URLConnectionEditor(java.awt.Frame owner,
                           boolean modal)
Creates a modal or non-modal URLConnectionEditor dialog without a title and with the specified owner frame.
Parameters:
owner - the Frame from which the dialog is displayed
modal - true for a modal dialog, false for one that allows others windows to be active at the same time
Method Detail

accepted

public boolean accepted()
Returns if the user has accepted the edition or if not
Returns:
boolean

getFilename

public java.lang.String getFilename()
Returns the filename
Returns:
java.lang.String

getHost

public java.lang.String getHost()
Returns the host
Returns:
java.lang.String

getPassword

public char[] getPassword()
This method returns the password
Returns:
char[]

getPort

public int getPort()
Returns the port
Returns:
int

getProtocol

public int getProtocol()
Returns the protocol
Returns:
int

getUsername

public java.lang.String getUsername()
Returns the username
Returns:
java.lang.String

setFilename

public void setFilename(java.lang.String filename)
Sets the filename
Parameters:
filename - java.lang.String

setHost

public void setHost(java.lang.String host)
Sets the host
Parameters:
host - java.lang.String

setPort

public void setPort(int port)
Sets the port
Parameters:
port - int

setProtocol

public void setProtocol(int protocol)
Sets the protocol
Parameters:
protocol - int The protocol integer

setProtocol

public void setProtocol(java.lang.String protocolName)
This method sets the protocol depending on the protocol name
Parameters:
protocolName - java.lang.String

setUsername

public void setUsername(java.lang.String username)
Sets the username
Parameters:
username - java.lang.String