use of com.xpn.xwiki.objects.classes.StringClass in project xwiki-platform by xwiki.
the class PropertyMetaClass method addPresentationMetaProperties.
/**
* Adds generic meta properties that control how an XClass property is displayed.
*/
private void addPresentationMetaProperties() {
StringClass prettyNameClass = new StringClass(this);
prettyNameClass.setName("prettyName");
prettyNameClass.setPrettyName("Pretty Name");
prettyNameClass.setSize(40);
safeput(prettyNameClass.getName(), prettyNameClass);
StringClass hintClass = new StringClass(this);
hintClass.setName("hint");
hintClass.setPrettyName("Hint");
hintClass.setSize(40);
safeput(hintClass.getName(), hintClass);
TextAreaClass toolTipClass = new TextAreaClass(this);
toolTipClass.setName("tooltip");
toolTipClass.setPrettyName("Tooltip");
toolTipClass.setSize(60);
toolTipClass.setRows(5);
safeput(toolTipClass.getName(), toolTipClass);
TextAreaClass customDisplayClass = new TextAreaClass(this);
customDisplayClass.setName("customDisplay");
customDisplayClass.setPrettyName("Custom Display");
customDisplayClass.setEditor("Text");
customDisplayClass.setRows(5);
customDisplayClass.setSize(80);
safeput(customDisplayClass.getName(), customDisplayClass);
}
Aggregations