|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.MenuContext
MenuContext Every JSP can define one MenuContext
Field Summary | |
private java.lang.String |
filter
Additional filter to filter MenuItems not needed |
private java.lang.String |
path
The current MenuPath |
Constructor Summary | |
private |
MenuContext()
Constructor An Instance of this Class only can be created with the Method getContext() |
Method Summary | |
boolean |
filter(java.lang.String itemFilter)
Helper to check if a menu item matches a filter expression. |
static MenuContext |
getContext(javax.servlet.jsp.PageContext pageContext)
Gets the actual menu context from the request. |
static MenuContext |
getContext(javax.servlet.ServletRequest request)
Gets the actual menu context from the request. |
java.lang.String |
getFilter()
Returns the filter. |
java.lang.String |
getPath()
Returns the path. |
boolean |
isSelected(java.lang.String itemPath)
Helper to check if a menu item is included in the actual path |
void |
setFilter(java.lang.String filter)
Sets the filter. |
void |
setPath(java.lang.String path)
Sets the path. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String path
private java.lang.String filter
Constructor Detail |
private MenuContext()
Method Detail |
public static MenuContext getContext(javax.servlet.jsp.PageContext pageContext)
pageContext
- PageContext
public static MenuContext getContext(javax.servlet.ServletRequest request)
request
- ServletRequest
public boolean isSelected(java.lang.String itemPath)
itemPath
- Path
public boolean filter(java.lang.String itemFilter)
itemFilter
- The filter expression.
public java.lang.String getFilter()
public java.lang.String getPath()
public void setFilter(java.lang.String filter)
filter
- The filter to setpublic void setPath(java.lang.String path)
path
- The path to setpublic java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |