public class LevelsClass extends ListClass
ListClass.MapComparatorDEFAULT_SEPARATOR, DISPLAYTYPE_CHECKBOX, DISPLAYTYPE_INPUT, DISPLAYTYPE_RADIO, DISPLAYTYPE_SELECT, FREE_TEXT_ALLOWED, FREE_TEXT_DISCOURAGED, FREE_TEXT_FORBIDDEN, SEPARATOR_ESCAPEcachedCustomDisplayercurrentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolverdocumentReference, ownerDocument, referenceCache| Constructor and Description |
|---|
LevelsClass() |
LevelsClass(PropertyMetaClass wclass) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayEdit(StringBuffer buffer,
String name,
String prefix,
BaseCollection object,
XWikiContext context) |
void |
fromList(BaseProperty<?> property,
List<String> list)
Set the passed
List into the passed property. |
BaseProperty |
fromString(String value) |
BaseProperty |
fromStringArray(String[] strings) |
List<String> |
getList(XWikiContext context) |
static List<String> |
getListFromString(String value) |
Map<String,ListItem> |
getMap(XWikiContext context) |
String |
getText(String value,
XWikiContext context) |
<T extends EntityReference> |
mergeProperty(BaseProperty<T> currentProperty,
BaseProperty<T> previousProperty,
BaseProperty<T> newProperty,
MergeConfiguration configuration,
XWikiContext xcontext,
MergeResult mergeResult)
Apply a 3 ways merge on passed current, previous and new version of the same property.
|
BaseProperty |
newProperty() |
BaseProperty |
newPropertyfromXML(org.dom4j.Element ppcel) |
List<String> |
toList(BaseProperty<?> property)
ListClass does not produce only ListPropertys and this method allows to access the value as
List whatever property is actually storing it. |
displayHidden, displayRadioEdit, displaySelectEdit, displayView, getDefaultValue, getDisplayType, getDisplayValue, getDisplayValue, getElementValue, getFreeText, getListFromString, getMapFromString, getSeparator, getSeparators, getSize, getSort, getStringFromList, getStringFromList, isCache, isLargeStorage, isMultiSelect, isPicker, isRelationalStorage, mergeNotOrderedListProperty, setCache, setDefaultValue, setDisplayType, setFreeText, setLargeStorage, setMultiSelect, setPicker, setRelationalStorage, setSeparator, setSeparators, setSize, setSort, toFormStringclone, compareTo, createReference, displayCustom, displayEdit, displayEdit, displayHidden, displayHidden, displayView, displayView, flushCache, fromValue, fromXML, getCachedDefaultCustomDisplayer, getClassName, getClassType, getCustomDisplay, getDefaultCustomDisplayer, getFieldFullName, getFullQueryPropertyName, getHint, getId, getName, getNumber, getObject, getPrettyName, getPrettyName, getTooltip, getTooltip, getTranslatedPrettyName, getValidationMessage, getValidationRegExp, getXClass, getxWikiClass, initLazyCollections, isCustomDisplayed, isDisabled, isUnmodifiable, isValidColumnTypes, renderContentInContext, renderContentInContext, setClassType, setCustomDisplay, setDisabled, setHint, setId, setName, setNumber, setObject, setPrettyName, setTooltip, setUnmodifiable, setValidationMessage, setValidationRegExp, setxWikiClass, toFormString, toString, toXML, toXML, validatePropertyaddField, addPropertyForRemoval, apply, equals, get, getCurrentReferenceDocumentReferenceResolver, getCustomMappingMap, getDateValue, getDiff, getDoubleValue, getField, getFieldList, getFieldsToRemove, getFloatValue, getIntValue, getIntValue, getLargeStringValue, getListValue, getLongValue, getProperties, getPropertyList, getPropertyNames, getRelativeEntityReferenceResolver, getRelativeXClassReference, getSetValue, getSortedIterator, getStringValue, getXClassReference, merge, merge, mergeField, put, removeField, safeget, safeput, setClassName, setDateValue, setDBStringListValue, setDocumentReference, setDoubleValue, setFields, setFieldsToRemove, setFloatValue, setIntValue, setLargeStringValue, setLongValue, setOwnerDocument, setSetValue, setStringListValue, setStringValue, setXClassReference, toXMLStringfromXML, getDocumentReference, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getOwnerDocument, getReference, getXWikiContext, hashCode, localizePlain, localizePlainOrKey, toString, toXMLStringfinalize, getClass, notify, notifyAll, wait, wait, waitget, put, safeget, safeputapply, getDocumentReference, getReference, merge, setDocumentReference, toStringpublic LevelsClass(PropertyMetaClass wclass)
public LevelsClass()
public List<String> getList(XWikiContext context)
public Map<String,ListItem> getMap(XWikiContext context)
public BaseProperty newProperty()
newProperty in interface PropertyClassInterfacenewProperty in class ListClasspublic BaseProperty fromString(String value)
fromString in interface PropertyClassInterfacefromString in class ListClasspublic BaseProperty fromStringArray(String[] strings)
fromStringArray in class ListClasspublic String getText(String value, XWikiContext context)
public void displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
displayEdit in interface PropertyClassInterfacedisplayEdit in class ListClasspublic BaseProperty newPropertyfromXML(org.dom4j.Element ppcel)
newPropertyfromXML in class ListClasspublic List<String> toList(BaseProperty<?> property)
ListClassListClass does not produce only ListPropertys and this method allows to access the value as
List whatever property is actually storing it.
There is no guarantees the returned List will be modifiable.
public void fromList(BaseProperty<?> property, List<String> list)
ListClassList into the passed property.public <T extends EntityReference> void mergeProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext xcontext, MergeResult mergeResult)
PropertyClassmergeProperty in class ListClasscurrentProperty - the current version of the element and the one to modifypreviousProperty - the previous version of the elementnewProperty - the new version of the propertyconfiguration - the configuration of the merge Indicate how to deal with some conflicts use cases, etc.xcontext - the XWiki contextmergeResult - the merge reportCopyright © 2004–2021 XWiki. All rights reserved.