Package com.iizigo.link.ui
Interface IUIBuilderFromVS<VS_COMP extends VSComponent>
- All Superinterfaces:
IUIBuilder
- All Known Implementing Classes:
ButtonBuilder
,ComboBoxBuilder
,MenuItemBuilder
,TextAreaBuilder
,TextBuilder
public interface IUIBuilderFromVS<VS_COMP extends VSComponent> extends IUIBuilder
The interface used for UI builders from VirtualSpace.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addSubOperations(IEUIContainer container, org.eclipse.core.runtime.IAdaptable source, java.util.Collection<UIBuilderSubOperation> subOps)
Adds the operation node(s) for presentation in the link wizard main page.void
addSubOperations(IEUIContainer container, VS_COMP comp, java.util.Collection<UIBuilderSubOperation> subOps)
Adds the operation(s) for the VS component builder operation.default boolean
canBuild(IEUIContainer container, org.eclipse.core.runtime.IAdaptable source)
Returns if this property container could potentially be link capable.java.lang.Class<VS_COMP>
getVSComponentClass()
Returns the source VS component class.Methods inherited from interface com.iizigo.link.ui.IUIBuilder
getBuildDescription, getUIBuildComponents
Method Detail
getVSComponentClass
java.lang.Class<VS_COMP> getVSComponentClass()
Returns the source VS component class.- Returns:
- The VS component class.
canBuild
default boolean canBuild(IEUIContainer container, org.eclipse.core.runtime.IAdaptable source)
Returns if this property container could potentially be link capable.This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.
- Specified by:
canBuild
in interfaceIUIBuilder
- Parameters:
container
- The target container.source
- The adaptable source.- Returns:
- true if the builder supports building with the data.
addSubOperations
default void addSubOperations(IEUIContainer container, org.eclipse.core.runtime.IAdaptable source, java.util.Collection<UIBuilderSubOperation> subOps)
Adds the operation node(s) for presentation in the link wizard main page. This method is called only if the builder supports the adaptable component.- Specified by:
addSubOperations
in interfaceIUIBuilder
- Parameters:
container
- The container.source
- The adaptable source.subOps
- The build sub-operations.
addSubOperations
void addSubOperations(IEUIContainer container, VS_COMP comp, java.util.Collection<UIBuilderSubOperation> subOps)
Adds the operation(s) for the VS component builder operation. This method is only called when verified that this operation really can be built.- Parameters:
container
- The container.comp
- The VS component.subOps
- The build sub-operations.