public class ServiceConfigurationSelectionWidget
extends Composite
buttons constructor parameter.
The excluded constructor parameter can be used to supply a list
of configurations to be exclude from the list.
The whole control can be enabled/disabled using the setEnabled method.| Constructor and Description |
|---|
ServiceConfigurationSelectionWidget(Composite parent,
int style) |
ServiceConfigurationSelectionWidget(Composite parent,
int style,
Set<IServiceConfiguration> excluded,
Set<IService> services,
boolean enableButtons) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionChangedListener(ISelectionChangedListener listener) |
IServiceConfiguration[] |
getCheckedServiceConfigurations()
Gets the elements that have been checked in the viewer
|
boolean |
getEnabled() |
IServiceConfiguration |
getSelectedConfiguration()
Return the service configuration selected by the user
|
ISelection |
getSelection() |
void |
removeSelectionChangedListener(ISelectionChangedListener listener) |
void |
setAllChecked(boolean state)
Sets all elements in the viewer to the given checked state.
|
void |
setConfigurations(IServiceConfiguration[] configurations)
Set the service configurations to display in the viewer.
|
void |
setEnabled(boolean enabled) |
void |
setSelection(ISelection selection) |
public ServiceConfigurationSelectionWidget(Composite parent,
int style)
public ServiceConfigurationSelectionWidget(Composite parent,
int style,
Set<IServiceConfiguration> excluded,
Set<IService> services,
boolean enableButtons)
public void addSelectionChangedListener(ISelectionChangedListener listener)
public IServiceConfiguration[] getCheckedServiceConfigurations()
public boolean getEnabled()
public IServiceConfiguration getSelectedConfiguration()
public ISelection getSelection()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
public void setAllChecked(boolean state)
state - public void setConfigurations(IServiceConfiguration[] configurations)
configurations - configurations to display, or null to display allpublic void setEnabled(boolean enabled)
public void setSelection(ISelection selection)
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.