Package com.iizigo.panel.wizards
Interface IUICompCreator<UICOMP extends UIComp>
- All Known Implementing Classes:
NameVSFieldCreator
,TextPromptCreator
,UIComboBoxCreator
,UIContainerCreator
,UITableColumnCreator
,UITableCreator
public interface IUICompCreator<UICOMP extends UIComp>
Interface used to create the UI component in order to fill in the wizard or to perform auto-creation of VS components.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiondefault List<VSComponentCreation<?>>
getCreations
(UICOMP uiComp, EditorVirtualSpace virtualSpace, IPropUndoRedo undoRedo) Gets the required VS component creations that are needed.getImage()
Gets the large image to use, relative the "icons/large" directory.default boolean
Returns if the VirtualSpace is required, and ifgetCreations(UIComp, EditorVirtualSpace, IPropUndoRedo)
will be called.void
onWizard
(AddUICompWizard wizard, UIPanelBase panel, UICOMP uiComp) Called to create required wizard pages.default boolean
Called when the wizard completes.default boolean
Called when silent execution is done and a wizard is not used.
Method Details
isVirtualSpaceRequired
default boolean isVirtualSpaceRequired()Returns if the VirtualSpace is required, and ifgetCreations(UIComp, EditorVirtualSpace, IPropUndoRedo)
will be called.getCreations
default List<VSComponentCreation<?>> getCreations(UICOMP uiComp, EditorVirtualSpace virtualSpace, IPropUndoRedo undoRedo) Gets the required VS component creations that are needed.- Parameters:
uiComp
- The UI component.virtualSpace
- The VirtualSpace.undoRedo
- The undo/redo instance.- Returns:
- A list of VS component creation elements.
getImage
String getImage()Gets the large image to use, relative the "icons/large" directory.onWizard
Called to create required wizard pages.- Parameters:
wizard
- The wizard.panel
- The panel.uiComp
- The component created.
performFinish
default boolean performFinish()Called when the wizard completes. Override to process.- Returns:
- true to finish (default), false to abort.
performSilent
default boolean performSilent()Called when silent execution is done and a wizard is not used. This method is called instead ofperformFinish()
.- Returns:
- true to finish (default), false to abort.