Package overit.geocall.ui
Class UIMenu
java.lang.Object
overit.geocall.ui.UIMenu
- All Implemented Interfaces:
Serializable
This class imlements
This class implements and defines the User interface Menù, used to navigate through the different pages.
Serializable.This class implements and defines the User interface Menù, used to navigate through the different pages.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the scroll modality of the barReturns the floating state of the barReturns the type of the bar for the user currently logged in the applicationReturns the position in the hierarchyReturns the selected voice of the menuReturns theXMLTreethat defines the menu voices and structurestatic voidstatic voidvoidsetBarLayout(String layout) Sets the scroll modality of the barvoidsetBarMode(String mode) Sets the floating state of the barvoidsetPosition(String position) Sets the position in the hierarchyvoidsetSelected(String selected) Sets the selected voice of the menuvoidsetSelected(String selected, boolean adjustPosition) Sets the selected voice and eventually corrects the position in the hierarchy
-
Field Details
-
_barType
-
_barMode
-
_barLayout
-
_xmlt
-
_position
-
_selected
-
_off
protected boolean _off
-
-
Constructor Details
-
UIMenu
Creates a new instance of UIMenu- Parameters:
xmlt- TheXMLTreethat defines the global menu of the applicationbarType- The string that represents the bar type. The possible values are: 'client' and 'floating'barMode- A string that represents the floating state of the bar. The possible values are: 'lock' (not floating), 'on' (floating and visible in the screen), 'off' (floating but not currently visible in the screen)
-
UIMenu
Creates a new instance of UIMenu- Parameters:
xmlt- TheXMLTreethat defines the global menu of the applicationbarType- The string that represents the bar type. The possible values are: 'client' and 'floating'barMode- A string that represents the floating state of the taskbar. The possible values are: 'lock' (not floating), 'on' (floating and visible in the screen), 'off' (floating but not currently visible in the screen)barLayout- A string that represents the scroll modality of the bar (only for the client bar). The possible values are: 'fullScroll' (the scrollbar allows the scrolling of the entiry bar), 'fixedIdentity' (this is the default value, the scrollbar allows the scrolling of the menu voices, instead the logos and user information remain fixed), 'fixedLogo' (the scrollbar allows the scrolling of the menu voices and of the user information, instead the logos remain fixed) and 'foldableFavorites' that is the same as fixedIdentity with the feature for hide/shows the favorites box in addition.
-
-
Method Details
-
getPosition
Returns the position in the hierarchy- Returns:
- A string that defines the position
-
getSelected
Returns the selected voice of the menu- Returns:
- A string that defines the selected voice
-
getXMLTree
Returns theXMLTreethat defines the menu voices and structure- Returns:
- The tree that defines the menu
-
setSelected
Sets the selected voice of the menu- Parameters:
selected- A string that defines the selected voice
-
setPosition
Sets the position in the hierarchy- Parameters:
position- A string that defines the position
-
setSelected
Sets the selected voice and eventually corrects the position in the hierarchy- Parameters:
selected- A string that defines the selected voiceadjustPosition-trueto adjust the position,falseotherwise
-
indexer
-
indexer
-
getBarType
Returns the type of the bar for the user currently logged in the application- Returns:
- The string that represents the bar type. The possible values are: 'client' or 'floating'
-
getBarMode
Returns the floating state of the bar- Returns:
- A string that represents the floating state of the menu bar. The possible values are: 'lock' (not floating), 'on' (floating and visible in the screen), 'off' (floating but not currently visible in the screen)
-
setBarMode
Sets the floating state of the bar- Parameters:
mode- A string that represents the floating state of the bar. The possible values are: 'lock' (not floating), 'on' (floating and visible in the screen), 'off' (floating but not currently visible in the screen)
-
getBarLayout
Returns the scroll modality of the bar- Returns:
- A string that represents the scroll modality of the bar (only for the client bar). The possible values are: 'fullScroll' (the scrollbar allows the scrolling of the entiry bar), 'fixedIdentity' (this is the default value, the scrollbar allows the scrolling of the menu voices, instead the logos and user information remain fixed), 'fixedLogo' (the scrollbar allows the scrolling of the menu voices and of the user information, instead the logos remain fixed) and 'foldableFavorites' that is the same as fixedIdentity with the feature for hide/shows the favorites box in addition.
-
setBarLayout
Sets the scroll modality of the bar- Parameters:
layout- A string that represents the scroll modality of the bar (only for the client bar). The possible values are: 'fullScroll' (the scrollbar allows the scrolling of the entiry bar), 'fixedIdentity' (this is the default value, the scrollbar allows the scrolling of the menu voices, instead the logos and user information remain fixed), 'fixedLogo' (the scrollbar allows the scrolling of the menu voices and of the user information, instead the logos remain fixed) and 'foldableFavorites' that is the same as fixedIdentity with the feature for hide/shows the favorites box in addition.
-