• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PageReference类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: PolicyRuleDirectoryPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
protected PolicyRuleDirectoryPanel(
        final BaseModal<T> baseModal, final String policy, final PolicyType type, final PageReference pageRef) {
    super(BaseModal.CONTENT_ID, pageRef, false);

    disableCheckBoxes();

    this.baseModal = baseModal;
    this.policy = policy;
    this.restClient = new PolicyRestClient();

    enableExitButton();

    this.addNewItemPanelBuilder(
            new PolicyRuleWizardBuilder(policy, type, new PolicyRuleWrapper(true), pageRef), true);

    MetaDataRoleAuthorizationStrategy.authorize(addAjaxLink, RENDER, StandardEntitlement.POLICY_UPDATE);
    initResultTable();
}
 
开发者ID:apache,项目名称:syncope,代码行数:19,代码来源:PolicyRuleDirectoryPanel.java


示例17: GroupTemplateWizardBuilder

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

    if (templatable.getTemplates().containsKey(AnyTypeKind.GROUP.name())) {
        setItem(new GroupWrapper(GroupTO.class.cast(templatable.getTemplates().get(AnyTypeKind.GROUP.name()))));
    } else {
        GroupTO groupTO = new GroupTO();
        if (templatable instanceof RealmTO) {
            groupTO.setRealm(String.format("'%s'", RealmTO.class.cast(templatable).getFullPath()));
        }
        setItem(new GroupWrapper(groupTO));
    }
}
 
开发者ID:apache,项目名称:syncope,代码行数:19,代码来源:GroupTemplateWizardBuilder.java


示例18: ResourceHistoryConfDirectoryPanel

import org.apache.wicket.PageReference; //导入依赖的package包/类
public ResourceHistoryConfDirectoryPanel(
        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 ResourceHistoryRestClient();
    setShowResultPage(false);
    disableCheckBoxes();

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


示例19: HistoryConfDetails

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

    // remove selected conf from list
    this.availableHistoryConfTOs = availableHistoryConfTOs.stream().
            filter(object -> object.getKey().equals(selectedHistoryConfTO.getKey())).collect(Collectors.toList());
    this.selectedHistoryConfTO = selectedHistoryConfTO;

    // add current conf to list
    addCurrentInstanceConf();

    Form<?> form = initDropdownDiffConfForm();
    add(form);
    form.setVisible(!availableHistoryConfTOs.isEmpty());

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


示例20: DashboardControlPanel

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

    JobWidget job = new JobWidget("job", pageRef);
    MetaDataRoleAuthorizationStrategy.authorize(job, Component.RENDER,
            String.format("%s,%s,%s",
                    StandardEntitlement.NOTIFICATION_LIST,
                    StandardEntitlement.TASK_LIST,
                    StandardEntitlement.REPORT_LIST));
    add(job);

    ReconciliationWidget reconciliation = new ReconciliationWidget("reconciliation", pageRef);
    MetaDataRoleAuthorizationStrategy.authorize(job, Component.RENDER,
            String.format("%s,%s,%s",
                    StandardEntitlement.REPORT_EXECUTE,
                    StandardEntitlement.REPORT_READ,
                    StandardEntitlement.REPORT_LIST));
    add(reconciliation);
}
 
开发者ID:apache,项目名称:syncope,代码行数:20,代码来源:DashboardControlPanel.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CommentByLineCommentAction类代码示例发布时间:2022-05-23
下一篇:
Java MimeTokenStream类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap