static final class Sizes.ComponentSize extends java.lang.Object implements Size, java.io.Serializable
Size
interface for the component sizes:
min, pref, default.Modifier and Type | Method and Description |
---|---|
int |
maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes the maximum size for the given list of components, using
this form spec and the specified measure.
|
java.lang.String |
toString() |
(package private) static Sizes.ComponentSize |
valueOf(java.lang.String str)
Returns an instance of
ComponentSize that corresponds
to the specified string. |
static Sizes.ComponentSize valueOf(java.lang.String str)
ComponentSize
that corresponds
to the specified string.str
- the encoded component sizepublic int maximumSize(java.awt.Container container, java.util.List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure)
Invoked by FormLayout to determine the size of one of my elements
maximumSize
in interface Size
container
- the layout containercomponents
- the list of components to measureminMeasure
- the measure used to determine the minimum sizeprefMeasure
- the measure used to determine the preferred sizedefaultMeasure
- the measure used to determine the default sizepublic java.lang.String toString()
toString
in class java.lang.Object