当前位置: 首页>>代码示例>>Java>>正文


Java AjaxFormChoiceComponentUpdatingBehavior类代码示例

本文整理汇总了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);
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:21,代码来源:IndicatingAjaxRadioGroup.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:22,代码来源:PlatformSettingsPage.java

示例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;
	}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:20,代码来源:SubsetProposalPanel.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:22,代码来源:AdapterManagementPage.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:22,代码来源:TestFrameworkDataManagementPage.java

示例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);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:CategoryPanel.java

示例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);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:UploadPanel.java

示例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("&nbsp;");
	this.typeOfValuesRadioChoice.setOutputMarkupId(true);
	this.layoutForm.add(this.typeOfValuesRadioChoice);

	this.buildRightHandSideRangeBasedComponent();
	this.buildRightHandSideListBasedComponent();
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:36,代码来源:FilterExpressionPanel.java

示例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 );
}
 
开发者ID:apache,项目名称:directory-fortress-commander,代码行数:39,代码来源:UserListPanel.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:11,代码来源:DashboardSharePage.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:19,代码来源:ProductManagementPage.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:11,代码来源:MetaDataEditPanel.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:12,代码来源:TeamListPage.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:11,代码来源:TeamEditPage.java

示例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;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:11,代码来源:UserListPage.java


注:本文中的org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。