Package org.fenixedu.cms.domain
Class MenuItem
java.lang.Object
pt.ist.fenixframework.core.AbstractDomainObject
org.fenixedu.cms.domain.MenuItem_Base
org.fenixedu.cms.domain.MenuItem
- All Implemented Interfaces:
Serializable,Comparable<MenuItem>,Cloneable,Wrappable,pt.ist.fenixframework.DomainObject
Models the items of a
Menu- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.core.AbstractDomainObject.SerializedForm -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<MenuItem>static final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a newMenuItemhas the last item.clone(CloneCache cloneCache) intstatic MenuItemvoiddelete()static voidgetMenu()booleanbooleanmakeWrap()booleanvoidAdds a children at a given position and shifts the existing items.voidRemoves a givenMenuItemvoidRemoves theMenuItemfrom its parent.Methods inherited from class org.fenixedu.cms.domain.MenuItem_Base
addChildren, getChildrenSet, getCreatedBy, getCreationDate, getFolder, getName, getPage, getParent, getRelationMenuItemMenuItem, getRelationMenuItemUser, getRelationMenuMenuItem, getRelationMenuTopMenuItem, getRelationPageMenuItem, getTop, getUrl, removeChildren, setCreatedBy, setCreationDate, setFolder, setMenu, setName, setPage, setParent, setPosition, setTop, setUrlMethods inherited from class pt.ist.fenixframework.core.AbstractDomainObject
checkForDeletionBlockers, deleteDomainObject, ensureOid, equals, getDeletionBlockers, getDomainModel, getExternalId, getOid, hashCode, init$Instance, makeSerializedForm, toString, writeReplace
-
Field Details
-
CREATION_DATE_COMPARATOR
-
SIGNAL_CREATED
- See Also:
-
SIGNAL_DELETED
- See Also:
-
SIGNAL_EDITED
- See Also:
-
-
Constructor Details
-
MenuItem
The loggedUsercreates a new MenuItem.- Parameters:
menu- menu
-
-
Method Details
-
getMenu
- Overrides:
getMenuin classMenuItem_Base
-
putAt
Adds a children at a given position and shifts the existing items.- Parameters:
item- theMenuItemto be added.position- the position where the item should be added.
-
remove
Removes a givenMenuItem- Parameters:
mi- the children to be removed
-
add
Adds a newMenuItemhas the last item.- Parameters:
mi- theMenuItemto be added.
-
removeFromParent
public void removeFromParent() -
getChildrenSorted
- Returns:
- the childrens sorted by position
-
getAddress
- Returns:
- the URL address to visit the item.
-
parentOrTop
public boolean parentOrTop()- Returns:
- if is parent or top
-
delete
public void delete() -
compareTo
- Specified by:
compareToin interfaceComparable<MenuItem>
-
getPosition
- Overrides:
getPositionin classMenuItem_Base
-
fixOrder
-
create
-
clone
-
makeWrap
-
makeWrap
-
isVisible
public boolean isVisible() -
isEmbedded
public boolean isEmbedded()
-