Package ch.tocco.nice2.model.menu.api
Class AbstractMenuItemReader<T extends MenuItem>
java.lang.Object
ch.tocco.nice2.model.menu.api.AbstractMenuItemReader<T>
- Direct Known Subclasses:
ActionMenuReader
,AdminMenuReader
,EntityExplorerReader
,FlowReader
Abstract implementation for every menu item reader. If you are interested
in adding a new kind of menu items, please look in the wiki. It is described
there.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ItemReaderContext
protected DisplayValueFactory
protected String
protected ItemFactory
protected DisplayValue
protected MenuItemLabelFactory
protected T
protected String
protected String
protected boolean
protected boolean
protected int
protected String
protected AdminMenuReceiver
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMenuItemReader
(String menuType, MenuItemLabelFactory labelFactory, ItemFactory itemFactory, DisplayValueFactory displayValueFactory, AdminMenuReceiver receiver) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
finished()
Called when the element is finished when item already existsprotected abstract T
getImpl()
void
setExtIcon
(String extIcon) void
void
setNewClientDisabled
(boolean disabled) void
setOldClientDisabled
(boolean disabled) 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.
-
Field Details
-
receiver
-
displayValueFactory
-
itemFactory
-
labelFactory
-
ctx
-
name
-
label
-
extIcon
-
reactIcon
-
position
protected int position -
oldClientDisabled
protected boolean oldClientDisabled -
newClientDisabled
protected boolean newClientDisabled
-
-
Constructor Details
-
Method Details
-
setName
-
setPosition
-
setExtIcon
-
setReactIcon
-
setOldClientDisabled
-
setNewClientDisabled
-
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
-
getImpl
-
getInterface
-
finished
Called when the element is finished when item already exists- Throws:
ModelBuildException
-
beforeFinish
- Throws:
ModelBuildException
-
afterFinish
- Throws:
ModelBuildException
-