|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.ptp.remote.ui.widgets.RemoteConnectionWidget
public class RemoteConnectionWidget
Widget to allow the user to select a service provider and connection. Provides a "New" button to create a new connection. If title is supplied then the widget will be placed in a group.
| Nested Class Summary | |
|---|---|
protected class |
RemoteConnectionWidget.WidgetListener
|
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|---|
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|---|
handle |
| Constructor Summary | |
|---|---|
RemoteConnectionWidget(org.eclipse.swt.widgets.Composite parent,
int style,
java.lang.String title,
org.eclipse.jface.operation.IRunnableContext context)
|
|
| Method Summary | |
|---|---|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds the listener to the collection of listeners who will be notified when the user changes the receiver's selection, by sending it one of the messages defined in the SelectionListener interface. |
IRemoteConnection |
getConnection()
Get the connection that is currently selected in the widget, or null if there is no selected connection. |
protected IRemoteConnection |
getRemoteConnection(IRemoteServices services,
java.lang.String name)
|
protected IRemoteConnectionManager |
getRemoteConnectionManager(IRemoteServices services)
|
protected IRemoteServices |
getRemoteServices(java.lang.String id)
|
protected void |
handleConnectionSelected()
Handle the section of a new connection. |
protected void |
handleNewRemoteConnectionSelected()
Handle creation of a new connection by pressing the 'New...' button. |
protected void |
handleRemoteServiceSelected(IRemoteConnection conn)
Handle selection of a new remote services provider from the remote services combo. |
protected java.lang.String |
initializeRemoteServicesCombo(java.lang.String id)
Initialize the contents of the remote services combo. |
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Remove a listener that will be notified when one of the widget's controls are selected |
void |
setConnection(IRemoteConnection connection)
Set the selected connection. |
void |
setEnabled(boolean enabled)
|
void |
setHints(java.lang.String[] attrHints,
java.lang.String[] attrHintValues)
Set hints to use when creating a new connection. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isTouchEnabled, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEventsEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteConnectionWidget(org.eclipse.swt.widgets.Composite parent,
int style,
java.lang.String title,
org.eclipse.jface.operation.IRunnableContext context)
| Method Detail |
|---|
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
SelectionListener interface.
widgetSelected is called when the user changes the service
provider or connection.
listener - the listener which should be notifiedpublic IRemoteConnection getConnection()
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener - listener to removepublic void setConnection(IRemoteConnection connection)
connection - connection to selectpublic void setEnabled(boolean enabled)
setEnabled in class org.eclipse.swt.widgets.Control
public void setHints(java.lang.String[] attrHints,
java.lang.String[] attrHintValues)
attrHints - attrHintValues -
protected IRemoteConnection getRemoteConnection(IRemoteServices services,
java.lang.String name)
protected IRemoteConnectionManager getRemoteConnectionManager(IRemoteServices services)
protected IRemoteServices getRemoteServices(java.lang.String id)
protected void handleConnectionSelected()
protected void handleNewRemoteConnectionSelected()
protected void handleRemoteServiceSelected(IRemoteConnection conn)
conn - connection to select as current. If conn is null, select the
first item in the list.notify - if true, notify handlers that the connection has changed. This
should only happen if the user changes the connection.protected java.lang.String initializeRemoteServicesCombo(java.lang.String id)
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||