SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum BorderModel

java.lang.Object
  extended by java.lang.Enum<BorderModel>
      extended by org.axsl.common.value.BorderModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BorderModel>

public enum BorderModel
extends java.lang.Enum<BorderModel>

An enumeration of the possible table border models. Since each cell in a table can define its own borders, a table border model is needed to determine whether (for example) the bottom border of one cell is the same border as the top border of the cell below it, or whether there are actually two separate borders.


Enum Constant Summary
COLLAPSE
          Indicates use of the collapsing borders model.
COLLAPSE_WITH_PRECEDENCE
          Indicates use of the collapsing borders model and the use of border precedence properties for conflict resolution.
SEPARATE
          Indicates use of the separated borders border model.
 
Method Summary
 boolean isCollapse()
          Indicates whether this model is the collapse model.
static BorderModel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BorderModel[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COLLAPSE

public static final BorderModel COLLAPSE
Indicates use of the collapsing borders model.


COLLAPSE_WITH_PRECEDENCE

public static final BorderModel COLLAPSE_WITH_PRECEDENCE
Indicates use of the collapsing borders model and the use of border precedence properties for conflict resolution.


SEPARATE

public static final BorderModel SEPARATE
Indicates use of the separated borders border model.

Method Detail

values

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

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

valueOf

public static BorderModel valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

isCollapse

public boolean isCollapse()
Indicates whether this model is the collapse model.

Returns:
True iff this model is the collapse model.

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.