Package de.xima.fc.gui.model.designer
Class FormVariable
java.lang.Object
de.xima.fc.gui.model.designer.FormVariable
- All Implemented Interfaces:
Serializable
Models a form variable that can be created in the form designer.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FormVariablefromPersistJson(com.alibaba.fastjson.JSONObject variable) Converts the JSON representation from the form designer to a form variable model.static List<FormVariable>fromPersistJsonArray(com.alibaba.fastjson.JSONArray variables) Converts the JSON representation from the form designer to a form variable model.getAlias()getName()booleantoString()
-
Constructor Details
-
FormVariable
- Parameters:
name- Value returned bygetName()alias- Value returned bygetAlias()serverSide- Value returned byisServerSide()
-
-
Method Details
-
getAlias
- Returns:
- The alias of the variable.
-
getName
- Returns:
- The name of the variable.
-
isServerSide
public boolean isServerSide()- Returns:
- Whether the variable is available only on the server.
-
toString
-
fromPersistJson
Converts the JSON representation from the form designer to a form variable model.- Parameters:
variable- JSON object from the form designer persist representing one variable.- Returns:
- The given variable converted to a
FormVariable.
-
fromPersistJsonArray
Converts the JSON representation from the form designer to a form variable model.- Parameters:
variables- JSON array from the form designer persist.- Returns:
- The given variables converted to
FormVariables.
-