public class XMLMenu extends AbstractStyledElement
TYPE_NONE
Constructor and Description |
---|
XMLMenu()
Constructor.
|
XMLMenu(ArticlesModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDefaultMenuItem(short itemType)
Add a default menu item to the menu.
|
void |
addMenuItem(AbstractMenuItem item)
Add a menu item to the menu.
|
java.util.List<java.lang.String> |
getCustomMenu()
Return the additional custom HTML menu.
|
java.util.List<AbstractMenuItem> |
getMenuItems()
Return the menu items.
|
boolean |
hasCustomMenu()
Return true if the menu has a custom HTML content.
|
boolean |
hasCustomMenuItems()
Return true if the menu has custom menu items.
|
boolean |
hasFixedMenuOptions()
Return true if the options in the menu are always present.
|
boolean |
hasGlossaryItem()
Return true if the menu has a custom glossary item.
|
boolean |
hasMenuItems()
Return true if the menu has menu items.
|
void |
initDefaultContent()
Initialize the default content.
|
boolean |
isEmpty()
Return true if the menu is empty.
|
void |
setCustomMenu(java.util.List<java.lang.String> customMenu)
Set an additional custom HTML menu.
|
void |
setDefaultContent(boolean hasDefaultContent)
Set if the menu must have a default content.
|
void |
setFixedMenuOptions(boolean fixedMenuOptions)
Set if the options in the menu are always present.
|
getCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaration, getStyle, hasInlinedStyle, setCustomStyles
public XMLMenu(ArticlesModel model)
model
- the articles modelpublic XMLMenu()
public void setFixedMenuOptions(boolean fixedMenuOptions)
fixedMenuOptions
- true if the options in the menu are always presentpublic boolean hasFixedMenuOptions()
public void initDefaultContent()
public void setDefaultContent(boolean hasDefaultContent)
hasDefaultContent
- true if the menu must have a default contentpublic boolean hasCustomMenu()
public boolean isEmpty()
public boolean hasMenuItems()
public boolean hasCustomMenuItems()
public boolean hasGlossaryItem()
public boolean addDefaultMenuItem(short itemType)
itemType
- the menu item typeDefaultMenuItem
public void addMenuItem(AbstractMenuItem item)
item
- the menu itempublic java.util.List<AbstractMenuItem> getMenuItems()
public void setCustomMenu(java.util.List<java.lang.String> customMenu)
customMenu
- the additional custom HTML menupublic java.util.List<java.lang.String> getCustomMenu()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence