|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Radiogroup
public class Radiogroup
A radio group.
Note: To support the versatile layout, a radio group accepts any kind of
children, including Radio
. On the other hand, the parent of
a radio, if any, must be a radio group.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
HtmlBasedComponent.ExtraCtrl |
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
_height, _left, _top, _width, _zclass |
Fields inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
_visible |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
Constructor Summary | |
---|---|
Radiogroup()
|
Method Summary | |
---|---|
Radio |
appendItem(java.lang.String label,
java.lang.String value)
Appends a radio button. |
Radio |
appendItemApi(java.lang.String label,
java.lang.String value)
Appends a radio button. |
java.lang.Object |
clone()
Clones the component. |
Radio |
getItemAtIndex(int index)
Returns the radio button at the specified index. |
Radio |
getItemAtIndexApi(int index)
Returns the radio button at the specified index. |
int |
getItemCount()
Returns the number of radio buttons in this group. |
java.lang.String |
getName()
Returns the name of this group of radio buttons. |
java.lang.String |
getOrient()
Returns the orient. |
int |
getSelectedIndex()
Returns the index of the selected radio button (-1 if no one is selected). |
Radio |
getSelectedItem()
Returns the selected radio button. |
Radio |
getSelectedItemApi()
Returns the selected radio button. |
Radio |
removeItemAt(int index)
Removes the child radio button in the list box at the given index. |
Radio |
removeItemAtApi(int index)
Removes the child radio button in the list box at the given index. |
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
void |
setName(java.lang.String name)
Sets the name of this group of radio buttons. |
void |
setOrient(java.lang.String orient)
Sets the orient. |
void |
setSelectedIndex(int jsel)
Deselects all of the currently selected radio button and selects the radio button with the given index. |
void |
setSelectedItem(Radio item)
Deselects all of the currently selected radio buttons and selects the given radio button. |
void |
setSelectedItemApi(Radio itemApi)
Deselects all of the currently selected radio buttons and selects the given radio button. |
Methods inherited from class org.zkoss.zul.impl.XulElement |
---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
focus, getDraggable, getDroppable, getHeight, getHflex, getLeft, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, newExtraCtrl, service, setClass, setDraggable, setDroppable, setFocus, setHeight, setHflex, setLeft, setSclass, setStyle, setTooltiptext, setTop, setVflex, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Constructor Detail |
---|
public Radiogroup()
Method Detail |
---|
public java.lang.String getOrient()
Default: "horizontal".
getOrient
in interface Radiogroup
public void setOrient(java.lang.String orient) throws WrongValueException
setOrient
in interface Radiogroup
orient
- either "horizontal" or "vertical".
WrongValueException
public Radio getItemAtIndex(int index)
public Radio getItemAtIndexApi(int index)
getItemAtIndexApi
in interface Radiogroup
public int getItemCount()
getItemCount
in interface Radiogroup
public int getSelectedIndex()
getSelectedIndex
in interface Radiogroup
public void setSelectedIndex(int jsel)
setSelectedIndex
in interface Radiogroup
public Radio getSelectedItem()
public Radio getSelectedItemApi()
getSelectedItemApi
in interface Radiogroup
public void setSelectedItem(Radio item)
public void setSelectedItemApi(Radio itemApi)
setSelectedItemApi
in interface Radiogroup
itemApi
- assume as a Radio
public Radio appendItem(java.lang.String label, java.lang.String value)
public Radio appendItemApi(java.lang.String label, java.lang.String value)
appendItemApi
in interface Radiogroup
public Radio removeItemAt(int index)
public Radio removeItemAtApi(int index)
removeItemAtApi
in interface Radiogroup
public java.lang.String getName()
Radio.getName()
).
Default: automatically generated an unique name
Don't use this method if your application is purely based on ZK's event-driven model.
getName
in interface Radiogroup
public void setName(java.lang.String name)
Radio.getName()
).
Don't use this method if your application is purely based on ZK's event-driven model.
setName
in interface Radiogroup
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
See also Render Special Properties
renderProperties
in class XulElement
java.io.IOException
public java.lang.Object clone()
Component
clone
in interface Component
clone
in class AbstractComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |