Package org.openxava.util
Class Align
- java.lang.Object
-
- org.openxava.util.Align
-
- All Implemented Interfaces:
java.io.Serializable
public class Align extends java.lang.Object implements java.io.SerializableRepresents a text (or another element) align.The number of objects of this class is finete and accesible only by final variables or the method
get(int).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAlign(int code, java.lang.String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)static Alignget(int code)Obtain align associated to indicated code.static Align[]getAll()All available aligns.intgetCode()java.lang.StringgetDescription()inthashCode()booleanisCenter()Facilitates ask about what type of align is this.booleanisDefault()Facilitates ask about what type of align is this.booleanisLeft()Facilitates ask about what type of align is this.booleanisRight()Facilitates ask about what type of align is this.java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
get
public static Align get(int code)
Obtain align associated to indicated code.- Throws:
java.lang.IllegalStateException- If code does not match with a existing align.
-
getCode
public int getCode()
-
getDescription
public java.lang.String getDescription()
-
getAll
public static Align[] getAll()
All available aligns.- Returns:
- Not null
-
isCenter
public boolean isCenter()
Facilitates ask about what type of align is this.- Returns:
- true if this.equals(Align.CENTER)
-
isDefault
public boolean isDefault()
Facilitates ask about what type of align is this.- Returns:
- true if this.equals(Align.DEFAULT)
-
isRight
public boolean isRight()
Facilitates ask about what type of align is this.- Returns:
- true if this.equals(Align.RIGHT)
-
isLeft
public boolean isLeft()
Facilitates ask about what type of align is this.- Returns:
- true if this.equals(Align.LEFT)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-