Package org.zeroexchange.web.components.link

Examples of org.zeroexchange.web.components.link.PageLinkPanel


            @Override
            public void populateItem(Item<ICellPopulator<Resource>> cellItem,
                    String componentId, IModel<Resource> rowModel) {
                Resource resource = rowModel.getObject();
                Contract contract = resource.getContract();
                cellItem.add(new PageLinkPanel(componentId, EditContract.class,
                        new Model<String>(contract.getTitle()),
                        new PageParameters().add(EditContract.PARAM_CONTRACT_ID, contract.getId())));
            }
        });
        return columns;
View Full Code Here


            toolbarActions.add(new ToolbarItem() {
                private static final long serialVersionUID = 1L;

                @Override
                public Component getComponent(String componentId) {
                    return new PageLinkPanel(componentId, UserSelection.class, new ResourceModel(MKEY_INVITE),
                            new PageParameters().add(
                                    UserSelection.PKEY_TARGET, SKEY_SELECTED_USERS));
                }
            });
        }
View Full Code Here

            private static final long serialVersionUID = 1L;

            @Override
            public void populateItem(Item<ICellPopulator<Skill>> cellItem,
                    String componentId, IModel<Skill> rowModel) {
                cellItem.add(new PageLinkPanel(componentId, EditSkill.class, new Model<String>(rowModel.getObject().getTitle()),
                        new PageParameters().add(EditSkill.PARAM_SKILL_ID, rowModel.getObject().getId())));
            }
           
        });
        columns.add(new AbstractColumn<Skill, String>(new ResourceModel(MKEY_SKILL_DESCRIPTION)) {
View Full Code Here

        items.add(new ToolbarItem() {
            private static final long serialVersionUID = 1L;

            @Override
            public Component getComponent(String toolbarItemId) {
                return new PageLinkPanel(toolbarItemId, EditSkill.class, new ResourceModel(MKEY_ADD_SKILL));
            }
        });
        return items;
    }
View Full Code Here

        items.add(new ToolbarItem() {
            private static final long serialVersionUID = 1L;

            @Override
            public Component getComponent(String toolbarItemId) {
                return new PageLinkPanel(
                        toolbarItemId, AddUserCreditPage.class,
                        new ResourceModel(MKEY_ADD_CREDIT_LINE));
            }
        });
        return items;
View Full Code Here

        items.add(new ToolbarItem() {
            private static final long serialVersionUID = 1L;

            @Override
            public Component getComponent(String componentId) {
                return new PageLinkPanel(
                        componentId, CreateMessage.class, new ResourceModel(MKEY_CREATE_MESSAGE), null);
            }
        });
       
        // 'Delete message' action
View Full Code Here

                        new PipedMap<String, String>().putObject("displayName", userName)));
            }
        }).setEscapeModelStrings(false));

        // New messages info panel
        newMessagesLabel = new PageLinkPanel(CKEY_NEW_MESSAGES_INFO, UserMaintenance.class, new StringResourceModel(MKEY_NEW_MESSAGES_INFO, null) {
            /** */
            private static final long serialVersionUID = 1L;
            private Object[] parameters = new Object[1];

            @Override
View Full Code Here

            @Override
            public void populateItem(Item<ICellPopulator<User>> cellItem,
                    String componentId, IModel<User> rowModel) {
                final User user = rowModel.getObject();
                cellItem.add(new PageLinkPanel(componentId, ViewUserProfile.class, new ResourceModel(MKEY_VIEW_PROFILE),
                        new PageParameters().add(ViewUserProfile.PKEY_USER_ID, user.getId())));
            }

            @Override
            public String getCssClass() {
View Full Code Here

TOP

Related Classes of org.zeroexchange.web.components.link.PageLinkPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.