com.extjs.gxt.ui.client.util
Class Margins

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.Region
      extended by com.extjs.gxt.ui.client.util.Margins

public class Margins
extends Region

Represents 4-side margins.


Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.util.Region
bottom, left, right, top
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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