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

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


            columnWidths[i] = columns[i].getWidth();
            DOM.setStyleAttribute(headerCellContent, "width", columnWidths[i] + "px");
            DOM.setStyleAttribute(dragHandle.<Element>cast(), "left", (columnWidths[i] - 1) + "px");

            CompoundValueSetter<String> columnWidthSetter = new CompoundValueSetter<String>();
            columnWidthSetter.addSetter(new ElementStyleAttributeSetter(headerCellContent, "width"));
            columnWidthSetter.addSetter(new ValueSetter<String>() {
                public void set(String width) {
                    repositionDragHandlers();
                }
            });
View Full Code Here


            DOM.setStyleAttribute(rowCellContent, "textAlign", columns[i].getAlignment().getTextAlignString());
            DOM.setStyleAttribute(rowCellContent, "width", columnWidths[i] + "px");
            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);
        }
View Full Code Here

TOP

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

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.