View Poll Results: Is the javadoc for VerticalPanel.setSpacing adequate?

Voters
1. You may not vote on this poll
  • yes

    0 0%
  • no

    1 100.00%
Results 1 to 3 of 3

Thread: VerticalPanel.setSpacing.

  1. #1
    Ext GWT Premium Member jorel2's Avatar
    Join Date
    Apr 2010
    Location
    Durham, NC
    Posts
    161

    Default VerticalPanel.setSpacing.

    ANYONE WANT TO GIVE ME CLUE WHAT setSpacing does?
    I'm going to read the source code now...but was hoping to avoid that.
    thanks.
    Joel

    from javadoc
    ***************************************************************
    void com.extjs.gxt.ui.client.widget.VerticalPanel.setSpacing(int spacing)
    Sets the panel's spacing.

    Parameters:
    spacing the spacing
    ****************************************************************

  2. #2
    Ext GWT Premium Member jorel2's Avatar
    Join Date
    Apr 2010
    Location
    Durham, NC
    Posts
    161

    Default

    Jorel2,

    You could just trace the method through its call to TableLayout and through to gwt.dom.client.TableElement where it clearly shows this:

    /**
    * Specifies the horizontal and vertical separation between cells.
    *
    * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-cellspacing">W3C HTML Specification</a>
    */
    public final native void setCellSpacing(int cellSpacing) /*-{
    this.cellSpacing = cellSpacing;
    }-*/;


    and thus you could go here to see the W3C explanation for 'spacing'.

    Try that Jorel2...it just might pan out.

    thanks,
    Jorel1

  3. #3
    Ext GWT Premium Member jorel2's Avatar
    Join Date
    Apr 2010
    Location
    Durham, NC
    Posts
    161

    Cool

    Jorel1,

    Yeah, that is good advice...hmmm...seems like the abstraction is at too low a level though by the time that method makes its way back up to VerticalPanel...by then it should be a property called 'margin' (not 'spacing')...but then I guess that would be confusing to people who don't think in CSS terms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •