View Javadoc
1   /*
2    * Copyright (c) 2005, Mike Heath
3    * All rights reserved.
4    * 
5    * Redistribution and use in source and binary forms, with or without modification, are permitted
6    * provided that the following conditions are met:
7    * 
8    *     * Redistributions of source code must retain the above copyright notice, this list of conditions
9    *       and the following disclaimer.
10   *     * Redistributions in binary form must reproduce the above copyright notice, this list of
11   *       conditions and the following disclaimer in the documentation and/or other materials provided
12   *       with the distribution.
13   *     * The names of its contributors may not be used to endorse or promote products derived from this
14   *       software without specific prior written permission.
15   * 
16   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19   * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20   * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27   */
28  package net.sf.cssbean;
29  
30  /***
31   * @author Mike Heath <elcapo@gmail.com>
32   */
33  public enum TextAlign implements Value {
34  	LEFT("left"),
35  	RIGHT("right"),
36  	CENTER("center"),
37  	JUSTIFY("center");
38  	
39  	private final String value;
40  	
41  	private TextAlign(String value) {
42  		this.value = value;
43  	}
44  	
45  	public String getValue() {
46  		return value;
47  	}
48  }