PTP
Release 7.0

org.eclipse.ptp.services.ui.widgets
Class AddServiceConfigurationWidget

java.lang.Object
  extended by Composite
      extended by org.eclipse.ptp.services.ui.widgets.AddServiceConfigurationWidget

public class AddServiceConfigurationWidget
extends Composite

A widget that allows the user to create a new service configuration or select an existing service configuration. The widget also provides an "Advanced" button to perform any additional configuration that may be required.


Constructor Summary
AddServiceConfigurationWidget(Composite parent, int style)
           
AddServiceConfigurationWidget(Composite parent, int style, java.util.Set<IServiceConfiguration> excluded, java.util.Set<IService> services, boolean enableButtons)
           
 
Method Summary
 void addSelectionChangedListener(ISelectionChangedListener listener)
           
 ISelection getSelection()
           
 IServiceConfiguration getServiceConfiguration()
          Get the currently selected service configuration
 void removeSelectionChangedListener(ISelectionChangedListener listener)
           
 void setDefaultConfiguration(IServiceConfiguration config)
          Set the configuration that will be returned if the "New" radio button is selected.
 void setSelection(boolean newButtonSelected)
          Set the selected status of the buttons.
 void setSelection(ISelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddServiceConfigurationWidget

public AddServiceConfigurationWidget(Composite parent,
                                     int style)

AddServiceConfigurationWidget

public AddServiceConfigurationWidget(Composite parent,
                                     int style,
                                     java.util.Set<IServiceConfiguration> excluded,
                                     java.util.Set<IService> services,
                                     boolean enableButtons)
Method Detail

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)

getSelection

public ISelection getSelection()

getServiceConfiguration

public IServiceConfiguration getServiceConfiguration()
Get the currently selected service configuration

Returns:
service configuration

removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)

setDefaultConfiguration

public void setDefaultConfiguration(IServiceConfiguration config)
Set the configuration that will be returned if the "New" radio button is selected. The name of the configuration is displayed in the text box.

Parameters:
config - default new configuration

setSelection

public void setSelection(boolean newButtonSelected)
Set the selected status of the buttons.

Parameters:
newButtonSelected - if true, the new button will be selected

setSelection

public void setSelection(ISelection selection)

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.