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


Java PageReference类代码示例

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


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

示例1: UserModalPage

import org.apache.wicket.PageReference; //导入依赖的package包/类
public UserModalPage(
        final PageReference callerPageRef,
        final ModalWindow window,
        final UserTO userTO,
        final Mode mode,
        final boolean resetPassword) {

    super();

    this.callerPageRef = callerPageRef;
    this.window = window;
    this.userTO = userTO;
    this.mode = mode;
    this.resetPassword = resetPassword;

    fragment = new Fragment("userModalFrag", "userModalEditFrag", this);
    fragment.setOutputMarkupId(true);
    add(fragment);
}
 
开发者ID:ilgrosso,项目名称:oldSyncopeIdM,代码行数:20,代码来源:UserModalPage.java

示例2: EditUserModalPage

import org.apache.wicket.PageReference; //导入依赖的package包/类
public EditUserModalPage(
        final PageReference callerPageRef,
        final ModalWindow window,
        final UserTO userTO) {

    super(callerPageRef, window, userTO, Mode.ADMIN, true);

    this.initialUserTO = AttributableOperations.clone(userTO);

    Form form = setupEditPanel();

    // add resource assignment details in case of update
    if (userTO.getId() != 0) {
        final List<StatusBean> statuses = new ArrayList<StatusBean>();

        form.addOrReplace(new StatusPanel(
                "statuspanel", userTO, statuses, false));

        form.addOrReplace(
                new AccountInformationPanel("accountinformation", userTO));
    }
}
 
开发者ID:ilgrosso,项目名称:oldSyncopeIdM,代码行数:23,代码来源:EditUserModalPage.java

示例3: AnyObjectDetails

import org.apache.wicket.PageReference; //导入依赖的package包/类
public AnyObjectDetails(
        final AnyWrapper<AnyObjectTO> wrapper,
        final boolean templateMode,
        final boolean includeStatusPanel,
        final PageReference pageRef) {

    super(wrapper, templateMode, includeStatusPanel, pageRef);

    AnyObjectTO anyObjectTO = wrapper.getInnerObject();

    AjaxTextFieldPanel name =
            new AjaxTextFieldPanel("name", "name", new PropertyModel<>(anyObjectTO, "name"), false);
    if (templateMode) {
        name.enableJexlHelp();
    } else {
        name.addRequiredLabel();
    }
    this.add(name);
}
 
开发者ID:apache,项目名称:syncope,代码行数:20,代码来源:AnyObjectDetails.java

示例4: AnyObjectTemplateWizardBuilder

import org.apache.wicket.PageReference; //导入依赖的package包/类
public AnyObjectTemplateWizardBuilder(
        final TemplatableTO templatable,
        final String anyType,
        final List<String> anyTypeClasses,
        final AnyObjectFormLayoutInfo formLayoutInfo,
        final PageReference pageRef) {
    super(null, anyTypeClasses, formLayoutInfo, pageRef);
    this.templatable = templatable;

    if (templatable.getTemplates().containsKey(anyType)) {
        setItem(new AnyWrapper<>(AnyObjectTO.class.cast(templatable.getTemplates().get(anyType))));
    } else {
        AnyObjectTO anyObjectTO = new AnyObjectTO();
        anyObjectTO.setType(anyType);
        if (templatable instanceof RealmTO) {
            anyObjectTO.setRealm(String.format("'%s'", RealmTO.class.cast(templatable).getFullPath()));
        }
        setItem(new AnyWrapper<>(anyObjectTO));
    }
}
 
开发者ID:apache,项目名称:syncope,代码行数:21,代码来源:AnyObjectTemplateWizardBuilder.java

示例5: ResourceStatusDirectoryPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
public ResourceStatusDirectoryPanel(
        final BaseModal<?> baseModal,
        final MultilevelPanel multiLevelPanelRef,
        final PageReference pageRef,
        final String type,
        final ResourceTO resourceTO) {

    super(MultilevelPanel.FIRST_LEVEL_ID, pageRef);
    this.baseModal = baseModal;
    this.multiLevelPanelRef = multiLevelPanelRef;
    this.type = type;
    this.resourceTO = resourceTO;
    this.itemKeyFieldName = "key";

    initResultTable();
}
 
开发者ID:apache,项目名称:syncope,代码行数:17,代码来源:ResourceStatusDirectoryPanel.java

示例6: AnyStatusDirectoryPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
public AnyStatusDirectoryPanel(
        final BaseModal<?> baseModal,
        final MultilevelPanel multiLevelPanelRef,
        final PageReference pageRef,
        final AnyTO anyTO,
        final String itemKeyFieldName,
        final boolean statusOnly) {

    super(MultilevelPanel.FIRST_LEVEL_ID, pageRef);
    this.baseModal = baseModal;
    this.multiLevelPanelRef = multiLevelPanelRef;
    this.statusOnly = statusOnly;
    this.anyTO = anyTO;
    this.itemKeyFieldName = itemKeyFieldName;

    if (anyTO instanceof UserTO) {
        this.restClient = new UserRestClient();
    } else if (anyTO instanceof GroupTO) {
        this.restClient = new GroupRestClient();
    } else {
        this.restClient = new AnyObjectRestClient();
    }

    initResultTable();
}
 
开发者ID:apache,项目名称:syncope,代码行数:26,代码来源:AnyStatusDirectoryPanel.java

示例7: ChangePasswordModal

import org.apache.wicket.PageReference; //导入依赖的package包/类
public ChangePasswordModal(
        final BaseModal<AnyWrapper<UserTO>> baseModal,
        final PageReference pageReference,
        final UserWrapper wrapper) {
    super(baseModal, pageReference);

    this.wrapper = wrapper;

    final PasswordPanel passwordPanel = new PasswordPanel("passwordPanel", wrapper, false);
    passwordPanel.setOutputMarkupId(true);
    add(passwordPanel);

    statusModel = new ListModel<>(new ArrayList<>());
    StatusPanel statusPanel = new StatusPanel("status", wrapper.getInnerObject(), statusModel, pageReference);
    statusPanel.setCheckAvailability(ListViewPanel.CheckAvailability.AVAILABLE);
    add(statusPanel.setRenderBodyOnly(true));
}
 
开发者ID:apache,项目名称:syncope,代码行数:18,代码来源:ChangePasswordModal.java

示例8: TaskAttributesDetailsView

import org.apache.wicket.PageReference; //导入依赖的package包/类
public TaskAttributesDetailsView(final BaseModal<?> baseModal, final PropagationTaskTO taskTO,
        final PageReference pageRef) {
    super();

    Pair<String, String> info = Pair.of(taskTO.getEntityKey(), getJSONInfo(taskTO));
    JsonEditorPanel jsonPanel =
            new JsonEditorPanel(null, new PropertyModel<String>(info, "value"), true,
                    null) {

        private static final long serialVersionUID = -8927036362466990179L;

        @Override
        public void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
            modal.close(target);
        }
    };

    add(jsonPanel);

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

示例9: PushTasks

import org.apache.wicket.PageReference; //导入依赖的package包/类
public <T extends AnyTO> PushTasks(
        final BaseModal<?> baseModal, final PageReference pageReference, final String resource) {
    super(BaseModal.CONTENT_ID);

    final MultilevelPanel mlp = new MultilevelPanel("tasks");
    add(mlp);

    mlp.setFirstLevel(new PushTaskDirectoryPanel(baseModal, mlp, resource, pageReference) {

        private static final long serialVersionUID = -2195387360323687302L;

        @Override
        protected void viewTask(final PushTaskTO taskTO, final AjaxRequestTarget target) {
            mlp.next(
                    new StringResourceModel("task.view", this, new Model<>(Pair.of(null, taskTO))).getObject(),
                    new TaskExecutionDetails<>(baseModal, taskTO, pageReference), target);
        }
    });
}
 
开发者ID:apache,项目名称:syncope,代码行数:20,代码来源:PushTasks.java

示例10: SchedTasks

import org.apache.wicket.PageReference; //导入依赖的package包/类
public <T extends AnyTO> SchedTasks(final BaseModal<?> baseModal, final PageReference pageReference) {
    super(BaseModal.CONTENT_ID);

    final MultilevelPanel mlp = new MultilevelPanel("tasks");
    add(mlp);

    mlp.setFirstLevel(new SchedTaskDirectoryPanel<SchedTaskTO>(
            baseModal, mlp, SchedTaskTO.class, pageReference) {

        private static final long serialVersionUID = -2195387360323687302L;

        @Override
        protected void viewTask(final SchedTaskTO taskTO, final AjaxRequestTarget target) {
            mlp.next(
                    new StringResourceModel("task.view", this, new Model<>(Pair.of(null, taskTO))).getObject(),
                    new TaskExecutionDetails<>(baseModal, taskTO, pageReference), target);
        }
    });
}
 
开发者ID:apache,项目名称:syncope,代码行数:20,代码来源:SchedTasks.java

示例11: TaskExecutionDetails

import org.apache.wicket.PageReference; //导入依赖的package包/类
public TaskExecutionDetails(final BaseModal<?> baseModal, final T taskTO, final PageReference pageRef) {
    super();

    final MultilevelPanel mlp = new MultilevelPanel("executions");
    add(mlp);

    mlp.setFirstLevel(new ExecutionsDirectoryPanel(baseModal, mlp, taskTO.getKey(), new TaskRestClient(), pageRef) {

        private static final long serialVersionUID = 5691719817252887541L;

        @Override
        protected void next(
                final String title,
                final MultilevelPanel.SecondLevel slevel,
                final AjaxRequestTarget target) {
            mlp.next(title, slevel, target);
        }
    });
}
 
开发者ID:apache,项目名称:syncope,代码行数:20,代码来源:TaskExecutionDetails.java

示例12: ImageModalPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
public ImageModalPanel(final BaseModal<T> modal, final byte[] content, final PageReference pageRef) {
    super(modal, pageRef);

    Image image = new Image("image", new Model<IResource>()) {

        private static final long serialVersionUID = -8457850449086490660L;

        @Override
        protected IResource getImageResource() {
            return new DynamicImageResource() {

                private static final long serialVersionUID = 923201517955737928L;

                @Override
                protected byte[] getImageData(final IResource.Attributes attributes) {
                    return content;
                }
            };
        }
    };
    image.setOutputMarkupId(true);
    add(image);
}
 
开发者ID:apache,项目名称:syncope,代码行数:24,代码来源:ImageModalPanel.java

示例13: ConnInstanceHistoryConfDirectoryPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
public ConnInstanceHistoryConfDirectoryPanel(
        final BaseModal<?> baseModal,
        final MultilevelPanel multiLevelPanelRef,
        final String entityKey,
        final PageReference pageRef) {

    super(MultilevelPanel.FIRST_LEVEL_ID, pageRef, false, false);

    this.baseModal = baseModal;
    this.multiLevelPanelRef = multiLevelPanelRef;
    restClient = new ConnectorHistoryRestClient();
    setShowResultPage(false);
    disableCheckBoxes();

    this.entityKey = entityKey;
    initResultTable();
}
 
开发者ID:apache,项目名称:syncope,代码行数:18,代码来源:ConnInstanceHistoryConfDirectoryPanel.java

示例14: TypeExtensionDirectoryPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
protected TypeExtensionDirectoryPanel(
        final BaseModal<Serializable> baseModal,
        final GroupTO groupTO,
        final PageReference pageRef) {

    super(BaseModal.CONTENT_ID, pageRef, false);

    this.baseModal = baseModal;
    this.groupTO = groupTO;

    TypeExtensionWizardBuilder builder = new TypeExtensionWizardBuilder(
            groupTO,
            new TypeExtensionTO(),
            new StringResourceModel("anyType", this).getObject(),
            new StringResourceModel("auxClasses", this).getObject(),
            pageRef);
    this.addNewItemPanelBuilder(builder, true);

    setShowResultPage(false);
    initResultTable();
}
 
开发者ID:apache,项目名称:syncope,代码行数:22,代码来源:TypeExtensionDirectoryPanel.java

示例15: AbstractSchemaDetailsPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
public AbstractSchemaDetailsPanel(
        final String id,
        final PageReference pageReference,
        final AbstractSchemaTO schemaTO) {
    super(id);

    this.schemaTO = schemaTO;

    schemaForm = new Form<>(FORM);
    schemaForm.setModel(new CompoundPropertyModel<>(schemaTO));
    schemaForm.setOutputMarkupId(true);

    final AjaxTextFieldPanel name =
            new AjaxTextFieldPanel("key", getString("key"), new PropertyModel<>(schemaTO, "key"));
    name.addRequiredLabel();
    name.setEnabled(schemaTO == null || schemaTO.getKey() == null || schemaTO.getKey().isEmpty());

    schemaForm.add(name);
    add(schemaForm);
}
 
开发者ID:apache,项目名称:syncope,代码行数:21,代码来源:AbstractSchemaDetailsPanel.java


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