Class Align
×News: XavaPro 7.7 released - March 11 · Read more
java.lang.Object
org.openxava.util.Align
- All Implemented Interfaces:
Serializable
Represents 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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Alignget(int code) Obtain align associated to indicated code.static Align[]getAll()All available aligns.intgetCode()inthashCode()booleanisCenter()Facilitates ask about what type of align is this.booleanFacilitates 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.toString()
-
Field Details
-
DEFAULT
-
LEFT
-
CENTER
-
RIGHT
-
-
Constructor Details
-
Align
-
-
Method Details
-
equals
-
hashCode
-
get
Obtain align associated to indicated code.- Throws:
IllegalStateException- If code does not match with a existing align.
-
getCode
public int getCode() -
getDescription
-
getAll
-
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
-