Class RootMenuReader
java.lang.Object
ch.tocco.nice2.model.menu.impl.xml.RootMenuReader
-
Constructor Summary
ConstructorDescriptionRootMenuReader
(RootMenuReceiver adminMenuReceiver, DisplayValueFactory displayValueFactory, ItemFactory itemFactory, MenuItemLabelFactory labelFactory) -
Method Summary
Modifier and TypeMethodDescriptionCreate the itemvoid
finished()
Called when the element is finished when item already existsgetName()
void
setExtIcon
(String extIcon) void
void
setPosition
(int position) void
setReactIcon
(String reactIcon) Because we don't know what our children are, we just handle any sub-element and ask theItemFactory
bzw.
-
Constructor Details
-
Method Details
-
getName
-
setName
-
setExtIcon
-
setReactIcon
-
setPosition
-
tag
@AnyElement @Cardinality(min=0, max=2147483647) public Object tag(@ElementName String tagName) throws ModelBuildException Because we don't know what our children are, we just handle any sub-element and ask theItemFactory
bzw. theItemReaderContext
for the reader.- Parameters:
tagName
- the sub-tag- Returns:
- a reader for this tag if found in any case
- Throws:
ModelBuildException
-
createItem
Create the item- Returns:
- the new item in case the item already exists
- Throws:
ModelBuildException
-
finished
Called when the element is finished when item already exists- Throws:
ModelBuildException
-