List of usage examples for org.apache.wicket Component add
public Component add(final Behavior... behaviors)
From source file:com.googlecode.wicket.kendo.ui.form.autocomplete.AutoCompleteBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // data source // this.dataSource = new KendoDataSource("datasource" + this.selector); this.dataSource.set("serverFiltering", true); // important this.add(this.dataSource); // ajax behaviors // this.onSelectAjaxBehavior = this.newOnSelectAjaxBehavior(this); component.add(this.onSelectAjaxBehavior); }
From source file:com.googlecode.wicket.kendo.ui.form.buttongroup.ButtonGroupBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); this.onSelectAjaxBehavior = this.newOnSelectAjaxBehavior(this); component.add(this.onSelectAjaxBehavior); }
From source file:com.googlecode.wicket.kendo.ui.form.datetime.DatePickerBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); this.onChangeAjaxBehavior = this.newOnChangeAjaxBehavior(this); component.add(this.onChangeAjaxBehavior); }
From source file:com.googlecode.wicket.kendo.ui.form.dropdown.lazy.DropDownListBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // events ////from ww w . ja v a 2 s.c om this.onChangeAjaxBehavior = new OnChangeAjaxBehavior(this); component.add(this.onChangeAjaxBehavior); // data-source // this.dataSource = new KendoDataSource("datasource" + this.selector); this.add(this.dataSource); }
From source file:com.googlecode.wicket.kendo.ui.interaction.droppable.DroppableBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); this.onDropAjaxBehavior = this.newOnDropAjaxBehavior(this, this.getOnDropStatement()); component.add(this.onDropAjaxBehavior); // these events are not enabled by default to prevent unnecessary server round-trips. if (this.listener.isDragEnterEventEnabled()) { this.onDragEnterAjaxBehavior = this.newOnDragEnterAjaxBehavior(this, this.getOnDragEnterStatement()); component.add(this.onDragEnterAjaxBehavior); }/*from w w w .j a v a 2s . c o m*/ if (this.listener.isDragLeaveEventEnabled()) { this.onDragLeaveAjaxBehavior = this.newOnDragLeaveAjaxBehavior(this, this.getOnDragLeaveStatement()); component.add(this.onDragLeaveAjaxBehavior); } }
From source file:com.googlecode.wicket.kendo.ui.layout.ResponsiveBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); if (this.listener.isOpenEventEnabled()) { this.onOpenAjaxBehavior = this.newOnOpenAjaxBehavior(this); component.add(this.onOpenAjaxBehavior); }//from w w w . j a v a2 s . c o m if (this.listener.isCloseEventEnabled()) { this.onCloseAjaxBehavior = this.newOnCloseAjaxBehavior(this); component.add(this.onCloseAjaxBehavior); } }
From source file:com.googlecode.wicket.kendo.ui.repeater.listview.ListViewBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // 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); // events ////from ww w . j a v a 2 s .com if (this.listener.isSelectable()) { this.onChangeAjaxBehavior = this.newOnChangeAjaxBehavior(this, this.dataSource.getName()); component.add(this.onChangeAjaxBehavior); } }
From source file:com.googlecode.wicket.kendo.ui.scheduler.SchedulerBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); // events ////from ww w . j a v a 2 s . c o m if (this.listener.isEditEnabled()) { this.onEditAjaxBehavior = this.newOnEditAjaxBehavior(this); component.add(this.onEditAjaxBehavior); } this.onNavigateAjaxBehavior = this.newOnNavigateAjaxBehavior(this); component.add(this.onNavigateAjaxBehavior); 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); }
From source file:com.googlecode.wicket.kendo.ui.widget.accordion.AccordionBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); if (this.listener.isSelectEventEnabled()) { this.onSelectAjaxBehavior = this.newOnSelectAjaxBehavior(this); component.add(this.onSelectAjaxBehavior); }/*from w w w .j a v a 2s. c o m*/ if (this.listener.isActivateEventEnabled()) { this.onActivateAjaxBehavior = this.newOnActivateAjaxBehavior(this); component.add(this.onActivateAjaxBehavior); } if (this.listener.isExpandEventEnabled()) { this.onExpandAjaxBehavior = this.newOnExpandAjaxBehavior(this); component.add(this.onExpandAjaxBehavior); } if (this.listener.isCollapseEventEnabled()) { this.onCollapseAjaxBehavior = this.newOnCollapseAjaxBehavior(this); component.add(this.onCollapseAjaxBehavior); } }
From source file:com.googlecode.wicket.kendo.ui.widget.menu.ContextMenuBehavior.java
License:Apache License
@Override public void bind(Component component) { super.bind(component); if (this.listener.isOpenEventEnabled()) { this.onOpenAjaxBehavior = this.newOnOpenAjaxBehavior(this); component.add(this.onOpenAjaxBehavior); }/*from w ww. j av a2 s.co m*/ }