Package com.iizigo.vs
Interface INewVSComponentWizardInfo
- All Known Implementing Classes:
NewVSComponentWizard,VSActionCreation,VSColumnCreation,VSComponentCreation,VSFieldCreation,VSTableCreation
public interface INewVSComponentWizardInfoThe information required by the VS component wizards.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleandoCreateDefaultValue()Returns if a default value should be created.default java.lang.StringgetDescription()Gets the description.default java.lang.StringgetRequestedName()Gets the requested name.VSReferenceOwnerData<VSTable,VSTableReference>getTableOwner()Gets the table owner, for table column creation.default java.lang.StringgetTitle()Gets the title.IPropUndoRedogetUndoRedo()Gets the undo/redo instance.Value.TypegetValueType()Returns the value type where this applies (for VS Field and VS Column Header).EditorVirtualSpacegetVirtualSpace()Returns the VirtualSpace.booleanisChooseTypeAllowed()Returns if the user is allowed to choose type.default booleanisComponentSelectable()Returns if the VS component should be selectable or not.java.lang.BooleanisNullAllowed()Returns if null is allowed.default voidregisterRequestedNameListener(java.lang.Runnable nameListener)Registers a requested name listener.voidsetNullAllowed(boolean isNullAllowed)Sets the null allowed flag.default voidsetRequestedName(java.lang.String requestedName)Sets the requested name.voidsetValueType(Value.Type valueType)Sets the value type where this applies (for VS Field and VS Column Header).
Method Detail
getTitle
default java.lang.String getTitle()
Gets the title.- Returns:
- The title for the page, or null for default.
getDescription
default java.lang.String getDescription()
Gets the description.- Returns:
- The description of the page, or null for default.
getRequestedName
default java.lang.String getRequestedName()
Gets the requested name.- Returns:
- null if no name is requested.
setRequestedName
default void setRequestedName(java.lang.String requestedName)
Sets the requested name.- Parameters:
requestedName- null if no name is requested.
isComponentSelectable
default boolean isComponentSelectable()
Returns if the VS component should be selectable or not.- Returns:
- false by default in order to create a new one.
registerRequestedNameListener
default void registerRequestedNameListener(java.lang.Runnable nameListener)
Registers a requested name listener.
getVirtualSpace
EditorVirtualSpace getVirtualSpace()
Returns the VirtualSpace.
getValueType
Value.Type getValueType()
Returns the value type where this applies (for VS Field and VS Column Header).
setValueType
void setValueType(Value.Type valueType)
Sets the value type where this applies (for VS Field and VS Column Header).- Parameters:
valueType- The new value type.
isChooseTypeAllowed
boolean isChooseTypeAllowed()
Returns if the user is allowed to choose type.
isNullAllowed
java.lang.Boolean isNullAllowed()
Returns if null is allowed.- Returns:
- null to enable user to choose, otherwise Boolean.TRUE or Boolean.FALSE to disable user choice and use this setting.
setNullAllowed
void setNullAllowed(boolean isNullAllowed)
Sets the null allowed flag.
doCreateDefaultValue
boolean doCreateDefaultValue()
Returns if a default value should be created.
getTableOwner
VSReferenceOwnerData<VSTable,VSTableReference> getTableOwner()
Gets the table owner, for table column creation.- Returns:
- The table owner, or null for not available (or not applicable).
getUndoRedo
IPropUndoRedo getUndoRedo()
Gets the undo/redo instance.