Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gwtext.client.core
Class Margins

    java.lang.Object
      com.gwtext.client.core.JsObject
          com.gwtext.client.core.Margins

    public class Margins

extends JsObject

Class that represents the margins of an element.

Field Summary

Fields inherited from class com.gwtext.client.core.JsObject
`jsObj`

Constructor Summary
`Margins(int top, int left, int right, int bottom)` Create a new Margins instance.

Method Summary
`int` | `getBottom()`
`int` | `getLeft()`
`int` | `getRight()`
`java.lang.String` | `getStyleString()` Return the margins as a CSS style string.
`int` | `getTop()`

Methods inherited from class com.gwtext.client.core.JsObject
`getJsObj, getProperties, isCreated, setJsObj`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Margins

    public Margins(int top,
                   int left,
                   int right,
                   int bottom)

  Create a new Margins instance.

  Parameters:
    `left` - the left margin
    `top` - the top margin
    `right` - the right margin
    `bottom` - the bottom margin

Method Detail

### getTop

    public int getTop()

  Returns:
    the top margin

### getLeft

    public int getLeft()

  Returns:
    the left margin

### getRight

    public int getRight()

  Returns:
    the right margin

### getBottom

    public int getBottom()

  Returns:
    the bottom margin

### getStyleString

    public java.lang.String getStyleString()

  Return the margins as a CSS style string.

  Returns:
    margin as style String

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD