public interface Size
FormLayout
component measuring sizes, constant sizes with value and unit
and bounded sizes that provide lower and upper bounds for a size.Size types i the Forms whitepaper that is part of the product documentation and that i available online too, se .
Sizes,
ConstantSize| Modifier and Type | Method and Description |
|---|---|
boolean |
compressible()
Describes if this Size can be compressed, if container space gets scarce.
|
String |
encode()
Returns a String respresentation of this Size object that ca
be parsed by the Forms parser.
|
int |
maximumSize(Container container,
List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes and returns this Size's maximum pixel size applied t
the given list of components using the specified measures.
|
int maximumSize(Container container, List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure)
FormSpec to determin
the size of a column or row. This method is not intended to be calle
by API users, and it uses API invisible parameter types.
container - the layout containercomponents - the list of components used to compute the sizeminMeasure - the measure that determines the minimum sizesprefMeasure - the measure that determines the preferred sizesdefaultMeasure - the measure that determines the default sizesboolean compressible()
#compressedSizesdefault is compressible, as well a
BoundedSizes that are based on the default size.true for compressible SizesString encode()
Copyright © 2002-2014 JGoodies Software GmbH. All Rights Reserved.