本文整理汇总了Java中org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior类的典型用法代码示例。如果您正苦于以下问题:Java AjaxFormChoiceComponentUpdatingBehavior类的具体用法?Java AjaxFormChoiceComponentUpdatingBehavior怎么用?Java AjaxFormChoiceComponentUpdatingBehavior使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AjaxFormChoiceComponentUpdatingBehavior类属于org.apache.wicket.ajax.form包,在下文中一共展示了AjaxFormChoiceComponentUpdatingBehavior类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: IndicatingAjaxRadioGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
public IndicatingAjaxRadioGroup(final String id, final IModel model, final Object forModelObjectOnly, final boolean lazyLoadData) {
super(id, model);
setOutputMarkupId(true);
if(lazyLoadData) {
this.forModelObjectOnly = forModelObjectOnly;
add(indicatorAppender);
ajaxUpdatingBehavior = new AjaxFormChoiceComponentUpdatingBehavior() {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
if(forModelObjectOnly != null && forModelObjectOnly.equals(getModelObject())) {
IndicatingAjaxRadioGroup.this.onUpdate(target);
}
}
};
add(ajaxUpdatingBehavior);
}
}
示例2: newAdapterSettingsCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
/**
*
* @return
*/
private CheckGroup<PlatformSettings> newAdapterSettingsCheckGroup() {
CheckGroup<PlatformSettings> checkGroup = new CheckGroup<>("adapterGroup",
new ArrayList<PlatformSettings>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
updateDeleteSelectedButton(target);
}
});
return checkGroup;
}
示例3: newDataCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
/**
*
* @return
*/
private CheckGroup<QMTreeNode> newDataCheckGroup() {
CheckGroup<QMTreeNode> checkGroup = new CheckGroup<>(
"dataGroup", new ArrayList<QMTreeNode>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
private static final long serialVersionUID = 7348039334236716476L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
// updateSaveSelectedButton(target);
}
});
return checkGroup;
}
示例4: newAdapterSettingsCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
/**
*
* @return
*/
private CheckGroup<AdapterSettings> newAdapterSettingsCheckGroup() {
CheckGroup<AdapterSettings> checkGroup = new CheckGroup<>(
"adapterGroup", new ArrayList<AdapterSettings>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
updateDeleteSelectedButton(target);
}
});
return checkGroup;
}
示例5: newTestLinkCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
/**
*
* @return
*/
private CheckGroup<TestLinkMetricMeasurement> newTestLinkCheckGroup() {
CheckGroup<TestLinkMetricMeasurement> checkGroup = new CheckGroup<>(
"testLinkGroup", new ArrayList<TestLinkMetricMeasurement>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
/**
*
*/
private static final long serialVersionUID = 8883909411680723312L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
updateDeleteSelectedButton(target);
}
});
return checkGroup;
}
示例6: addRadioChoiceForTimeMode
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private void addRadioChoiceForTimeMode(Form<Void> form) {
final RadioChoice<TimeMode> timeModeRadioChoice = new RadioChoice<TimeMode>("timeModeChoice", new Model<TimeMode>(), Arrays.asList(TimeMode.values()));
timeModeRadioChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(final AjaxRequestTarget target) {
timeMode = timeModeRadioChoice.getModelObject();
}
});
timeModeRadioChoice.setModelObject(TimeMode.values()[0]);
timeModeRadioChoice.setOutputMarkupId(true);
form.add(timeModeRadioChoice);
}
示例7: addRadioChoiceForFileType
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private void addRadioChoiceForFileType() {
final RadioChoice<FileType> fileTypeRadioChoice = new RadioChoice<FileType>("fileTypeChoice", new Model<FileType>(), Arrays.asList(FileType.values()));
fileTypeRadioChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(final AjaxRequestTarget target) {
fileType = fileTypeRadioChoice.getModelObject();
}
});
fileTypeRadioChoice.setModelObject(fileType);
fileTypeRadioChoice.setOutputMarkupId(true);
this.layoutForm.add(fileTypeRadioChoice);
}
示例8: buildRightHandSideValuesBasedComponents
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private void buildRightHandSideValuesBasedComponents() {
if (this.element.isRightHandSideRangeBased()) {
this.typeOfValues = "range based";
} else {
this.typeOfValues = "list based";
}
this.typeOfValuesRadioChoice = new RadioChoice<String>("typeOfValuesRadioChoice", new PropertyModel<String>(this, "typeOfValues"), new ArrayList<String>(Arrays.asList("range based", "list based"))) {
private static final long serialVersionUID = 2134778179415091830L;
@Override
public boolean isVisible() {
return FilterExpressionPanel.this.isFilterExpressionOperatorWithValues();
}
};
this.typeOfValuesRadioChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() {
private static final long serialVersionUID = 1479085520139021981L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {
if (FilterExpressionPanel.this.typeOfValues.equals("range based")) {
FilterExpressionPanel.this.element.setRightHandSideRangeBased(true);
} else {
FilterExpressionPanel.this.element.setRightHandSideRangeBased(false);
}
target.add(FilterExpressionPanel.this.table);
}
});
// typeOfValuesRadioChoice.setSuffix(" ");
this.typeOfValuesRadioChoice.setOutputMarkupId(true);
this.layoutForm.add(this.typeOfValuesRadioChoice);
this.buildRightHandSideRangeBasedComponent();
this.buildRightHandSideListBasedComponent();
}
示例9: addRadioButtons
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private void addRadioButtons()
{
radioGroup = new RadioGroup( "searchOptions", new PropertyModel( this, "selectedRadioButton" ) );
AjaxFormComponentUpdatingBehavior ajaxRadioUpdater = new AjaxFormChoiceComponentUpdatingBehavior()
{
/** Default serialVersionUID */
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate( final AjaxRequestTarget target )
{
processRadioButton( target );
}
};
radioGroup.add( ajaxRadioUpdater );
add( radioGroup );
Radio userRb = new Radio( "userRb", new Model( USERS ) );
radioGroup.add( userRb );
Radio roleRb = new Radio( "roleRb", new Model( ROLES ) );
radioGroup.add( roleRb );
Radio adminRoleRb = new Radio( "adminRoleRb", new Model( ADMIN_ROLES ) );
radioGroup.add( adminRoleRb );
Radio ouRb = new Radio( "ouRb", new Model( OUS ) );
radioGroup.add( ouRb );
Radio permRb = new Radio( "permRb", new Model( PERMS ) );
radioGroup.add( permRb );
radioGroup.setOutputMarkupId( true );
radioGroup.setRenderBodyOnly( false );
userformsearchfields.add( radioGroup );
selectedRadioButton = USERS;
addRoleSearchModal( roleRb );
addAdminRoleSearchModal( adminRoleRb );
addOUSearchModal( ouRb );
addPermSearchModal( permRb );
}
示例10: newCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private CheckGroup newCheckGroup() {
CheckGroup<User> checkGroup = new CheckGroup<>("userGroup", new ArrayList<User>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(shareToSelectedButton);
}
});
return checkGroup;
}
示例11: newProductCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
/**
*
* @return
*/
private CheckGroup<Product> newProductCheckGroup() {
CheckGroup<Product> checkGroup = new CheckGroup<>(
"productGroup", new ArrayList<Product>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
private static final long serialVersionUID = -6392535303739708646L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
updateDeleteSelectedButton(target);
}
});
return checkGroup;
}
示例12: newCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private CheckGroup<T> newCheckGroup() {
CheckGroup<T> group = new CheckGroup<>("checkGroup", new ArrayList<T>());
group.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(deleteSelectedButton);
}
});
return group;
}
示例13: newCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private CheckGroup newCheckGroup() {
CheckGroup<Team> checkGroup = new CheckGroup<>("teamGroup", new ArrayList<Team>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(deleteSelectedButton);
target.add(addSelectedButton);
}
});
return checkGroup;
}
示例14: newCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private CheckGroup newCheckGroup() {
CheckGroup<TeamMembership> checkGroup = new CheckGroup<>("membersGroup", new ArrayList<TeamMembership>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(deleteSelectedButton);
}
});
return checkGroup;
}
示例15: newCheckGroup
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior; //导入依赖的package包/类
private CheckGroup newCheckGroup() {
CheckGroup<User> checkGroup = new CheckGroup<>("userGroup", new ArrayList<User>());
checkGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(deleteSelectedButton);
}
});
return checkGroup;
}