| org.zkoss.mil.MilComponent org.zkoss.mil.Item
All known Subclasses: org.zkoss.mil.Image, org.zkoss.mil.Label, org.zkoss.mil.Datebox, org.zkoss.mil.impl.InputElement, org.zkoss.mil.Listbox,
Item | abstract public class Item extends MilComponent (Code) | | Generic Item component under the
Frame component.
author: henrichen |
Method Summary | |
public String | getAlign() Get the horizontal alignment of this Item (left, center, right). | public String | getFlow() Get the layout flow of this Item (first, last, only). | public String | getHeightHint() Set the hieght hint of this Item (shrink, expand). | public String | getInnerAttrs() | public String | getLabel() Get the label of this Item. | public int | getPreferredHeight() Get preferred height. | public int | getPreferredWidth() Get preferred width. | public String | getValign() Get the vertical alignment of this Item (top, middle, bottom).
- top: align to top.
- middle: align to middle.
- bottom: align to bottom.
null means use default vertical alignment.
the vertical alignment. | public String | getWidthHint() Set the width hint of this Item (shrink, expand). | public void | setAlign(String align) Set the horizontal alignment of this Item (left, center, right);
- left: align to left.
- center: align to center.
- right: align to right
null means use default alignment. | public void | setFlow(String flow) Set the layout flow of this Item (first, last, only). | public void | setHeightHint(String heightHint) Set the hieght hint of this Item (shrink, expand). | public void | setLabel(String label) Set the new label of this Item. | public void | setParent(Component parent) | public void | setPreferredHeight(int preferredHeight) Set preferred height. | public void | setPreferredWidth(int preferredWidth) Set preferred width. | public void | setValign(String valign) Set the vertical alignment of this Item (top, middle, bottom). | public void | setWidthHint(String widthHint) Set the width hint of this Item (shrink, expand). |
BUTTON | final protected static int BUTTON(Code) | | |
HYPERLINK | final protected static int HYPERLINK(Code) | | |
LAYOUT_2 | final protected static int LAYOUT_2(Code) | | |
LAYOUT_BOTTOM | final protected static int LAYOUT_BOTTOM(Code) | | |
LAYOUT_CENTER | final protected static int LAYOUT_CENTER(Code) | | |
LAYOUT_DEFAULT | final protected static int LAYOUT_DEFAULT(Code) | | |
LAYOUT_EXPAND | final protected static int LAYOUT_EXPAND(Code) | | |
LAYOUT_LEFT | final protected static int LAYOUT_LEFT(Code) | | |
LAYOUT_NEWLINE_AFTER | final protected static int LAYOUT_NEWLINE_AFTER(Code) | | |
LAYOUT_NEWLINE_BEFORE | final protected static int LAYOUT_NEWLINE_BEFORE(Code) | | |
LAYOUT_RIGHT | final protected static int LAYOUT_RIGHT(Code) | | |
LAYOUT_SHRINK | final protected static int LAYOUT_SHRINK(Code) | | |
LAYOUT_TOP | final protected static int LAYOUT_TOP(Code) | | |
LAYOUT_VCENTER | final protected static int LAYOUT_VCENTER(Code) | | |
LAYOUT_VEXPAND | final protected static int LAYOUT_VEXPAND(Code) | | |
LAYOUT_VSHRINK | final protected static int LAYOUT_VSHRINK(Code) | | |
PLAIN | final protected static int PLAIN(Code) | | |
_preferredHeight | protected int _preferredHeight(Code) | | |
_preferredWidth | protected int _preferredWidth(Code) | | |
getAlign | public String getAlign()(Code) | | Get the horizontal alignment of this Item (left, center, right).
- left: align to left.
- center: align to center.
- right: align to right
null means use default alignment.
current horizontal alignment setting |
getFlow | public String getFlow()(Code) | | Get the layout flow of this Item (first, last, only).
- first: means this Item must be the first in a row.
- last: means this Item must be the last in a row.
- only: means this Item is the only Item in a row.
null means the default flow rule.
the layout flow of this Item. |
getHeightHint | public String getHeightHint()(Code) | | Set the hieght hint of this Item (shrink, expand).
- shrink: means height can be reduced to its minimum.
- expand: means height can be expanded to available space.
null means use default.
the current height hint. |
getLabel | public String getLabel()(Code) | | Get the label of this Item.
the label of this Item. |
getPreferredHeight | public int getPreferredHeight()(Code) | | Get preferred height. -1 means use defualt.
the preferred height. |
getPreferredWidth | public int getPreferredWidth()(Code) | | Get preferred width. -1 means use default.
the preferred width; |
getValign | public String getValign()(Code) | | Get the vertical alignment of this Item (top, middle, bottom).
- top: align to top.
- middle: align to middle.
- bottom: align to bottom.
null means use default vertical alignment.
the vertical alignment. |
getWidthHint | public String getWidthHint()(Code) | | Set the width hint of this Item (shrink, expand).
- shrink: means width can be reduced to its minimum.
- expand: means width can be expanded to available space.
null means use default.
the current width hint. |
setAlign | public void setAlign(String align)(Code) | | Set the horizontal alignment of this Item (left, center, right);
- left: align to left.
- center: align to center.
- right: align to right
null means use default alignment.
Parameters: align - |
setFlow | public void setFlow(String flow)(Code) | | Set the layout flow of this Item (first, last, only).
- first: means this Item must be the first in a row.
- last: means this Item must be the last in a row.
- only: means this Item is the only Item in a row.
null means use the default flow rule.
Parameters: flow - the layout flow of this Item. |
setHeightHint | public void setHeightHint(String heightHint)(Code) | | Set the hieght hint of this Item (shrink, expand).
- shrink: means height can be reduced to its minimum.
- expand: means height can be expanded to available space.
null means use default.
Parameters: heightHint - the current height hint. |
setLabel | public void setLabel(String label)(Code) | | Set the new label of this Item.
Parameters: label - the new label of this Item. |
setPreferredHeight | public void setPreferredHeight(int preferredHeight)(Code) | | Set preferred height. -1 means use default
Parameters: preferredHeight - the preferred height. |
setPreferredWidth | public void setPreferredWidth(int preferredWidth)(Code) | | Set preferred width. -1 means use default.
Parameters: preferredWidth - the preferred width. |
setValign | public void setValign(String valign)(Code) | | Set the vertical alignment of this Item (top, middle, bottom).
- top: align to top.
- middle: align to middle.
- bottom: align to bottom.
null means use default vertical alignment.
Parameters: valign - (top, middle, bottom) |
setWidthHint | public void setWidthHint(String widthHint)(Code) | | Set the width hint of this Item (shrink, expand).
- shrink: means width can be reduced to its minimum.
- expand: means width can be expanded to available space.
null means use default.
Parameters: widthHint - the current width hint. |
|
|