IViewDefinitions Interface
Namespace: NextDesign.Core
Description
Access object to view definition management object.
Belonging Area
Name | Description |
---|---|
Profile | API group to access profile. |
Property
Name | Description |
---|---|
Editors | List of editor definitions |
Method
Name | Description |
---|---|
FindEditorDefByClass(IClass,string) | Searches for the view definition of the editor defined in the specified class. |
FindEditorDefByClass(string,bool,string) | Searches for the view definition of the editor defined in the specified class. |
FindElementDefByClass(IEditorDef,IClass,string) | Searches for the editor element definition corresponding to the specified model class from the specified editor definition. |
FindElementDefByClass(IEditorDef,string,bool,string) | Finds an editor element definition for a specified model class from a specified editor definition. |
NewCustomEditorDef | Generates a custom editor definition for a specified model class. |
NewCustomElementDef | Generates a custom editor element definition for a specified model class. |
NewEditorDef | Generates an editor definition for a specified model class. |
NewElementDef | Generates an editor element definition for a specified model class. |
RegisterCompartmentItemTextValueCallback(IElementDef,string,Func<INode, int, string, IModel, string>,Action<INode, int, string, IModel, string>) | Registers a callback function to get/set the value of the specified compartment item of the editor element generated from the specified editor element definition. ・It is recommended to call it when activating the extension. ・The registered value get callback function will be called in the following cases. ・A compartment item is displayed ・A field value of the model referenced by the compartment item is changed |
RegisterCompartmentItemTextValueCallback(string,string,string,Func<INode, int, string, IModel, string>,Action<INode, int, string, IModel, string>) | Registers a callback function to get/set the value of a specified compartment item of an editor element generated from an editor element definition that can be identified from a specified class. ・It is recommended to call this when activating the extension. ・The registered callback function to get the value is called in the following cases: ・A compartment item is displayed ・A field value of the model referenced by the compartment item is changed Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |
RegisterGetCompartmentItemTextStyleCallback | Registers a callback function for retrieving the style value of a specified compartment item of an editor element generated from an editor element definition that can be identified from a specified class. ・It is recommended to call this when activating the extension. ・Style values are retrieved in the following order of priority. 1. Callback function value for retrieving style value 2. Style value set in the view instance 3. Style value defined in the view definition ・The registered callback function is called in the following cases: ・A compartment item is displayed ・A field value of the model referenced by the compartment item is changed Note that if the editor element definition cannot be identified from the specified class, nothing is done. |
RegisterGetCompartmentItemTextStyleCallback(IElementDef,string,Func<INode, int, string, IModel, IStyleProperty, object>,StyleAttributes) | Specify the style attributes and register a callback function to obtain the style value of the specified compartment item of the editor element generated from the specified editor element definition. ・It is recommended to call it when Activating the extension. ・Style values are obtained in the following order of priority. 1. Callback function value for obtaining style value 2. Style value set in the view instance 3. Style value defined in the view definition ・The registered callback function is called in the following cases. ・A compartment item is displayed ・A field value of the model referenced by the compartment item has changed |
RegisterGetCompartmentItemTextStyleCallback(IElementDef,string,Func<INode, int, string, IModel, IStyleProperty, object>) | Registers a callback function for retrieving the style value of the specified compartment item of the editor element generated from the specified editor element definition. ・It is recommended to call this when Activating the extension. ・Style values are retrieved in the following order of priority. 1. Callback function value for retrieving style value 2. Style value set in the view instance 3. Style value defined in the view definition ・The registered callback function is called in the following cases. ・A compartment item is displayed ・A field value of the model referenced by the compartment item has changed |
RegisterGetCompartmentItemTextStyleCallback(string,string,string,Func<INode, int, string, IModel, IStyleProperty, object>,StyleAttributes) | Registers a callback function for retrieving style values for a specified compartment item of an editor element generated from an editor element definition that can be identified from a specified class by specifying a style attribute. ・It is recommended to call this when Activating an extension. ・Style values are retrieved in the following order of priority. 1. Callback function value for retrieving style values 2. Style value set in a view instance 3. Style value defined in a view definition ・The registered callback function is called in the following cases. ・A compartment item is displayed ・A field value of the model referenced by the compartment item has changed Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |
RegisterGetStyleCallback(IElementDef,Func<IEditorElement, IModel, IStyleProperty, object>,StyleAttributes) | Specify the style attribute and register the style value retrieval callback function for the editor element generated from the specified editor element definition. ・It is recommended to call it when Activating the extension. ・The style value is retrieved in the following order of priority. 1. Callback function value for style value retrieval 2. Style value set in the view instance 3. Style value defined in the view definition ・To change the text color of the title text, redefine the text color in the callback function of this method. - The registered callback function is called in the following cases: - The editor element is displayed - The field value of the model referenced by the editor element is changed |
RegisterGetStyleCallback(IElementDef,Func<IEditorElement, IModel, IStyleProperty, object>) | Registers the style value retrieval callback function for the editor element generated from the specified editor element definition. - It is recommended to call it when Activating the extension. - The style value is retrieved in the following order of priority: - 1. Callback function value for retrieving style value - 2. Style value set in the view instance - 3. Style value defined in the view definition - To change the text color of the title text, redefine the text color in the callback function of this method. - The registered callback function is called in the following cases: ・An editor element is displayed ・A field value of the model referenced by the editor element has changed |
RegisterGetStyleCallback(string,string,Func<IEditorElement, IModel, IStyleProperty, object>,StyleAttributes) | Specify the style attribute and register the style value retrieval callback function for the editor element generated from the editor element definition that can be identified from the specified class. ・It is recommended to call it when Activating the extension. ・The style value is retrieved in the following order of priority. 1. Callback function value for style value retrieval 2. Style value set in the view instance 3. Style value defined in the view definition ・To change the text color of the title text, redefine the text color in the callback function of this method. ・The registered callback function is called in the following cases. --The editor element is displayed --The field value of the model referenced by the editor element is changed Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |
RegisterGetStyleCallback(string,string,Func<IEditorElement, IModel, IStyleProperty, object>) | Registers a callback function for retrieving the style value of the editor element generated from the editor element definition that can be identified from the specified class. --It is recommended to call this when Activating the extension. --The style value is retrieved in the following order of priority. --1. Callback function value for retrieving the style value --2. Style value set in the view instance --3. Style value defined in the view definition --To change the text color of the title text, redefine the text color in the callback function of this method. - The registered callback function is called in the following cases: - An editor element is displayed - A field value of the model referenced by the editor element is changed Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |
RegisterGetTextStyleCallback(IElementDef,TextTypes,Func<IShape, TextTypes, string, IModel, IStyleProperty, object>,StyleAttributes) | Specify the style attribute and register a callback function to obtain the style value of the specified text of the editor element generated from the specified editor element definition. - It is recommended to call it when Activating the extension. - The style value is obtained in the following order of priority. 1. Callback function value for style value acquisition 2. Style value set in the view instance 3. Style value defined in the view definition ・To change the text color of the title text, redefine the text color in the RegisterGetStyleCallback callback function. ・The registered callback function is called in the following cases: ・An editor element is displayed ・A field value of the model referenced by the editor element is changed |
RegisterGetTextStyleCallback(IElementDef,TextTypes,Func<IShape, TextTypes, string, IModel, IStyleProperty, object>) | Registers a callback function for acquiring the style value of the specified text of the editor element generated from the specified editor element definition. ・It is recommended to call it when Activating the extension. ・Style values are acquired in the following order of priority. 1. Callback function value for style value acquisition 2. Style value set in the view instance 3. Style value defined in the view definition ・To change the text color of the title text, redefine the text color in the RegisterGetStyleCallback callback function. ・The registered callback function is called in the following cases: ・An editor element is displayed ・A field value of the model referenced by the editor element is changed |
RegisterGetTextStyleCallback(string,string,TextTypes,Func<IShape, TextTypes, string, IModel, IStyleProperty, object>,StyleAttributes) | Specify the style attribute and register the callback function for acquiring the style value of the specified text of the editor element generated from the editor element definition that can be identified from the specified class. ・It is recommended to call it when Activating the extension. - Style values are obtained in the following order of priority. 1. Callback function value for retrieving style value 2. Style value set in the view instance 3. Style value defined in the view definition - To change the text color of the title text, redefine the text color in the RegisterGetStyleCallback callback function. - The registered callback function is called in the following cases: - An editor element is displayed - A field value of the model referenced by the editor element is changed Note that if the editor element definition cannot be identified from the specified class, nothing is done. |
RegisterGetTextStyleCallback(string,string,TextTypes,Func<IShape, TextTypes, string, IModel, IStyleProperty, object>) | Registers a callback function for retrieving the style value of the specified text of the editor element generated from the editor element definition that can be identified from the specified class. ・It is recommended to call it when Activating the extension. ・The style value is retrieved in the following order of priority. 1. Callback function value for retrieving the style value 2. Style value set in the view instance 3. Style value defined in the view definition ・To change the text color of the title text, redefine the text color in the callback function of RegisterGetStyleCallback. ・The registered callback function is called in the following cases. - An editor element is displayed - A field value of the model referenced by the editor element is changed Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |
RegisterTextValueCallback(IElementDef,TextTypes,Func<IShape, TextTypes, string, IModel, string>,Action<IShape, TextTypes, string, IModel, string>) | Registers a callback function for getting/setting the value of the specified text of the editor element generated from the specified editor element definition. - It is recommended to call it when Activating the extension. - The registered value retrieval callback function will be called in the following cases. ・An editor element is displayed ・A field value that matches the path of the view definition is changed in the model referenced by the editor element |
RegisterTextValueCallback(string,string,TextTypes,Func<IShape, TextTypes, string, IModel, string>,Action<IShape, TextTypes, string, IModel, string>) | Registers a callback function to get/set the value of the specified text of the editor element generated from the editor element definition that can be identified from the specified class. ・It is recommended to call it when Activating the extension. ・The registered callback function for getting the value is called in the following cases. ・An editor element is displayed ・A field value that matches the path of the view definition is changed in the model referenced by the editor element Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |
UnregisterStyleCallback(IElementDef) | Unregisters all callback functions for editor elements generated from the specified editor element definition. ・It is recommended to call this when deactivating the extension. |
UnregisterStyleCallback(string,string) | Unregisters all callback functions for editor elements generated from the editor element definition that can be identified from the specified class. ・It is recommended to call this when deactivating the extension. Note that if the editor element definition cannot be identified from the specified class, nothing will be done. |