Enum EPLTableGridType
- java.lang.Object
-
- java.lang.Enum<EPLTableGridType>
-
- com.helger.pdflayout.element.table.EPLTableGridType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,IPLTableGridType,Serializable,Comparable<EPLTableGridType>
public enum EPLTableGridType extends Enum<EPLTableGridType> implements IPLTableGridType
Default table grids.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULLCreate all grid lines.FULL_NO_BORDERCreate all grid lines except for the border lines.HORZ_ALLCreate all horizontal lines.HORZ_NO_BORDERCreate only horizontal lines but without the border lines on top and on bottom.HORZ_OUTER_BORDERCreate all horizontal lines.NONECreate no grid lines at allOUTERCreate all grid lines.VERT_ALLCreate all vertical lines.VERT_NO_BORDERCreate only vertical lines but without the border lines left and right.VERT_OUTER_BORDERCreate all vertical lines.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EPLTableGridTypegetFromIDOrNull(String sID)StringgetID()static EPLTableGridTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EPLTableGridType[]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 interface com.helger.pdflayout.element.table.IPLTableGridType
applyGridToTable, applyGridToTable, applyGridToTable
-
-
-
-
Enum Constant Detail
-
NONE
public static final EPLTableGridType NONE
Create no grid lines at all
-
FULL
public static final EPLTableGridType FULL
Create all grid lines. The first row has the border also on top, the other rows don't. The first column also has a border on the left, the others don't.
-
FULL_NO_BORDER
public static final EPLTableGridType FULL_NO_BORDER
Create all grid lines except for the border lines. The first row has the border also on top, the other rows don't. The
-
OUTER
public static final EPLTableGridType OUTER
Create all grid lines. The first row has the border also on top, the other rows don't. The first column also has a border on the left, the others don't.
-
HORZ_ALL
public static final EPLTableGridType HORZ_ALL
Create all horizontal lines. The first row has a border on top and bottom, all other rows only at the bottom
-
HORZ_OUTER_BORDER
public static final EPLTableGridType HORZ_OUTER_BORDER
Create all horizontal lines. The first row has a border on all sides all other rows at outer left, outer right and every bottom
-
HORZ_NO_BORDER
public static final EPLTableGridType HORZ_NO_BORDER
Create only horizontal lines but without the border lines on top and on bottom. All rows have a border on bottom except for the last line which has no border.
-
VERT_ALL
public static final EPLTableGridType VERT_ALL
Create all vertical lines. The first column has a border on left and right, all other columns only at the right
-
VERT_OUTER_BORDER
public static final EPLTableGridType VERT_OUTER_BORDER
Create all vertical lines. The first column has a border on left, right and top, all other columns at the outer top, outer bottom and every right
-
VERT_NO_BORDER
public static final EPLTableGridType VERT_NO_BORDER
Create only vertical lines but without the border lines left and right. The first column has a border on left and right, all other columns only at the right
-
-
Method Detail
-
values
public static EPLTableGridType[] 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 (EPLTableGridType c : EPLTableGridType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EPLTableGridType 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 nameNullPointerException- if the argument is null
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
public static EPLTableGridType getFromIDOrNull(@Nullable String sID)
-
-