| java.lang.Object com.jeta.forms.gui.common.FormSpecAdapter
FormSpecAdapter | public class FormSpecAdapter implements FormSpecDefinition,Externalizable(Code) | | A FormSpecAdapter is used to correctly encode and decode a
ColumnSpec and RowSpec to/from a String. This software depends on version
1.0.2 of the FormLayout, and that version does not provide support for
serializing ColumnSpec and RowSpec. Furthermore, the FormLayout does not
provide the ability to encode and decode a FormSpec to a String.
author: Jeff Tassin |
Field Summary | |
final public static int | VERSION_ID The current version number. |
VERSION_ID | final public static int VERSION_ID(Code) | | The current version number.
|
FormSpecAdapter | public FormSpecAdapter(String enc)(Code) | | ctor
|
fixup | public static String fixup(String enc)(Code) | | Properly converts a stringified version of a FormSpec to its encoded
version. FormLayout has a serious problem in that it stores the encoded
string in a different form than it takes in the constructor. For example,
the FormLayout stores dlu sizes as dluX or dluY. However, the FormSpec
constructor cannot handle this form.
|
fixupSpecs | public static String fixupSpecs(String specs)(Code) | | Converts a comma-separated-value set of specs for a rows or columns
definition for a layout. (e.g spec1,spec2,spec3 )
|
getAlignment | public String getAlignment()(Code) | | the alignment string depending on the specification type column:LEFT, CENTER, RIGHT, RILL row: TOP, CENTER, BOTTOM, RILL |
getBoundedSize | public String getBoundedSize()(Code) | | the bounded size MIN, MAX |
getComponentSize | public String getComponentSize()(Code) | | the component size: MIN, PREF, DEFAULT |
getConstantSize | public double getConstantSize()(Code) | | the size. |
getConstantUnits | public String getConstantUnits()(Code) | | the units (integer) (double) PX, PT, DLU IN, MM, CM |
getResize | public String getResize()(Code) | | the resize behavior NONE, GROW |
getResizeWeight | public double getResizeWeight()(Code) | | the resize weight (0.0-1.0) |
getSizeType | public String getSizeType()(Code) | | CONSTANT, COMPONENT, BOUNDED |
isBoundedMaximum | public boolean isBoundedMaximum()(Code) | | true if the bounded size is MAX |
isBoundedMinimum | public boolean isBoundedMinimum()(Code) | | true if the bounded size is MIN |
isBoundedSize | public boolean isBoundedSize()(Code) | | true if the size type is bounded |
isComponentSize | public boolean isComponentSize()(Code) | | true if the size type is component |
isConstantSize | public boolean isConstantSize()(Code) | | true if the size type is constant |
isIntegralUnits | public boolean isIntegralUnits()(Code) | | true if the units are PX, PT, or DLU |
isResizeGrow | public boolean isResizeGrow()(Code) | | true if the resize behavior is GROW |
isResizeNone | public boolean isResizeNone()(Code) | | true if the resize behavior is NONE |
|
|