List of usage examples for org.apache.wicket Component add
public Component add(final Behavior... behaviors)
From source file:org.objetdirect.wickext.core.commons.WickextPluginInstantiationListener.java
License:Open Source License
private void manageUi(Component component, WickextPlugin wickextPlugin) { if (wickextPlugin.getClass().getAnnotation(WickextUIPlugin.class) != null) { component.add(new HeaderContributor(new IHeaderContributor() { private static final long serialVersionUID = -5771330091411079097L; public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(CoreUIJavaScriptResourceReference.get()); }// w ww . j a va 2s. c om })); component.add(new HeaderContributor(new IHeaderContributor() { private static final long serialVersionUID = 1L; public void renderHead(IHeaderResponse response) { // applying current theme response.renderCSSReference(themeResource); } })); } }
From source file:org.objetdirect.wickext.core.commons.WickextPluginInstantiationListener.java
License:Open Source License
private void manage(Component component) { // import of jquery core libs component.add(new HeaderContributor(new CoreJavaScriptHeaderContributor())); }
From source file:org.objetdirect.wickext.core.effects.EffectBehavior.java
License:Open Source License
@Override public void bind(Component component) { super.bind(component); this.component = component; component.add(new HeaderContributor(new CoreJavaScriptHeaderContributor())); }
From source file:org.objetdirect.wickext.core.javascript.JsQuery.java
License:Open Source License
/** * Adds this statement as a {@link HeaderContributor} for the given * component./*w ww . j av a 2 s. c o m*/ */ public void contribute(Component component) { this.component = component; component.add(new HeaderContributor(this)); }
From source file:org.odlabs.wiquery.core.javascript.JsQuery.java
License:Open Source License
/** * Adds this statement as Behavior to the component. When the page or ajax request is * rendered this statement will be added. * /* w ww . j a v a 2 s.c om*/ * @deprecated use {@link Component#add(Behavior...)}. */ @Deprecated public void contribute(Component component) { component.add(this); }
From source file:org.odlabs.wiquery.ui.themes.ThemeUiHelper.java
License:Open Source License
/** * Method to display into your component an error text * //from w w w. ja va2 s . co m * @param component * Wicket component */ public static void errorText(Component component) { component.add(AttributeModifier.append("class", "ui-state-error ui-corner-all")); }
From source file:org.odlabs.wiquery.ui.themes.ThemeUiHelper.java
License:Open Source License
/** * Method to decorate your button//w ww . j a v a 2 s .c o m * * @param component * Wicket component */ public static void buttonRounded(Component component) { component.add(AttributeModifier.append("class", "ui-state-default ui-corner-all")); }
From source file:org.odlabs.wiquery.ui.themes.ThemeUiHelper.java
License:Open Source License
/** * Method to decorate your button/*from w ww. j ava 2 s .co m*/ * * @param component * Wicket component */ public static void buttonRoundedFocused(Component component) { component.add(AttributeModifier.append("class", "ui-state-default ui-corner-all ui-state-focus")); }
From source file:org.odlabs.wiquery.ui.themes.ThemeUiHelper.java
License:Open Source License
/** * Method to decorate your container (div, span ...) * /*w w w .jav a 2 s. com*/ * @param component * Wicket component */ public static void componentRounded(Component component) { component.add(AttributeModifier.append("class", "ui-widget ui-widget-content ui-corner-all")); }
From source file:org.odlabs.wiquery.ui.themes.ThemeUiHelper.java
License:Open Source License
/** * Method to display into your component a highlighted text * /*from w ww . j a v a 2 s .c o m*/ * @param component * Wicket component */ public static void highlightedText(Component component) { component.add(AttributeModifier.append("class", "ui-state-highlight ui-corner-all")); }