T
- type of item in the viewer.public static class InteractiveUIContent.InteractiveUIBuilder<T> extends Object
Constructor and Description |
---|
InteractiveUIBuilder(org.eclipse.swt.widgets.Composite parent,
IItemRegistry<T> registry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InteractiveUIContent |
build()
Build a new
InteractiveUI . |
InteractiveUIContent.InteractiveUIBuilder<T> |
setConfigurationNodeKey(String key)
Node key used to get the
Preferences to retrieve IConfigurationUIFactory . |
InteractiveUIContent.InteractiveUIBuilder<T> |
setConfiguratorUIRegistry(Map<String,IConfigurationUIFactory> configuratorUIRegistry)
Registry of
IConfigurationUIFactory used to fill the configuration composite. |
InteractiveUIContent.InteractiveUIBuilder<T> |
setDefaultCheck(Set<IItemDescriptor<T>> newDefaultCheck)
Sets the default element to check.
|
InteractiveUIContent.InteractiveUIBuilder<T> |
setDefaultSelection(IItemDescriptor<T> newDefaultSelection)
Set the default element to select.
|
InteractiveUIContent.InteractiveUIBuilder<T> |
setHasDescription(boolean newHasDescription)
Set to true if "this" needs to create a description field.
|
InteractiveUIContent.InteractiveUIBuilder<T> |
setHoldingData(DataHolder<T> newDataHolder)
Sets a dataHolder that will be synchronized with the checked element.
|
InteractiveUIContent.InteractiveUIBuilder<T> |
setSimple(boolean newIsSimple)
Set to true if the viewer can only have only one element checked at a time.
|
public InteractiveUIBuilder(org.eclipse.swt.widgets.Composite parent, IItemRegistry<T> registry)
parent
- Holding composite of all the structure.registry
- Item registry holding input of the viewer.public InteractiveUIContent.InteractiveUIBuilder<T> setHoldingData(DataHolder<T> newDataHolder)
newDataHolder
- DataHolder.InteractiveUIContent.InteractiveUIBuilder
public InteractiveUIContent.InteractiveUIBuilder<T> setConfigurationNodeKey(String key)
Preferences
to retrieve IConfigurationUIFactory
. See
ItemUtil#getConfigurationPreferenceNode(String, String)
(needed if a
ConfigurationUIRegistry has been provided)key
- .InteractiveUIContent.InteractiveUIBuilder
public InteractiveUIContent.InteractiveUIBuilder<T> setConfiguratorUIRegistry(Map<String,IConfigurationUIFactory> configuratorUIRegistry)
IConfigurationUIFactory
used to fill the configuration composite.configuratorUIRegistry
- .InteractiveUIContent.InteractiveUIBuilder
public InteractiveUIContent.InteractiveUIBuilder<T> setDefaultCheck(Set<IItemDescriptor<T>> newDefaultCheck)
setSimple(boolean)
newDefaultCheck
- .public InteractiveUIContent.InteractiveUIBuilder<T> setDefaultSelection(IItemDescriptor<T> newDefaultSelection)
newDefaultSelection
- .public InteractiveUIContent.InteractiveUIBuilder<T> setHasDescription(boolean newHasDescription)
newHasDescription
- .InteractiveUIContent.InteractiveUIBuilder
public InteractiveUIContent.InteractiveUIBuilder<T> setSimple(boolean newIsSimple)
newIsSimple
- .InteractiveUIContent.InteractiveUIBuilder
public InteractiveUIContent build()
InteractiveUI
.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.