Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlSubmitButton


        String buttonText = getButtonText();
        int i = 0;
        for (HtmlTableRow row : table.getRows()) {
            HtmlTableCell cell = row.createCell();
            HtmlSubmitButton htmlSubmitButton = new HtmlSubmitButton();
            htmlSubmitButton.setName(getLocalName("select" + i));
            htmlSubmitButton.setText(buttonText);
            htmlSubmitButton.setController(new ButtonsController(MetaObjectFactory.createObject(objects.get(i), null), selected));
            cell.setBody(htmlSubmitButton);
            i++;
        }

        addPreviousNextButtons(container, page, "previousAfter", "nextAfter");
View Full Code Here


    }

    private void addPreviousNextButtons(HtmlContainer container, HtmlHiddenField page, String previousName, String nextName) {
        if (this.pagedValue && getPageContainerBean().getNumberOfPages(getDefaultObjectsPerPage()) > 0) {
            if (getPageContainerBean().hasPreviousPage(getDefaultObjectsPerPage())) {
                HtmlSubmitButton previousButton = new HtmlSubmitButton();
                previousButton.setText(RenderUtils.getResourceString(getBundle(), "pages.button.previous"));
                previousButton.setName(getLocalName(previousName));
                previousButton.setController(new PreviousController(page));
                container.addChild(previousButton);
            }

            container.addChild(new HtmlText(getPageContainerBean().getPage() + " / "
                    + getPageContainerBean().getNumberOfPages(getDefaultObjectsPerPage())));

            if (getPageContainerBean().hasNextPage(getDefaultObjectsPerPage())) {
                HtmlSubmitButton nextButton = new HtmlSubmitButton();
                nextButton.setText(RenderUtils.getResourceString(getBundle(), "pages.button.next"));
                nextButton.setName(getLocalName(nextName));
                nextButton.setController(new NextController(page));
                container.addChild(nextButton);
            }
        }
    }
View Full Code Here

            photoCell.setBody(checkBox);

            HtmlTableRow row3 = htmlTable.createRow();
            HtmlTableCell submitCell = row3.createCell();
            submitCell.setColspan(headerRow.getCells().size());
            submitCell.setBody(new HtmlSubmitButton(BundleUtil.getString(Bundle.APPLICATION, "button.selectShift")));

            return htmlTable;
        }
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.components.HtmlSubmitButton

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.