com.sencha.gxt.core.client.util
Class Margins

java.lang.Object
  extended by com.sencha.gxt.core.client.util.Region
      extended by com.sencha.gxt.core.client.util.Margins

public class Margins
extends Region

Represents 4-side margins.


Constructor Summary
Margins()
          Creates a new margins instance with 0 values for all sides.
Margins(int margin)
          Creates a new margins instance.
Margins(int top, int right, int bottom, int left)
          Creates a new margin instance.
 
Method Summary
 
Methods inherited from class com.sencha.gxt.core.client.util.Region
getBottom, getLeft, getRight, getTop, setBottom, setLeft, setRight, setTop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Margins

public Margins()
Creates a new margins instance with 0 values for all sides.


Margins

public Margins(int margin)
Creates a new margins instance.

Parameters:
margin - the margin value for all 4 sides.

Margins

public Margins(int top,
               int right,
               int bottom,
               int left)
Creates a new margin instance.

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


Copyright © 2012. All Rights Reserved.