Package com.iizigo.vs.wizards
Class VSFieldCreation
- java.lang.Object
- com.iizigo.vs.wizards.VSComponentCreation<EditorVSField>
- com.iizigo.vs.wizards.VSFieldCreation
- All Implemented Interfaces:
INewVSComponentWizardInfo
public class VSFieldCreation extends VSComponentCreation<EditorVSField>
Class for VirtualSpace Field creation used in the wizards e.g. when creating panel components.- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.vs.wizards.VSComponentCreation
createdComponent
Constructor Summary
Constructors Constructor Description VSFieldCreation(UIComp uiComp, Atom vsRef, EditorVirtualSpace virtualSpace, Value.Type valueType, boolean doCreateDefaultValue, boolean isChooseTypeAllowed, java.lang.Boolean isNullAllowed, IPropUndoRedo undoRedo)
The constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
assignReference()
Completes the referencing to the VS Field in the UI component.protected EditorVSField
doCreate(Atom name, PropCnr parent, ComplexOperation op)
Creates the component required with the specified name.java.lang.String
getDefaultName()
Gets the default name for the VS component if no request name is defined.void
onWizard(AddUICompWizard wizard)
Called to create required wizard pages.Methods inherited from class com.iizigo.vs.wizards.VSComponentCreation
createVSComponent, doCreateDefaultValue, getDescription, getRequestedName, getTableOwner, getTitle, getUndoRedo, getValueType, getVirtualSpace, getVSParent, isChooseTypeAllowed, isComponentSelectable, isNullAllowed, registerRequestedNameListener, setDescription, setNullAllowed, setRequestedName, setTitle, setValueType, setVSParent
Constructor Detail
VSFieldCreation
public VSFieldCreation(UIComp uiComp, Atom vsRef, EditorVirtualSpace virtualSpace, Value.Type valueType, boolean doCreateDefaultValue, boolean isChooseTypeAllowed, java.lang.Boolean isNullAllowed, IPropUndoRedo undoRedo)
The constructor.- Parameters:
uiComp
- The component.vsRef
- The VSFieldReference atom name.virtualSpace
- The VirtualSpace.valueType
- The value type.doCreateDefaultValue
- Flag to create a default value.isChooseTypeAllowed
- If user is allowed to choose value type.isNullAllowed
- Flag null is allowed, null to enable user to choose.undoRedo
- The undo/redo instance.
Method Detail
onWizard
public void onWizard(AddUICompWizard wizard)
Called to create required wizard pages.- Specified by:
onWizard
in classVSComponentCreation<EditorVSField>
- Parameters:
wizard
- The wizard.
getDefaultName
public java.lang.String getDefaultName()
Gets the default name for the VS component if no request name is defined.- Specified by:
getDefaultName
in classVSComponentCreation<EditorVSField>
doCreate
protected EditorVSField doCreate(Atom name, PropCnr parent, ComplexOperation op)
Creates the component required with the specified name.- Specified by:
doCreate
in classVSComponentCreation<EditorVSField>
- Parameters:
name
- The name.parent
- The parent for the VS component.op
- The complex operation.- Returns:
- The component, initiated with potential value or value type.
assignReference
public boolean assignReference()
Completes the referencing to the VS Field in the UI component.- Specified by:
assignReference
in classVSComponentCreation<EditorVSField>
- Returns:
- true if the component reference is set, false if the user chose not to create this VS component.