Java Doc for Menu.java in  » Web-Framework » argun » biz » hammurapi » web » menu » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » argun » biz.hammurapi.web.menu 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


biz.hammurapi.web.menu.Menu

Menu
public class Menu extends XmenuImpl implements DataAccessObject,RequestMatcher,ChainedContext(Code)


Field Summary
final public static  StringMT_FORM_HANDLER
    
final public static  StringMT_RESOURCE
    
final public static  StringMT_ROOT
    

Constructor Summary
public  Menu()
    
public  Menu(boolean force)
    
public  Menu(Element holder, boolean force)
    
public  Menu(Element holder, Properties nameMap, CachedXPathAPI cxpa, boolean force)
    
public  Menu(ResultSet rs)
    

Method Summary
public  booleanenabled()
    
public static  StringescapeHtml(String txt)
    
public  voidevalGuard(HttpServletRequest request)
    
public  MenufindByGuid(String id)
    
public  MenufindById(int id)
    
public  MenufindByXid(String xid)
    
public  HelpfindHelp(String id, Context context)
    
public  MenufindItem(String path)
     Finds menu item by path, XID or GUID.
public  MenufindItemById(String id)
    
 HelpfindTerm(String term, Set idSet, Context context)
     Invoked by Help to navigate menu tree.
public  Objectget(String key)
    
public  Objectget(String key, Context chain)
    
public  Objectget(String key, String[] parameters, Context chain)
     Get with parameters for MenuNavigator to expand ${...|...|...|...} templates.
Parameters:
  key - Context key
Parameters:
  parameters - Parameters , addressed by number, e.g.
public  MenugetAction(String name)
    
public  ObjectgetAttribute(Object key)
     Walks up the hierarchy until finds the needed attribute.
public  CachegetCache()
    
public  MenugetChild(String name)
    
public  CollectiongetChildren()
    
public  ObjectgetEngine()
    
public  GenerationPolicygetGenerationPolicy()
    
public  HelpgetHelp(Context context)
    
public  MenuHelpTopicsgetHelpTopic(String name, Context context)
    
protected  InjectingClassLoadergetInjectingClassLoader()
    
public  intgetInteractionOffset()
     Id's for menu items for interactions shall be formed as interaction id + interaction offset + ref offset.
protected  InterfacePoolgetInterfacePool()
    
public  intgetLastMatch()
    
public  StringgetMatchParameter(String name)
    
Parameters:
  name - First value of given parameter at the time when item was matched.
public  String[]getMatchParameters(String name)
    
Parameters:
  name - Values of given parameter at the time when item was matched.
public  MenugetParentMenu()
    
public  Menu[]getPath()
    
public  MenugetRoot()
    
public  ObjectgetRuntimeEngine()
    
public  ObjectgetRuntimeEngine(HttpServletRequest request, HttpServletResponse response)
    
public  CollectiongetTemplateNames()
    
public  booleanhasHelp()
    
public  ObjectinstantiateTemplate(String templateName, Map context)
     Instantiates template with given context.
public static  booleanisBlank(String str)
    
public  booleanisMatchQueryString()
    
public  Listmatch(HttpServletRequest request)
    
public  intnextVirtualId()
    
protected  voidsetLastMatch(int match)
     Sets match number in self and parents.
public  voidsetSQLProcessor(SQLProcessor processor)
     Loads dependent objects.
public  booleanstart(AuthorizationProvider authorizationProvider, Context context)
     Starts root menu.
public  voidstop()
    
public  voidtoDom(Element holder, HttpServletRequest request)
    

Field Detail
MT_FORM_HANDLER
final public static String MT_FORM_HANDLER(Code)



MT_RESOURCE
final public static String MT_RESOURCE(Code)



MT_ROOT
final public static String MT_ROOT(Code)




Constructor Detail
Menu
public Menu()(Code)



Menu
public Menu(boolean force)(Code)



Menu
public Menu(Element holder, boolean force) throws ConfigurationException(Code)



Menu
public Menu(Element holder, Properties nameMap, CachedXPathAPI cxpa, boolean force) throws ConfigurationException(Code)



Menu
public Menu(ResultSet rs) throws SQLException(Code)




Method Detail
enabled
public boolean enabled()(Code)
true if there is no guard or if the guard evaluated to not false for the given thread.



escapeHtml
public static String escapeHtml(String txt)(Code)



evalGuard
public void evalGuard(HttpServletRequest request)(Code)



findByGuid
public Menu findByGuid(String id)(Code)



findById
public Menu findById(int id)(Code)



findByXid
public Menu findByXid(String xid)(Code)



findHelp
public Help findHelp(String id, Context context)(Code)



findItem
public Menu findItem(String path)(Code)
Finds menu item by path, XID or GUID.
Parameters:
  path -



findItemById
public Menu findItemById(String id)(Code)



findTerm
Help findTerm(String term, Set idSet, Context context)(Code)
Invoked by Help to navigate menu tree.
Parameters:
  term -
Parameters:
  idSet -



get
public Object get(String key)(Code)



get
public Object get(String key, Context chain)(Code)
Chained get



get
public Object get(String key, String[] parameters, Context chain)(Code)
Get with parameters for MenuNavigator to expand ${...|...|...|...} templates.
Parameters:
  key - Context key
Parameters:
  parameters - Parameters , addressed by number, e.g. parameter 0 is addressed as ${0}
Parameters:
  chain - Chain context key value



getAction
public Menu getAction(String name)(Code)



getAttribute
public Object getAttribute(Object key)(Code)
Walks up the hierarchy until finds the needed attribute.



getCache
public Cache getCache()(Code)



getChild
public Menu getChild(String name)(Code)



getChildren
public Collection getChildren()(Code)
true if this item has sub-items



getEngine
public Object getEngine()(Code)



getGenerationPolicy
public GenerationPolicy getGenerationPolicy()(Code)



getHelp
public Help getHelp(Context context)(Code)
Root help descriptor for this item.



getHelpTopic
public MenuHelpTopics getHelpTopic(String name, Context context)(Code)



getInjectingClassLoader
protected InjectingClassLoader getInjectingClassLoader()(Code)



getInteractionOffset
public int getInteractionOffset()(Code)
Id's for menu items for interactions shall be formed as interaction id + interaction offset + ref offset. Interaction offset



getInterfacePool
protected InterfacePool getInterfacePool()(Code)



getLastMatch
public int getLastMatch()(Code)
max of last match of this item and parent item(s)



getMatchParameter
public String getMatchParameter(String name)(Code)

Parameters:
  name - First value of given parameter at the time when item was matched. Parent matchedparameters are inherited.



getMatchParameters
public String[] getMatchParameters(String name)(Code)

Parameters:
  name - Values of given parameter at the time when item was matched. Parent matchedparameters are inherited.



getParentMenu
public Menu getParentMenu()(Code)



getPath
public Menu[] getPath()(Code)
path to this item.



getRoot
public Menu getRoot()(Code)
Root menu



getRuntimeEngine
public Object getRuntimeEngine()(Code)
Generated engine instance, which combinesmethods from engine class and functions.



getRuntimeEngine
public Object getRuntimeEngine(HttpServletRequest request, HttpServletResponse response)(Code)

Parameters:
  request -
Parameters:
  response - Runtime engine, which is aware of its invocation context.



getTemplateNames
public Collection getTemplateNames()(Code)



hasHelp
public boolean hasHelp()(Code)
true if there are help topics associated with the menu item.



instantiateTemplate
public Object instantiateTemplate(String templateName, Map context)(Code)
Instantiates template with given context. The context must contain "menuContext" entry.
Parameters:
  templateName -
Parameters:
  context -



isBlank
public static boolean isBlank(String str)(Code)



isMatchQueryString
public boolean isMatchQueryString()(Code)



match
public List match(HttpServletRequest request)(Code)



nextVirtualId
public int nextVirtualId()(Code)
Next virtual id number for menu.



setLastMatch
protected void setLastMatch(int match)(Code)
Sets match number in self and parents.
Parameters:
  match -



setSQLProcessor
public void setSQLProcessor(SQLProcessor processor) throws SQLException(Code)
Loads dependent objects.



start
public boolean start(AuthorizationProvider authorizationProvider, Context context) throws HammurapiWebException(Code)
Starts root menu.



stop
public void stop() throws ConfigurationException(Code)



toDom
public void toDom(Element holder, HttpServletRequest request)(Code)
Renders menu to DOM
Parameters:
  request -
Parameters:
  holder -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.