Package org.rhq.core.gui.table.component

Examples of org.rhq.core.gui.table.component.SelectedRowsCommandButtonComponent


public class SelectedRowsCommandButtonRenderer extends AbstractButtonRenderer {
    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        super.encodeBegin(context, component);

        SelectedRowsCommandButtonComponent selectedRowsCommandButton = (SelectedRowsCommandButtonComponent) component;

        ResponseWriter writer = context.getResponseWriter();

        Integer minimum = selectedRowsCommandButton.getMinimum();
        writer.writeAttribute("minimum", minimum, "minimum");

        Integer maximum = selectedRowsCommandButton.getMaximum();
        if (maximum != null) {
            writer.writeAttribute("maximum", maximum, "maximum");
        }

        UIData data = getTargetUIData(selectedRowsCommandButton);
View Full Code Here


        writer.writeAttribute("target", rowSelectorClientId, null);       
    }

    @Override
    protected void renderBooleanAttributes(ResponseWriter writer, UIComponent component) throws IOException {
        SelectedRowsCommandButtonComponent selectedRowsCommandButton = (SelectedRowsCommandButtonComponent) component;
       
        Integer minimum = selectedRowsCommandButton.getMinimum();
        // If the minimum is > 0, which is the typical case, render the button as disabled.
        // *NOTE* We are making the assumption that no rows are selected by default, which
        // is how the RowSelectorRenderer renders things.
        if (minimum > 0) {
            writer.writeAttribute("disabled", true, "disabled");
View Full Code Here

TOP

Related Classes of org.rhq.core.gui.table.component.SelectedRowsCommandButtonComponent

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.