public abstract class UiLayoutElement<E extends UiLayoutElement<E>> extends UiElement<E>
Constructor and Description |
---|
UiLayoutElement() |
Modifier and Type | Method and Description |
---|---|
E |
alignHorizontal(de.esoco.lib.property.Alignment eAlignment)
Sets the horizontal alignment of this element.
|
E |
alignVertical(de.esoco.lib.property.Alignment eAlignment)
Sets the vertical alignment value of this element.
|
void |
applyPropertiesTo(UiComponent<?,?> rComponent)
Overridden to skip properties that are already set.
|
protected <T> void |
applyProperty(UiComponent<?,?> rComponent,
de.esoco.lib.property.PropertyName<T> rProperty)
Applies a single property to a component if it doesn't exist already.
|
applyTo, clearProperties, copyPropertiesFrom, get, get, hasProperty, isModified, set, set, set, setModified, toString
public E alignHorizontal(de.esoco.lib.property.Alignment eAlignment)
eAlignment
- The horizontal alignmentpublic E alignVertical(de.esoco.lib.property.Alignment eAlignment)
eAlignment
- The vertical alignmentpublic void applyPropertiesTo(UiComponent<?,?> rComponent)
applyPropertiesTo
in class UiElement<E extends UiLayoutElement<E>>
rComponent
- The target componentUiElement.applyPropertiesTo(UiComponent)
,
UiLayout.ignoreProperties(PropertyName...)
protected <T> void applyProperty(UiComponent<?,?> rComponent, de.esoco.lib.property.PropertyName<T> rProperty)
rComponent
- The component to apply the property torProperty
- The name of the property to apply