Revision: 7215 Author: [email protected] Date: Mon Nov 30 20:51:14 2009 Log: Review feedback, add HasHorizontalAlignment and HasVerticalAlignment
http://code.google.com/p/google-web-toolkit/source/detail?r=7215 Modified: /trunk/user/src/com/google/gwt/user/client/ui/CellPanel.java /trunk/user/src/com/google/gwt/user/client/ui/HasHorizontalAlignment.java /trunk/user/src/com/google/gwt/user/client/ui/HasVerticalAlignment.java /trunk/user/src/com/google/gwt/user/client/ui/UIObject.java ======================================= --- /trunk/user/src/com/google/gwt/user/client/ui/CellPanel.java Mon Nov 30 20:49:52 2009 +++ /trunk/user/src/com/google/gwt/user/client/ui/CellPanel.java Mon Nov 30 20:51:14 2009 @@ -25,24 +25,27 @@ * cell's size may be set independently. Each child widget can take up a subset * of its cell and can be aligned within it. * - * <h3>In UiBinder templates</h3> - * + * <h3>Use in UiBinder Templates</h3> + * <P> * When working with CellPanel subclasses in * {...@link com.google.gwt.uibinder.client.UiBinder UiBinder} templates, wrap * child widgets in <code><g:cell></code> elements. (Note the lower case * "c", meant to signal that the cell is not a runtime object, and so cannot * have a <code>ui:field</code> attribute.) Cell elements can have - * attributes setting their height, width and alignment: + * attributes setting their height, width and alignment. + * <h4><g:cell> attributes</h4> * <p> * <dl> * <dt>horizontalAlignment - * <dd>Values interpreted as the static members of {...@link HorizontalAlignmentConstant} + * <dd>Interpreted as a static member of {...@link HorizontalAlignmentConstant} + * and used as the <code>align</code> argument to {...@link #setCellHorizontalAlignment} * <dt>verticalAlignment - * <dd>Values interpreted as the static members of {...@link VerticalAlignmentConstant} + * <dd>Interpreted as a static member of {...@link VerticalAlignmentConstant} + * and used as the <code>align</code> argument to {...@link #setCellVerticalAlignment} * <dt>width - * <dd>Values used as the width argument to {...@link #setCellWidth} + * <dd>Used as the <code>width</code> argument to {...@link #setCellWidth} * <dt>height - * <dd>Values used as the height argument to {...@link #setCellHeight} + * <dd>Used as the <code>height</code> argument to {...@link #setCellHeight} * </dl> * <p> * For example:<pre> ======================================= --- /trunk/user/src/com/google/gwt/user/client/ui/HasHorizontalAlignment.java Wed Jun 25 08:05:37 2008 +++ /trunk/user/src/com/google/gwt/user/client/ui/HasHorizontalAlignment.java Mon Nov 30 20:51:14 2009 @@ -21,11 +21,24 @@ /** * Characteristic interface which indicates that a widget can be aligned * horizontally. + * + * <h3>Use in UiBinder Templates</h3> + * + * <p> + * The names of the static members of {...@link HorizontalAlignmentConstant} + * can be used as values for a <code>horizontalAlignment</code> attribute + * of any widget that implements this interface. (In fact, this will work + * for any widget method that takes a single HorizontalAlignmentConstant value.) + * <p> + * For example,<pre> + * <g:Label horizontalAlignment='ALIGN_RIGHT'>Hi there.</g:Label> + * </pre> */ public interface HasHorizontalAlignment { /** * Horizontal alignment constant. + * */ public static class HorizontalAlignmentConstant { private String textAlignString; ======================================= --- /trunk/user/src/com/google/gwt/user/client/ui/HasVerticalAlignment.java Tue Jan 29 15:05:28 2008 +++ /trunk/user/src/com/google/gwt/user/client/ui/HasVerticalAlignment.java Mon Nov 30 20:51:14 2009 @@ -15,9 +15,24 @@ */ package com.google.gwt.user.client.ui; + /** * Characteristic interface which indicates that a widget has an associated * vertical alignment. + * + * <h3>Use in UiBinder Templates</h3> + * + * <p> + * The names of the static members of {...@link VerticalAlignmentConstant} can + * be used as values for a <code>verticalAlignment</code> attribute of any + * widget that implements this interface. (In fact, this will work for any + * widget method that takes a single VerticalAlignmentConstant value.) + * <p> + * For example, + * + * <pre> + * <g:VerticalPanel verticalAlignment='ALIGN_BOTTOM' /> + * </pre> */ public interface HasVerticalAlignment { ======================================= --- /trunk/user/src/com/google/gwt/user/client/ui/UIObject.java Mon Nov 30 20:49:52 2009 +++ /trunk/user/src/com/google/gwt/user/client/ui/UIObject.java Mon Nov 30 20:51:14 2009 @@ -81,7 +81,7 @@ * {...@link #addStyleName(String)} for details. * </p> * - * <h3>In UiBinder templates</h3> + * <h3>Use in UiBinder Templates</h3> * <p> * Setter methods that follow JavaBean property conventions are exposed as * attributes in {...@link com.google.gwt.uibinder.client.UiBinder UiBinder} -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
