Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jpaoletti.jpm.menu;

This simple interface represents a MenuItem location, that is "where should this item points in the menu?" This is an abstraction of a location, and must be implemented on each PM implementation.
 <menu-item text="xxxx" perm="xxxx">
             <location id="some_location_id" value="some_value" />
             ...
         </menu-item>
 
 
Each implementation of this interface must be defined in a location file with the id and class that implements this interface. The idea is that each location builds its own "pointer" on each menu leaf. The configuration file for locations has this general form:
 <?xml version='1.0' ?>
 <!DOCTYPE entity SYSTEM "location.dtd">
 <locations>
     <location id="yyyyy" class="jpaoletti.jpm.yyyy.MenuItemLocationXxxxx"/>
     <location id="xxxxx" class="jpaoletti.jpm.xxxx.MenuItemLocationYyyyy"/>
     ...
 </locations>
 
 

Author(s):
jpaoletti
public interface MenuItemLocation {

    
Builds a custom representation of the goal of a menu item

Parameters:
item The menu item
params Generic parameters.
Returns:
The representation of the link
    public Object build(MenuItem itemObject... params);
New to GrepCode? Check out our FAQ X