Examples of AbstractTab


Examples of org.richfaces.component.AbstractTab

    }

    @Override
    protected void doEncodeChildren(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {

        AbstractTab tab = (AbstractTab) component;

        if (tab.shouldVisitChildren() && !tab.isDisabled()) {
            super.doEncodeChildren(writer, context, tab);
        }
    }
View Full Code Here

Examples of org.richfaces.component.AbstractTab

            @Override
            public VisitResult visit(FacesContext context, TogglePanelVisitState visitState) {
                AbstractTogglePanelItemInterface item = visitState.getItem();
                if (item.isRendered() && item instanceof AbstractTab) {
                    try {
                        AbstractTab tab = (AbstractTab) item;
                        writeTopTabHeader(context, w, tab);
                        writeTopTabSpacer(w, panel);
                    } catch (IOException e) {
                        throw new FacesException(e);
                    }
View Full Code Here

Examples of org.richfaces.sandbox.component.AbstractTab

            try {
                DataVisitor visitor = new AbstractTogglePanelItemVisitor(tabPanel, new AbstractTogglePanelItemVisitor.TabVisitorCallback() {
                    @Override
                    public DataVisitResult visit(AbstractTogglePanelItemInterface item)
                    {
                        AbstractTab tab = (AbstractTab) item;
                        try {
                            writeTopTabHeader(context, w, tab);
                            writeTopTabSpacer(w, tabPanel);
                        } catch (IOException e) {
                            throw new RuntimeException(e);
                        }
                        return DataVisitResult.CONTINUE;
                    }
                });
                tabPanel.walk(context, visitor, null);
            } finally {
                tabPanel.setRowKey(context, null);
            }
        } else {
            for (AbstractTogglePanelItemInterface item : ((AbstractTogglePanel) comp).getRenderedItems()) {
                AbstractTab tab = (AbstractTab) item;
                writeTopTabHeader(context, w, tab);
                writeTopTabSpacer(w, comp);
            }
        }
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.