Package org.gwtoolbox.widget.client.support.setter

Examples of org.gwtoolbox.widget.client.support.setter.ElementVisibilitySetter


            columnVisible[i] = columns[i].isShownByDefault();
            String displayValue = columnVisible[i] ? "table-cell" : "none";
            DOM.setStyleAttribute((Element) headerCell.cast(), "display", displayValue);

            CompoundValueSetter<Boolean> columnVisibleSetter = new CompoundValueSetter<Boolean>();
            columnVisibleSetter.addSetter(new ElementVisibilitySetter((Element) headerCell.cast()));
            columnVisibleSetters[i] = columnVisibleSetter;
            columnVisibleSetters[i].addSetter(new ValueSetter<Boolean>() {
                public void set(Boolean visible) {
                    repositionDragHandlers();
                }
View Full Code Here


            columns[i].getCellRenderer().render(rowCellContent, record, value, columns[i].getType());

            ElementStyleAttributeSetter widthSetter = new ElementStyleAttributeSetter(rowCellContent, "width");
            columnWidthSetters[i].addSetter(widthSetter);

            ElementVisibilitySetter visibilitySetter = new ElementVisibilitySetter((Element) cell.cast());
            columnVisibleSetters[i].addSetter(visibilitySetter);
        }
        resetRowsHeight();
    }
View Full Code Here

        contentPaddingTop = new WidgetStyleAttributeSetter(contentPane, "paddingTop");
        contentPaddingRight = new WidgetStyleAttributeSetter(contentPane, "paddingRight");
        contentPaddingBottom = new WidgetStyleAttributeSetter(contentPane, "paddingBottom");
        contentPaddingLeft = new WidgetStyleAttributeSetter(contentPane, "paddingLeft");

        contentVisibilty = new ElementVisibilitySetter(contentPane.getElement());

        sp = new SimplePanel();
        sp.setWidget(contentPane);
        main.addWidget(sp, new VerticalLayoutData("*"));

 
View Full Code Here

        contentPaddingTop = new WidgetStyleAttributeSetter(contentPane, "paddingTop");
        contentPaddingRight = new WidgetStyleAttributeSetter(contentPane, "paddingRight");
        contentPaddingBottom = new WidgetStyleAttributeSetter(contentPane, "paddingBottom");
        contentPaddingLeft = new WidgetStyleAttributeSetter(contentPane, "paddingLeft");

        contentVisibilty = new ElementVisibilitySetter(main.getCellFormatter().getElement(1, 0));

        return main;
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.support.setter.ElementVisibilitySetter

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.