com.jgoodies.forms.layout

Class ConstantSize.Unit

Enclosing Class:
ConstantSize
Implemented Interfaces:
Serializable

public static final class ConstantSize.Unit
extends java.lang.Object
implements Serializable

An ordinal-based serializable typesafe enumeration for units as used in instances of ConstantSize.

Method Summary

String
abbreviation()
Returns the first character of this Unit's name.
String
encode()
Returns a parseable string representation of this unit.
String
toString()
Returns a string representation of this unit object.

Method Details

abbreviation

public String abbreviation()
Returns the first character of this Unit's name. Used to identify it in short format strings.
Returns:
the first character of this Unit's name.

encode

public String encode()
Returns a parseable string representation of this unit.
Returns:
a String that can be parsed by the Forms parser
Since:
1.2

toString

public String toString()
Returns:
a string representation of the constant size

Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.