List of usage examples for org.apache.wicket.util.reference ClassReference of
public static <T> ClassReference<T> of(Class<T> clazz)
From source file:com.googlecode.wicket.jquery.ui.plugins.sfmenu.AbstractSfMenuItem.java
License:Apache License
/** * Constructor/*from w w w .ja va 2 s. co m*/ * * @param title {@link IModel} that represent the title of the menu-item * @param pageClass the class of the page to redirect to when menu-item is clicked */ public AbstractSfMenuItem(IModel<String> title, Class<? extends Page> pageClass) { Args.notNull(pageClass, "pageClass"); this.title = title; this.pageClassReference = ClassReference.of(pageClass); this.pageParameters = new PageParameters(); this.pageUrl = null; }
From source file:com.googlecode.wicket.jquery.ui.plugins.sfmenu.AbstractSfMenuItem.java
License:Apache License
/** * Constructor/*from w ww . jav a 2s .co m*/ * * @param title {@link IModel} that represent the title of the menu-item * @param pageClass the class of the page to redirect to when menu-item is clicked * @param pageParameters the {@link PageParameters} */ public AbstractSfMenuItem(IModel<String> title, Class<? extends Page> pageClass, PageParameters pageParameters) { Args.notNull(pageClass, "pageClass"); this.title = title; this.pageClassReference = ClassReference.of(pageClass); this.pageParameters = pageParameters; this.pageUrl = null; }
From source file:com.googlecode.wicket.kendo.ui.widget.menu.item.PageMenuItem.java
License:Apache License
/** * Constructor//from w w w. j av a 2s . c o m * * @param title IModel that represent the title of the menu-item * @param icon either a {@link KendoIcon} constant or a 'k-i-<i>icon</i>' css class * @param pageClass the {@link Page} class * @param parameters the {@link PageParameters} */ public PageMenuItem(IModel<String> title, String icon, Class<? extends Page> pageClass, PageParameters parameters) { super(title, icon, RequestCycle.get().urlFor(pageClass, parameters)); this.pageReference = ClassReference.of(pageClass); }