Package overit.geocall.ux.platform
Class MenuLandingTree
java.lang.Object
overit.geocall.ux.platform.MenuLandingTree
- All Implemented Interfaces:
LandingTree
This class allows you to define landing pages for all menu's pages.
Use involves creating a subclass that has a public constructor without parameters, and defines the Lander and any other configurations for the landing.
Here is an example that expose the menu's landing pages
{@literal @}Geocall.Provider
public class BasLeandingTree extends MenuLandingTree {
public BasLeandingTree() {
super(new Lander());
}
}
In order for the pages to be published at the start of the count, you must add the
@Geocall.Provider annotation to the sub-class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SimpleLanderprotected booleanboolean flag that indicates if the page will be opened inside a geocall frame or is handled by an external container.protected Stringmode of the menu.protected Stringthe name that will be assigned to the window manager. if not specified, it will be considered theSimpleLanding.getName() -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault class's constructorprotectedMenuLandingTree(SimpleLander lander) -
Method Summary
Modifier and TypeMethodDescriptionfinal LandinggetLanding(String name) Returns the list of the landings extracted from the menu filestatic LandinggetLandingFromName(String name) Return the landing instance related to the landing name.static LandinggetLandingFromPath(String path) Return the landing instance related to the page's pathGet the menu opening mode.getWm()Get the name that will be assigned to the window manager on the page openbooleanreturns a boolean flag that indicates if the page will be opened inside a geocall frame or is handled by an external container.voidsetManaged(boolean managed) boolean flag that indicates if the page will be opened inside a geocall frame or is handled by an external container.voidsetModeMenu(String modeMenu) Set the menu opening mode.voidSet the name that will be assigned to the window manager on the page open
-
Field Details
-
lander
-
wm
the name that will be assigned to the window manager. if not specified, it will be considered theSimpleLanding.getName() -
modeMenu
mode of the menu. Possible values are:- on: the menu is visible on the page open but it will be hidden on the mouse leave
- off: the menu is not visible on the page open but can be open on the mouse over
- lock: the menu is visible on the page open and it will not disappear on the mouse leave
- none: the menu is not been present on the page
-
managed
protected boolean managedboolean flag that indicates if the page will be opened inside a geocall frame or is handled by an external container. if the page is managed, it is not registered in the window manager and therefore will not be accessible from the views panel
-
-
Constructor Details
-
MenuLandingTree
- Parameters:
lander- instance of the Lander to use to build the land.
-
MenuLandingTree
protected MenuLandingTree()Default class's constructor
-
-
Method Details
-
getLandingFromPath
Return the landing instance related to the page's path- Parameters:
path- the path of the page- Returns:
- the landing instance related to the page's path or null if there's no registered landing for that path
-
getLandingFromName
Return the landing instance related to the landing name.- Parameters:
name- name defined into the landingName attribute.- Returns:
- the landing instance related to the name of the page or null if there's no registered landing for that name.
-
getLanding
Description copied from interface:LandingTreeReturns the list of the landings extracted from the menu file- Specified by:
getLandingin interfaceLandingTree- Parameters:
name- Name- Returns:
- the list of the landings extracted from the menu file
-
getWm
Description copied from interface:LandingTreeGet the name that will be assigned to the window manager on the page open- Specified by:
getWmin interfaceLandingTree- Returns:
- the name that will be assigned to the window manager on the page open.
if not specified, it will be considered the
Landing.getName()
-
setWm
Description copied from interface:LandingTreeSet the name that will be assigned to the window manager on the page open- Specified by:
setWmin interfaceLandingTree- Parameters:
wm- the name that will be assigned to the window manager on the page open
-
getModeMenu
Description copied from interface:LandingTreeGet the menu opening mode.- Specified by:
getModeMenuin interfaceLandingTree- Returns:
- the menu opening mode. Possible values are:
- on: the menu is visible on the page open but it will be hidden on the mouse leave
- off: the menu is not visible on the page open but can be open on the mouse over
- lock: the menu is visible on the page open and it will not disappear on the mouse leave
- none: the menu is not been present on the page
-
setModeMenu
Description copied from interface:LandingTreeSet the menu opening mode.- Specified by:
setModeMenuin interfaceLandingTree- Parameters:
modeMenu- Possible values are:- on: the menu is visible on the page open but it will be hidden on the mouse leave
- off: the menu is not visible on the page open but can be open on the mouse over
- lock: the menu is visible on the page open and it will not disappear on the mouse leave
- none: the menu is not been present on the page
-
isManaged
public boolean isManaged()Description copied from interface:LandingTreereturns a boolean flag that indicates if the page will be opened inside a geocall frame or is handled by an external container. if the page is managed, it is not registered in the window manager and therefore will not be accessible from the views panel- Specified by:
isManagedin interfaceLandingTree- Returns:
trueif the page will be opened inside a geocall frame;falseif it is handled by an external container
-
setManaged
public void setManaged(boolean managed) Description copied from interface:LandingTreeboolean flag that indicates if the page will be opened inside a geocall frame or is handled by an external container. if the page is managed, it is not registered in the window manager and therefore will not be accessible from the views panel- Specified by:
setManagedin interfaceLandingTree- Parameters:
managed-trueif the page will be opened inside a geocall frame;falseif it is handled by an external container
-