Package com.iizix.prop.ui
Interface ILayoutUnitWidth
- All Known Implementing Classes:
AbsoluteData,BorderData,EAbsoluteData,EBorderData,EFlexData,EGridData,FlexData,GridData
public interface ILayoutUnitWidth
Interface implemented by a layout property that supports component width.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescription<VALUE> VALUEgetPropValue(String name, Class<VALUE> clazz) Gets the value of the property by thename.default GUnitReturns the width of the component.<VALUE> booleansetPropValue(String name, VALUE value, Class<? extends GProp<VALUE>> propClass) Sets a property value in the container.default booleanSet the width of the component.
Method Details
getPropValue
Gets the value of the property by thename. An error is logged if the value is not of specified class.- Parameters:
name- The name of the property to locate in the array.clazz- The class the property must be or extend, null for no checking.VALUE- The property value extending Object.- Returns:
- Object The property or
nullfor uninitialized container or the property with specified name is not found.
setPropValue
Sets a property value in the container.- Parameters:
name- The name of the property.value- The value to set, null to remove the property.propClass- The property class.VALUE- The property value extending Object.- Returns:
- true if value was changed, false for no changes.
- Throws:
InternalError- If the property could not be removed or set due to errors.
getWidthUnit
Returns the width of the component.- Returns:
- The unit, or null if width is not defined.
setWidth
Set the width of the component.- Parameters:
width- The width, null to remove the value.- Returns:
- true for value changed, false for no change.