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

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.Margins
Direct Known Subclasses:
Padding

public class Margins
extends java.lang.Object

Represents 4-side margins.


Field Summary
 int bottom
          The bottom margin.
 int left
          The left margin.
 int right
          The right margin.
 int top
          The top margin.
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

public int left
The left margin.


right

public int right
The right margin.


top

public int top
The top margin.


bottom

public int bottom
The bottom margin.

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