• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java WizardModel类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.wicket.extensions.wizard.WizardModel的典型用法代码示例。如果您正苦于以下问题:Java WizardModel类的具体用法?Java WizardModel怎么用?Java WizardModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

WizardModel类属于org.apache.wicket.extensions.wizard包,在下文中一共展示了WizardModel类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initLayout

点赞 3

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
private void initLayout() {
      WizardModel wizardModel = new ResourceWizardModel(this);
if (!configurationOnly) {
	wizardModel.add(new NameStep(modelRaw, this));
}
      wizardModel.add(new ConfigurationStep(modelNoFetch, this));
if (!configurationOnly) {
	wizardModel.add(new SchemaStep(modelFull, this));
	wizardModel.add(new SchemaHandlingStep(modelFull, this));
	wizardModel.add(new SynchronizationStep(modelFull, this));
	wizardModel.add(new CapabilityStep(modelFull, this));
}

      Wizard wizard = new Wizard(ID_WIZARD, new Model<>(wizardModel), issuesModel);
      wizard.setOutputMarkupId(true);
      add(wizard);
  }
 

开发者ID:Pardus-Engerek,
项目名称:engerek,
代码行数:18,
代码来源:PageResourceWizard.java

示例2: buildModelSteps

点赞 3

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final ResourceProvision modelObject, final WizardModel wizardModel) {
    wizardModel.add(new ObjectType(modelObject));
    wizardModel.add(new AuxClasses(modelObject));

    Mapping mapping = new Mapping(modelObject);
    mapping.setOutputMarkupId(true);

    ItemTransformersTogglePanel itemTransformers = new ItemTransformersTogglePanel(mapping, pageRef);
    addOuterObject(itemTransformers);
    JEXLTransformersTogglePanel jexlTransformers = new JEXLTransformersTogglePanel(mapping, pageRef);
    addOuterObject(jexlTransformers);
    if (modelObject.getProvisionTO() != null && modelObject.getProvisionTO().getMapping() == null) {
        modelObject.getProvisionTO().setMapping(new MappingTO());
    }
    mapping.add(new ResourceMappingPanel(
            "mapping", resourceTO, adminRealm, modelObject, itemTransformers, jexlTransformers));

    wizardModel.add(mapping);

    wizardModel.add(new ConnObjectLink(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:24,
代码来源:ProvisionWizardBuilder.java

示例3: buildModelSteps

点赞 3

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final Serializable modelObject, final WizardModel wizardModel) {
    ResourceTO resourceTO = ResourceTO.class.cast(modelObject);
    wizardModel.add(new ResourceDetailsPanel(resourceTO, createFlag));
    wizardModel.add(new ResourceConnConfPanel(resourceTO, createFlag) {

        private static final long serialVersionUID = -1128269449868933504L;

        @Override
        protected Pair<Boolean, String> check(final AjaxRequestTarget target) {
            return resourceRestClient.check(modelObject);
        }

        @Override
        protected void onComponentTag(final ComponentTag tag) {
            tag.append("class", "scrollable-tab-content", " ");
        }

    });
    wizardModel.add(new ResourceConnCapabilitiesPanel(
            resourceTO, connectorRestClient.read(resourceTO.getConnector()).getCapabilities()));

    wizardModel.add(new ResourceSecurityPanel(resourceTO));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:26,
代码来源:ResourceWizardBuilder.java

示例4: buildModelSteps

点赞 3

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final SAML2IdPTO modelObject, final WizardModel wizardModel) {
    wizardModel.add(new IdP(modelObject));

    Mapping mapping = new Mapping(modelObject);
    mapping.setOutputMarkupId(true);

    ItemTransformersTogglePanel mapItemTransformers = new ItemTransformersTogglePanel(mapping, pageRef);
    addOuterObject(mapItemTransformers);
    JEXLTransformersTogglePanel jexlTransformers = new JEXLTransformersTogglePanel(mapping, pageRef);
    addOuterObject(jexlTransformers);
    mapping.add(new SAML2IdPMappingPanel("mapping", modelObject, mapItemTransformers, jexlTransformers));

    wizardModel.add(mapping);

    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:18,
代码来源:SAML2IdPWizardBuilder.java

示例5: initWizard

点赞 3

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
private void initWizard() {
    setDefaultModel(new CompoundPropertyModel<ScheduleWizard>(this));
    
    WizardModel model = new WizardModel();
    model.add(new ScheduleNameStep(), editNotRunNowCondition);
    model.add(new ScheduleRuntimeStep());
    model.add(new ScheduleJobStep(), notRunNowCondition);
    if (moduleLicence.isValid(NextServerModuleLicence.BATCH_MODULE)) {
    	model.add(new ScheduleBatchStep(), batchCondition);
    }
    model.add(new ScheduleDestinationsStep());
                    
    if (runNow) {
    	finishSteps = new int[] {1,2,3};
    } else {
    	finishSteps = new int[] {2,3,4};
    }        

    // initialize the wizard with the wizard model we just built
    init(model);
}
 

开发者ID:nextreports,
项目名称:nextreports-server,
代码行数:22,
代码来源:ScheduleWizard.java

示例6: ProjectWizardPanel

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
/**
 *
 * @param id
 */
public ProjectWizardPanel(String id){
	super(id, false);   // disable default wizard stylesheets 

	long randomId = UUID.randomUUID().toString().hashCode();
	project = new Project("Project", String.format("prj-%s", randomId));

	user = UQasar.getSession().getLoggedInUser();   
	if (user.getCompany() != null) {
		company = companyService.getById(user.getCompany().getId());
		project.setCompany(company);
	}

	wizard = new WizardModel();
	step1 = new WizardStep1();
	step2 = new WizardStep2();
	step3 = new WizardStep3();
	step4 = new WizardStep4();
	step5 = new WizardStep5();
	step6 = new WizardStep6();
	step7 = new WizardStep7();

	wizard.add(step1);
	wizard.add(step2);
	wizard.add(step3);
	wizard.add(step4);
	wizard.add(step5);
	wizard.add(step6);
	wizard.add(step7);
	init(wizard);
}
 

开发者ID:U-QASAR,
项目名称:u-qasar.platform,
代码行数:35,
代码来源:ProjectWizardPanel.java

示例7: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final NotificationWrapper modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Details(modelObject));
    wizardModel.add(new Recipients(modelObject));
    wizardModel.add(new Events(modelObject));
    wizardModel.add(new Abouts(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:9,
代码来源:NotificationWizardBuilder.java

示例8: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final SchedTaskTO modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Profile(modelObject));
    if (modelObject instanceof PushTaskTO) {
        wrapper = new PushTaskWrapper(PushTaskTO.class.cast(modelObject));
        wizardModel.add(new PushTaskFilters(wrapper));
    }
    wizardModel.add(new Schedule(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:11,
代码来源:SchedTaskWizardBuilder.java

示例9: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(
        final ReportletWrapper modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Profile(modelObject));
    wizardModel.add(new Configuration(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:8,
代码来源:ReportletWizardBuilder.java

示例10: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final RoleWrapper modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Details(modelObject));
    wizardModel.add(new Entitlements(modelObject.getInnerObject()));
    wizardModel.add(new Realms(modelObject.getInnerObject()));
    wizardModel.add(new DynRealms(modelObject.getInnerObject()));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:9,
代码来源:RoleWizardBuilder.java

示例11: build

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
/**
 * Build the wizard.
 *
 * @param id component id.
 * @param mode wizard mode.
 * @return wizard.
 */
public AjaxWizard<T> build(final String id, final AjaxWizard.Mode mode) {
    this.mode = mode;

    // get the specified item if available
    final T modelObject = newModelObject();

    return new AjaxWizard<T>(id, modelObject, buildModelSteps(modelObject, new WizardModel()), mode, this.pageRef) {

        private static final long serialVersionUID = 7770507663760640735L;

        @Override
        protected void onCancelInternal() {
            AjaxWizardBuilder.this.onCancelInternal(modelObject);
        }

        @Override
        protected Pair<Serializable, Serializable> onApplyInternal(final AjaxRequestTarget target) {
            Serializable res = AjaxWizardBuilder.this.onApplyInternal(modelObject);

            Serializable payload;
            switch (mode) {
                case CREATE:
                    payload = getCreateCustomPayloadEvent(res, target);
                    break;
                case EDIT:
                case TEMPLATE:
                    payload = getEditCustomPayloadEvent(res, target);
                    break;
                default:
                    payload = null;
            }

            return Pair.of(payload, res);
        }
    }.setEventSink(eventSink).addOuterObject(outerObjects);
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:44,
代码来源:AjaxWizardBuilder.java

示例12: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final RealmTO modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Realm(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:6,
代码来源:RealmWizardBuilder.java

示例13: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final ParametersForm modelObject, final WizardModel wizardModel) {
    wizardModel.add(new ParametersCreateWizardSchemaStep(modelObject));
    wizardModel.add(new ParametersCreateWizardAttrStep(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:7,
代码来源:ParametersCreateWizardPanel.java

示例14: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final ReportTO modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Profile(modelObject));
    wizardModel.add(new Schedule(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:7,
代码来源:ReportWizardBuilder.java

示例15: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final PolicyRuleWrapper modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Profile(modelObject));
    wizardModel.add(new Configuration(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:7,
代码来源:PolicyRuleWizardBuilder.java

示例16: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final AnyWrapper<A> modelObject, final WizardModel wizardModel) {
    // optional details panel step
    final Details<A> details = addOptionalDetailsPanel(modelObject);
    if (details != null) {
        wizardModel.add(details);
    }

    if ((this instanceof GroupWizardBuilder)
            && (modelObject.getInnerObject() instanceof GroupTO)
            && (formLayoutInfo instanceof GroupFormLayoutInfo)) {

        GroupFormLayoutInfo groupFormLayoutInfo = GroupFormLayoutInfo.class.cast(formLayoutInfo);
        if (groupFormLayoutInfo.isOwnership()) {
            wizardModel.add(new Ownership(GroupWrapper.class.cast(modelObject), pageRef));
        }
        if (groupFormLayoutInfo.isDynamicMemberships()) {
            wizardModel.add(new DynamicMemberships(GroupWrapper.class.cast(modelObject)));
        }
    }

    if (formLayoutInfo.isAuxClasses()) {
        wizardModel.add(new AuxClasses(modelObject, anyTypeClasses));
    }

    if (formLayoutInfo.isGroups()) {
        wizardModel.add(new Groups(modelObject, mode == AjaxWizard.Mode.TEMPLATE));
    }

    // attributes panel steps
    if (formLayoutInfo.isPlainAttrs()) {
        wizardModel.add(new PlainAttrs(
                modelObject,
                null,
                mode,
                anyTypeClasses,
                formLayoutInfo.getWhichPlainAttrs()) {

            private static final long serialVersionUID = 8167894751609598306L;

            @Override
            public PageReference getPageReference() {
                return pageRef;
            }

        });
    }
    if (formLayoutInfo.isDerAttrs() && mode != AjaxWizard.Mode.TEMPLATE) {
        wizardModel.add(new DerAttrs(
                modelObject, anyTypeClasses, formLayoutInfo.getWhichDerAttrs()));
    }
    if (formLayoutInfo.isVirAttrs()) {
        wizardModel.add(new VirAttrs(
                modelObject, mode, anyTypeClasses, formLayoutInfo.getWhichVirAttrs()));
    }

    // role panel step (just available for users)
    if ((this instanceof UserWizardBuilder)
            && (modelObject.getInnerObject() instanceof UserTO)
            && (formLayoutInfo instanceof UserFormLayoutInfo)
            && UserFormLayoutInfo.class.cast(formLayoutInfo).isRoles()) {

        wizardModel.add(new Roles(modelObject));
    }

    // relationship panel step (available for users and any objects)
    if (((formLayoutInfo instanceof UserFormLayoutInfo)
            && UserFormLayoutInfo.class.cast(formLayoutInfo).isRelationships())
            || ((formLayoutInfo instanceof AnyObjectFormLayoutInfo)
            && AnyObjectFormLayoutInfo.class.cast(formLayoutInfo).isRelationships())) {

        wizardModel.add(new Relationships(modelObject, pageRef));
    }

    // resource panel step
    if (formLayoutInfo.isResources()) {
        wizardModel.add(new Resources(modelObject));
    }

    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:82,
代码来源:AnyWizardBuilder.java

示例17: buildModelSteps

点赞 2

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
@Override
protected WizardModel buildModelSteps(final TypeExtensionTO modelObject, final WizardModel wizardModel) {
    wizardModel.add(new Details(modelObject));
    return wizardModel;
}
 

开发者ID:apache,
项目名称:syncope,
代码行数:6,
代码来源:TypeExtensionWizardBuilder.java

示例18: buildModelSteps

点赞 1

import org.apache.wicket.extensions.wizard.WizardModel; //导入依赖的package包/类
protected abstract WizardModel buildModelSteps(final T modelObject, final WizardModel wizardModel); 

开发者ID:apache,
项目名称:syncope,
代码行数:2,
代码来源:AjaxWizardBuilder.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)