Package de.xima.fc.form.common.models
Class XButtonDescriptor
- java.lang.Object
-
- de.xima.fc.form.common.models.XButtonDescriptor
-
- All Implemented Interfaces:
Serializable
public final class XButtonDescriptor extends Object implements Serializable
Encapsulates the JSON object of a button of aXButtonList
and provides access to the button's properties.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XButtonDescriptor(XItem buttonList, com.alibaba.fastjson.JSONObject jsonObject)
XButtonDescriptor(XItemRenderData renderData, com.alibaba.fastjson.JSONObject jsonObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Iterable<XButtonDescriptor>
eachButton(XItem buttonList)
XButtonActionDescriptor
getAction()
String
getButtonListId()
String
getButtonListName()
String
getI18nTitle(IXFormRenderConfig config)
String
getI18nValue(IXFormRenderConfig config)
String
getName()
String
getTitle()
String
getValue()
String
toString()
-
-
-
Constructor Detail
-
XButtonDescriptor
public XButtonDescriptor(XItem buttonList, com.alibaba.fastjson.JSONObject jsonObject)
-
XButtonDescriptor
public XButtonDescriptor(XItemRenderData renderData, com.alibaba.fastjson.JSONObject jsonObject)
-
-
Method Detail
-
getAction
public XButtonActionDescriptor getAction()
-
getButtonListId
public String getButtonListId()
-
getButtonListName
public String getButtonListName()
-
getI18nTitle
public String getI18nTitle(IXFormRenderConfig config)
-
getI18nValue
public String getI18nValue(IXFormRenderConfig config)
-
getName
public String getName()
-
getTitle
public String getTitle()
-
getValue
public String getValue()
-
eachButton
public static Iterable<XButtonDescriptor> eachButton(XItem buttonList)
- Parameters:
buttonList
- A form item of typeXButtonList
.- Returns:
- All buttons of the given button list.
-
-