public class Menu extends PersistentObject implements Comparable<Menu>
Modifier and Type | Field and Description |
---|---|
static int |
DOCUMENTS |
protected Set<MenuGroup> |
menuGroups |
Constructor and Description |
---|
Menu() |
Modifier and Type | Method and Description |
---|---|
void |
addMenuGroup(MenuGroup mg)
Adds a new element, substituting a precedin one with the same groupId.
|
void |
clearMenuGroups() |
int |
compareTo(Menu o) |
String |
getDescription() |
String |
getIcon() |
long |
getId()
Unique identifier in the data store
|
MenuGroup |
getMenuGroup(long groupId) |
long[] |
getMenuGroupIds() |
Set<MenuGroup> |
getMenuGroups() |
long |
getParentId() |
Long |
getSecurityRef() |
String |
getText() |
int |
getType() |
void |
setDescription(String description) |
void |
setIcon(String icon) |
void |
setId(long id) |
void |
setMenuGroup(long[] groups)
Adds MenuGroup object given in a String array to the ArrayList of
MenuGroups.
|
void |
setMenuGroups(Set<MenuGroup> mgroup) |
void |
setParentId(long parentId) |
void |
setSecurityRef(Long securityRef) |
void |
setText(String text) |
void |
setType(int type) |
equals, getDeleted, getLastModified, hashCode, setDeleted, setLastModified, toString
public long getId()
PersistentObject
getId
in class PersistentObject
public String getText()
public long getParentId()
public String getIcon()
public int getType()
public void clearMenuGroups()
public void setId(long id)
setId
in class PersistentObject
public void setText(String text)
public void setParentId(long parentId)
public void setIcon(String icon)
public void setType(int type)
public long[] getMenuGroupIds()
public void setMenuGroup(long[] groups)
groups
- array of group idspublic void addMenuGroup(MenuGroup mg)
public MenuGroup getMenuGroup(long groupId)
public String getDescription()
public void setDescription(String description)
public Long getSecurityRef()
public void setSecurityRef(Long securityRef)
public int compareTo(Menu o)
compareTo
in interface Comparable<Menu>
Copyright © 2008-2014 Logical Objects. All Rights Reserved.