public class ResponsiveSizeRule extends java.lang.Object implements SizeRule
SizeRule that changes the size of the current
 UiElement based on the size of the parent UiElement. The
 parent element is split into 12 columns and the ResponsiveSizeRule
 sets how many columns to occupy.| Constructor and Description | 
|---|
ResponsiveSizeRule(int columns)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getColumns()  | 
float | 
getWidth(LayoutState layoutState)
Determines the preferred width of a  
UiElement | 
public ResponsiveSizeRule(int columns)
columns - The amount of columns to occupypublic float getWidth(LayoutState layoutState)
SizeRuleUiElementgetWidth in interface SizeRulelayoutState - The current LayoutStateUiElement preferred widthpublic int getColumns()