com.sap.ui.commons.client.layout
Enum Padding

java.lang.Object
  extended by java.lang.Enum<Padding>
      extended by com.sap.ui.commons.client.layout.Padding
All Implemented Interfaces:
Serializable, Comparable<Padding>

public enum Padding
extends Enum<Padding>

The enum Padding is the GWT wrapper for the Phoenix type: com.sap.ui.commons.client.layout.Padding.
Padding, e.g. of a layout cell's content within the cell's borders. Note that all options except "None" include a padding of 2px at the top and bottom, and differ only in the presence of a 4px padding towards the beginning or end of a line, in the current locale's writing direction.

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR

Enum Constant Summary
Begin
          Top and bottom padding of 2px.
Both
          Top and bottom padding of 2px.
End
          Top and bottom padding of 2px.
Neither
          Top and bottom padding of 2px.
None
          No padding at all.
 
Method Summary
static Padding valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Padding[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final Padding None
No padding at all.


Begin

public static final Padding Begin
Top and bottom padding of 2px. Padding of 4px towards the beginning of a line, in the current locale's writing direction, but none towards its end.


End

public static final Padding End
Top and bottom padding of 2px. Padding of 4px towards the end of a line, in the current locale's writing direction, but none towards its beginning.


Both

public static final Padding Both
Top and bottom padding of 2px. Padding of 4px towards both the beginning and end of a line.


Neither

public static final Padding Neither
Top and bottom padding of 2px. No padding towards neither the beginning nor end of a line.

Method Detail

values

public static Padding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Padding c : Padding.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Padding valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011 SAP. All Rights Reserved.