public class Margin extends Object implements Serializable
A default margin size can be set for "all" sides of the panel, or the specific margin sizes can be set for each side of the panel.
Constructor and Description |
---|
Margin(int all)
Deprecated.
use
Margin(Size) |
Margin(int north,
int east,
int south,
int west)
Deprecated.
|
Margin(Size all)
A margin equal on all sizes.
|
Margin(Size north,
Size east,
Size south,
Size west)
The margin sizes to be used on each side of the component.
|
Modifier and Type | Method and Description |
---|---|
int |
getAll()
Deprecated.
use
getMargin() |
Set<String> |
getAsHTMLClassSet()
Get a set of HTML class attribute values in the same form as
AbstractWComponent.getHtmlClasses() . |
String |
getAsHtmlClassValue() |
Size |
getBottom() |
int |
getEast()
Deprecated.
use
getRight() |
Size |
getLeft() |
Size |
getMargin() |
int |
getNorth()
Deprecated.
use
getTop() |
Size |
getRight() |
int |
getSouth()
Deprecated.
use
getBottom() |
Size |
getTop() |
int |
getWest()
Deprecated.
use
getLeft() |
public Margin(Size all)
all
- the size of the margin to be used on all sides of the component.@Deprecated public Margin(int all)
Margin(Size)
all
- the size of the margin to be used on all sides of the component.public Margin(Size north, Size east, Size south, Size west)
north
- the size of the north margin.east
- the size of the east margin.south
- the size of the south margin.west
- the size of the west margin.@Deprecated public Margin(int north, int east, int south, int west)
Margin(Size, Size, Size, Size)
north
- the size of the north margin.east
- the size of the east margin.south
- the size of the south margin.west
- the size of the west margin.@Deprecated public int getAll()
getMargin()
@Deprecated public int getNorth()
getTop()
@Deprecated public int getEast()
getRight()
@Deprecated public int getSouth()
getBottom()
@Deprecated public int getWest()
getLeft()
public Size getMargin()
public Size getTop()
public Size getRight()
public Size getBottom()
public Size getLeft()
public final Set<String> getAsHTMLClassSet()
AbstractWComponent.getHtmlClasses()
.public final String getAsHtmlClassValue()
Copyright © 2021. All rights reserved.