public class UIXRecordSection extends Object implements RecordSection
RecordSection which reads the configuration from an UIExtension xobject.| Modifier and Type | Field and Description |
|---|---|
protected List<RecordElement> |
elements |
protected boolean |
enabled |
protected boolean |
expanded |
protected org.xwiki.uiextension.UIExtension |
extension |
protected org.xwiki.uiextension.UIExtensionFilter |
orderFilter
Sorts fields by their declared order.
|
protected org.xwiki.uiextension.UIExtensionManager |
uixManager
Lists the contained fields.
|
| Constructor and Description |
|---|
UIXRecordSection(org.xwiki.uiextension.UIExtension extension,
org.xwiki.uiextension.UIExtensionManager uixManager,
org.xwiki.uiextension.UIExtensionFilter orderFilter)
Simple constructor, taking the UI
extension, the uixManager UI extension manager, and the
orderFilter UI extension filter as parameters. |
| Modifier and Type | Method and Description |
|---|---|
List<RecordElement> |
getAllElements()
The list of elements configured in this section, whether they are enabled or not.
|
List<RecordElement> |
getEnabledElements()
The list of elements displayed in this section.
|
org.xwiki.uiextension.UIExtension |
getExtension()
The extension defining this section.
|
String |
getName()
The name of this section, displayed in the record and in the form designer.
|
boolean |
isEnabled()
Whether this section and its elements are going to be displayed in the record or not.
|
boolean |
isExpandedByDefault()
Whether this section should be expanded and fully visible in edit mode by default.
|
void |
setElements(List<RecordElement> elements)
Set the list of elements configured in this section.
|
void |
setEnabled(boolean enabled)
Set whether this section and its elements are going to be displayed in the record or not.
|
void |
setExpandedByDefault(boolean expanded)
Set whether this section should be expanded and fully visible in edit mode by default.
|
String |
toString() |
protected final org.xwiki.uiextension.UIExtension extension
getExtension()protected final org.xwiki.uiextension.UIExtensionManager uixManager
protected final org.xwiki.uiextension.UIExtensionFilter orderFilter
protected boolean enabled
protected boolean expanded
protected List<RecordElement> elements
public UIXRecordSection(org.xwiki.uiextension.UIExtension extension,
org.xwiki.uiextension.UIExtensionManager uixManager,
org.xwiki.uiextension.UIExtensionFilter orderFilter)
extension, the uixManager UI extension manager, and the
orderFilter UI extension filter as parameters.extension - the UIExtension object defining this elementuixManager - the UIExtensionManager objectorderFilter - the UIExtensionFilter object for ordering sections and elementsIllegalArgumentException - if extension or uixManager or orderFilter are nullpublic org.xwiki.uiextension.UIExtension getExtension()
RecordSectiongetExtension in interface RecordSectionUIExtension objectpublic String getName()
RecordSectiongetName in interface RecordSectionpublic boolean isEnabled()
RecordSectionisEnabled in interface RecordSectiontrue if this section must be displayed, false otherwisepublic void setEnabled(boolean enabled)
RecordSectionsetEnabled in interface RecordSectionenabled - true if this section must be displayed, false otherwisepublic boolean isExpandedByDefault()
RecordSectionisExpandedByDefault in interface RecordSectiontrue if this section must be expanded, false otherwisepublic void setExpandedByDefault(boolean expanded)
RecordSectionsetExpandedByDefault in interface RecordSectionexpanded - true if this section must be expanded, false otherwisepublic List<RecordElement> getAllElements()
RecordSectiongetAllElements in interface RecordSectionelements, empty if this section doesn't have any
elementspublic List<RecordElement> getEnabledElements()
RecordSectiongetEnabledElements in interface RecordSectionenabled elements, empty if none are
configured or enabledpublic void setElements(List<RecordElement> elements)
RecordSectionsetElements in interface RecordSectionelements - the new list of elements to be included in this section, may be emptyCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.