Backbean for template.xhtml, class for menu handling.
More...
Backbean for template.xhtml, class for menu handling.
Backbean for template.xhtml, class for menu handling
- Author
- idytrych
Definition at line 28 of file Menu.java.
cz.vutbr.fit.knot.annotations.web.Menu.Menu |
( |
| ) |
|
String cz.vutbr.fit.knot.annotations.web.Menu.getActualPage |
( |
| ) |
|
Gets identification of now displayed page
- Returns
- Returns identification of page now displayed
Definition at line 107 of file Menu.java.
boolean cz.vutbr.fit.knot.annotations.web.Menu.getIsAdmin |
( |
| ) |
|
Returns whether user is an administrator
- Returns
- If user is administrator, returns true, false otherwise
Definition at line 98 of file Menu.java.
boolean cz.vutbr.fit.knot.annotations.web.Menu.getLoggedIn |
( |
| ) |
|
Gets whether user is logged in
- Returns
- If user is logged in, returns true, false otherwise
Definition at line 89 of file Menu.java.
String cz.vutbr.fit.knot.annotations.web.Menu.isDisabled |
( |
String |
page | ) |
|
Returns whether menu item is disabled (page is now displayed)
- Parameters
-
page | Identificator of menu item |
- Returns
- If page is now displayed, returns true, false otherwise
Definition at line 76 of file Menu.java.
String cz.vutbr.fit.knot.annotations.web.Menu.logoffAction |
( |
| ) |
|
Action listener for log off menu button
- log off the user
- switch to index page
- Returns
- Returns page outcome to go to index page
Definition at line 58 of file Menu.java.
String cz.vutbr.fit.knot.annotations.web.Menu.menuAction |
( |
String |
newPage | ) |
|
Action listener for all menu buttons (except log off)
- ensure the transition
- clears errors on login page
- Parameters
-
newPage | New page to display (identification of button) |
- Returns
- Returns page outcome (identification of transition)
Definition at line 42 of file Menu.java.
void cz.vutbr.fit.knot.annotations.web.Menu.setActualPage |
( |
String |
actualPage | ) |
|
Sets page now displayed (for transitions out of menu)
- Parameters
-
actualPage | Identificator of actually displayed page |
Definition at line 116 of file Menu.java.
String cz.vutbr.fit.knot.annotations.web.Menu.actualPage = "index" |
|
private |
Page actually displayed
Definition at line 32 of file Menu.java.
The documentation for this class was generated from the following file:
- src/java/cz/vutbr/fit/knot/annotations/web/Menu.java