Package org.zeroexchange.web.components

Examples of org.zeroexchange.web.components.AbstractTab


        add(getContractForm());

        //User mutual credits tab
        if(contractInformant.getUserContributionPrice(contract, authorizedUserService.getCurrentUser(),
                moneyManager.getDefaultCurrency()).compareTo(BigDecimal.ZERO) < 0) {
            addTab(TABALIAS_USER_CREDITS, new AbstractTab(new ResourceModel(MKEY_USER_CREDITS)) {
                private static final long serialVersionUID = 1L;
   
                @Override
                public WebMarkupContainer getPanel(String containerId) {
                    return new CreditorsPanel(containerId, new Model<Contract>(contract));
                }
               
            });
        }
       
        if(contractStatus == ContractStatus.UNCOMPLETED || userInvitationReader.hasInvitations(contract)) {
            addTab(TABALIAS_INVITATIONS, new AbstractTab(new ResourceModel(MKEY_INVITATIONS)) {
                private static final long serialVersionUID = 1L;
   
                @Override
                public WebMarkupContainer getPanel(String containerId) {
                    return new InvitationsPanel(containerId, new Model<Contract>(contract));
View Full Code Here


        });
        statusSign.setOutputMarkupId(true);
        add(statusSign);
       
        // Resources list tab
        addTab(TABALIAS_ALL_CONTRACT_RESOURCES, new AbstractTab(new ResourceModel(MKEY_ALL_CONTRACT_RESOURCES)) {
            private static final long serialVersionUID = 1L;

            @Override
            public WebMarkupContainer getPanel(String containerId) {
                return new ContractResourcesPanel(containerId, new Model<Contract>(getContract()));
            }
           
        });
        addTab(TABALIAS_GANTT, new AbstractTab(new ResourceModel(MKEY_GANTT)) {
            private static final long serialVersionUID = 1L;

            @Override
            public WebMarkupContainer getPanel(String panelId) {
                return new GanttChartPanel(panelId);
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    protected void initUI() {
        //User profile tab
        addTab(TABALIAS_USER_PROFILE, new AbstractTab(new ResourceModel(MKEY_USER_PROFILE)) {
            private static final long serialVersionUID = 1L;

            @Override
            public WebMarkupContainer getPanel(String containerId) {
                return new UserProfilePanel(containerId);
            }
        });
       
        //User summary tab
        addTab(TABALIAS_USER_SUMMARY, new AbstractTab(new ResourceModel(MKEY_USER_SUMMARY)) {
            private static final long serialVersionUID = 1L;

            @Override
            public WebMarkupContainer getPanel(String containerId) {
                return new UserSummaryPanel(containerId);
            }
        });

        //User messages tab
        addTab(TABALIAS_USER_MESSAGES, new AbstractTab(new ResourceModel(MKEY_USER_MESSAGES)) {
            private static final long serialVersionUID = 1L;

            @Override
            public WebMarkupContainer getPanel(String containerId) {
                return new UserMessagesPanel(containerId);
            }
        });

        //User skills tab
        addTab(TABALIAS_USER_SKILLS, new AbstractTab(new ResourceModel(MKEY_USER_SKILLS)) {
            private static final long serialVersionUID = 1L;

            @Override
            public WebMarkupContainer getPanel(String containerId) {
                return new UserSkillsPanel(containerId);
View Full Code Here

            } else {
                //We have more then one resource action panel
                final List<ITab> tabs = new ArrayList<ITab>();
                for(final ResourceAction action: userActions) {
                    IModel<String> tabTitleModel = getTabTitleModel(action);
                    tabs.add(new AbstractTab(tabTitleModel) {
                        private static final long serialVersionUID = 1L;
           
                        @Override
                        public WebMarkupContainer getPanel(String componentId) {
                            return getResourceActionPanel(componentId, action);
View Full Code Here

TOP

Related Classes of org.zeroexchange.web.components.AbstractTab

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.