Package com.iizigo.link.ui.builder
Class MenuItemBuilder
- java.lang.Object
-
- com.iizigo.link.ui.builder.MenuItemBuilder
-
- All Implemented Interfaces:
IUIBuilder
,IUIBuilderFromVS<EditorVSAction>
public class MenuItemBuilder extends java.lang.Object implements IUIBuilderFromVS<EditorVSAction>
The UI Button builder.- Author:
- Christopher Mindus
-
-
Constructor Summary
Constructors Constructor Description MenuItemBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubOperations(IEUIContainer container, EditorVSAction comp, java.util.Collection<UIBuilderSubOperation> subOps)
Adds the operation(s) for the VS component builder operation.java.lang.String
getBuildDescription(IEUIContainer cnr)
Returns the UI builder description of what it creates.UIComp[]
getUIBuildComponents()
Returns the UI component classes built with the builder.java.lang.Class<EditorVSAction>
getVSComponentClass()
Returns the source VS component class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.iizigo.link.ui.IUIBuilderFromVS
addSubOperations, canBuild
-
-
-
-
Method Detail
-
getVSComponentClass
public java.lang.Class<EditorVSAction> getVSComponentClass()
Returns the source VS component class.- Specified by:
getVSComponentClass
in interfaceIUIBuilderFromVS<EditorVSAction>
- Returns:
- The VS component class.
-
getUIBuildComponents
public UIComp[] getUIBuildComponents()
Returns the UI component classes built with the builder.- Specified by:
getUIBuildComponents
in interfaceIUIBuilder
-
getBuildDescription
public java.lang.String getBuildDescription(IEUIContainer cnr)
Returns the UI builder description of what it creates. This description is used in the tree (if there is a single build choice), or in the wizard page if there are many that can be chosen from to build the same component.- Specified by:
getBuildDescription
in interfaceIUIBuilder
- Parameters:
cnr
- The container target.- Returns:
- The description.
-
addSubOperations
public void addSubOperations(IEUIContainer container, EditorVSAction 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.- Specified by:
addSubOperations
in interfaceIUIBuilderFromVS<EditorVSAction>
- Parameters:
container
- The container.comp
- The VS component.subOps
- The build sub-operations.
-
-