List of usage examples for org.apache.wicket Component add
public Component add(final Behavior... behaviors)
From source file:com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); component.add(this.onStopBehavior = this.newOnStopBehavior()); }
From source file:com.googlecode.wicket.jquery.ui.kendo.datatable.DataTableBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // buttons // for (ColumnButton button : this.getButtons()) { component.add(this.newButtonAjaxBehavior(this, button)); }/* w w w .ja va2 s . c o m*/ }
From source file:com.googlecode.wicket.jquery.ui.widget.accordion.AccordionBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); component.add(this.activateEventBehavior = this.newActivateEventBehavior()); }
From source file:com.googlecode.wicket.jquery.ui.widget.dialog.DialogBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); for (DialogButton button : this.getButtons()) { component.add(this.newButtonAjaxBehavior(this, button)); }/*ww w. j a v a 2 s . c om*/ if (this.isDefaultCloseEventEnabled()) { component.add(this.onDefaultClose = this.newDefaultCloseBehavior()); } }
From source file:com.googlecode.wicket.jquery.ui.widget.tabs.TabsBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); component.add(this.activateEventBehavior = this.newActivateEventBehavior()); if (this.isOnActivatingEventEnabled()) { component.add(this.activatingEventBehavior = this.newActivatingEventBehavior()); }/*from w ww .j ava 2s .c o m*/ }
From source file:com.googlecode.wicket.jquery.ui.widget.tooltip.CustomTooltipBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); component.add(AttributeModifier.replace("data-tooltip", true)); this.selector = JQueryWidget.getSelector(component); this.setOption("items", Options.asString("[data-tooltip]")); this.setOption("content", String.format("function() { return %s; }", this.render(this.newContent(CONTENT_ID)))); }
From source file:com.googlecode.wicket.kendo.ui.console.ConsoleBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); component.add(AttributeModifier.append("class", CSS_CLASS)); }
From source file:com.googlecode.wicket.kendo.ui.datatable.column.AjaxPropertyColumn.java
License:Apache License
/** * Bind this column to the given component. * //ww w .j a v a2s . c o m * @param component the {@link Component} */ private final void bind(Component component) { component.add(new AjaxTemplateBehavior()); }
From source file:com.googlecode.wicket.kendo.ui.datatable.DataTableBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // grid events // this.onCancelAjaxBehavior = this.newOnCancelAjaxBehavior(this); component.add(this.onCancelAjaxBehavior); // data source // this.onCreateAjaxBehavior = this.newOnCreateAjaxBehavior(this); component.add(this.onCreateAjaxBehavior); this.onUpdateAjaxBehavior = this.newOnUpdateAjaxBehavior(this); component.add(this.onUpdateAjaxBehavior); this.onDeleteAjaxBehavior = this.newOnDeleteAjaxBehavior(this); component.add(this.onDeleteAjaxBehavior); // toolbar buttons // for (ToolbarButton button : this.getToolbarButtons()) { if (!button.isBuiltIn()) { component.add(this.newToolbarAjaxBehavior(this, button)); }/*from w ww. java 2 s . c om*/ } // column buttons // for (CommandButton button : this.getCommandButtons()) { if (!button.isBuiltIn()) { component.add(this.newCommandAjaxBehavior(this, button)); } } }
From source file:com.googlecode.wicket.kendo.ui.dataviz.ChartBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // data source // this.dataSource = new ChartDataSource(component); this.add(this.dataSource); // events ////w w w .j a v a2s .c o m if (this.listener.isSeriesClickEventEnabled()) { this.onSeriesClickAjaxBehavior = this.newOnSeriesClickAjaxBehavior(this); component.add(this.onSeriesClickAjaxBehavior); } }