All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jpaoletti.jpm.menu.MenuItemLocation Maven / Gradle / Ivy

The newest version!
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.
 *   
 * 
 * {@code
 *         
 *             
 *             ...
 *         
 * }
 * 
* * 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: * *
 * {@code
 * 
 * 
 * 
 *     
 *     
 *     ...
 * 
 * }
 * 
* * @author jpaoletti * */ public interface MenuItemLocation { /** * Builds a custom representation of the goal of a menu item * @param item The menu item * @param params Generic parameters. * @return The representation of the link */ public Object build(MenuItem item, Object... params); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy