Class UnitSettings
- java.lang.Object
-
- org.hippoecm.frontend.plugins.yui.layout.UnitSettings
-
- All Implemented Interfaces:
Serializable
public class UnitSettings extends Object implements Serializable
Contains all settings of a YUI unit.- POSITION: String representation of the position this unit has in the wireframe; top, right, bottom, left or center
-
ID: a
YuiId
value representing the unit's root element. -
BODY: a
YuiId
value representing the unit's body element. The body should not be configured when the unit wraps aComponent
with aUnitBehavior
. When neither body nor UnitBehavior is present, a body element will be generated. - WIDTH: width (in pixels) that the unit will take up in the wireframe (only applies to left and right units and is required)
- HEIGHT: height (in pixels) that the unit will take up in the wireframe (only applies to top and bottom units and is required).
- MIN_WIDTH: minimum width (in pixels) the unit will take up in the wireframe (only applies to left and right units and is required)
- MIN_HEIGHT: minimum height (in pixels) that the unit will take up in the wireframe (only applies to top and bottom units and is required).
- GUTTER: the gutter applied to the unit's wrapper, before the content, for example "5px".
- SCROLL: Boolean indicating whether the unit's body should have scroll bars if the body content is larger than the display area.
- RESIZE: Boolean indicating whether this unit is resizeable.
- USE_SHIM: Sometimes resizing a unit over an iframe (or other elements) will lead to unexpected behavior. Set this property to true to fix it.
- Z_INDEX: z-index for this unit.
- EXPANDED: whether or not this unit is expanded, meaning it will take up all available space inside the wireframe, hiding all other active units.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitSettings(String position, org.apache.wicket.util.value.IValueMap config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YuiId
getBody()
String
getGutter()
String
getHeight()
YuiId
getId()
String
getMinHeight()
String
getMinWidth()
String
getPosition()
String
getWidth()
int
getZindex()
boolean
isExpandCollapseEnabled()
boolean
isExpanded()
boolean
isResize()
boolean
isScroll()
boolean
isUseShim()
void
setExpandCollapseEnabled(boolean expandCollapseEnabled)
void
setExpanded(boolean expanded)
void
setGutter(String gutter)
void
setHeight(String height)
void
setMinHeight(String minHeight)
void
setMinWidth(String minWidth)
void
setResize(boolean resize)
void
setScroll(boolean scroll)
void
setUseShim(boolean useShim)
void
setWidth(String width)
void
setZindex(int zIndex)
-
-
-
Field Detail
-
TOP
public static final String TOP
- See Also:
- Constant Field Values
-
RIGHT
public static final String RIGHT
- See Also:
- Constant Field Values
-
BOTTOM
public static final String BOTTOM
- See Also:
- Constant Field Values
-
LEFT
public static final String LEFT
- See Also:
- Constant Field Values
-
CENTER
public static final String CENTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnitSettings
public UnitSettings(String position, org.apache.wicket.util.value.IValueMap config)
-
-
Method Detail
-
getPosition
public String getPosition()
-
setWidth
public void setWidth(String width)
-
getWidth
public String getWidth()
-
setHeight
public void setHeight(String height)
-
getHeight
public String getHeight()
-
setMinWidth
public void setMinWidth(String minWidth)
-
getMinWidth
public String getMinWidth()
-
setMinHeight
public void setMinHeight(String minHeight)
-
getMinHeight
public String getMinHeight()
-
setGutter
public void setGutter(String gutter)
-
getGutter
public String getGutter()
-
setScroll
public void setScroll(boolean scroll)
-
isScroll
public boolean isScroll()
-
setResize
public void setResize(boolean resize)
-
isResize
public boolean isResize()
-
setUseShim
public void setUseShim(boolean useShim)
-
isUseShim
public boolean isUseShim()
-
getBody
public YuiId getBody()
-
getId
public YuiId getId()
-
setZindex
public void setZindex(int zIndex)
-
getZindex
public int getZindex()
-
isExpanded
public boolean isExpanded()
-
setExpanded
public void setExpanded(boolean expanded)
-
isExpandCollapseEnabled
public boolean isExpandCollapseEnabled()
-
setExpandCollapseEnabled
public void setExpandCollapseEnabled(boolean expandCollapseEnabled)
-
-