|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
org.zkoss.zul.Listbox.ExtraCtrl
protected class Listbox.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl().
It is used only by component developers.
| Constructor Summary | |
|---|---|
protected |
Listbox.ExtraCtrl()
|
| Method Summary | |
|---|---|
void |
clearSelectionByClient()
Clears the selection. |
java.util.Set |
getAvailableAtClient()
Returns a set of child components that are available at the client, or null if ALL available. |
boolean |
isChildChangedAware()
Returns whether to send the z.chchg command
to the client. |
boolean |
isCropper()
Returns whether it is a cropper, i.e., cropping is applied. |
void |
renderItems(java.util.Set items)
Renders a set of specified items, if they are not rendered before. |
void |
selectItemsByClient(java.util.Set selItems)
Set the selection to a set of specified items. |
void |
setInnerWidthByClient(java.lang.String width)
Sets the inner width of the component, caused by user's activity at the client. |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
|---|
setHeightByClient, setLeftByClient, setPrologContent, setTopByClient, setWidthByClient, setZIndexByClient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Listbox.ExtraCtrl()
| Method Detail |
|---|
public boolean isChildChangedAware()
ChildChangedAwarez.chchg command
to the client.
isChildChangedAware in interface ChildChangedAwarepublic void setInnerWidthByClient(java.lang.String width)
InnerWidthThis method is designed to be used by ZK update engine. Don't invoke it directly. Otherwise, the client and server might mismatch.
setInnerWidthByClient in interface InnerWidthpublic void renderItems(java.util.Set items)
RenderOnDemand
renderItems in interface RenderOnDemandpublic boolean isCropper()
CropperNote: this method is called when an child is detached, so
you have to count one more for the total number of children.
Example <= must be used, not <:
getChildCount() <= getPageSize()
The result of returning false is the same as not declaring
with Cropper.
isCropper in interface Cropperpublic java.util.Set getAvailableAtClient()
CropperComponent.getChildren().
In order words, you must use LinkedHashSet or similar to ensure the order
in the returned set.
Note: for better performance, it is better to return null if all children are available at the client.
getAvailableAtClient in interface Cropperpublic void selectItemsByClient(java.util.Set selItems)
SelectableThis method is designed to be used by engine. Don't invoke it directly. Otherwise, the client and server might mismatch.
selectItemsByClient in interface Selectablepublic void clearSelectionByClient()
SelectableThis method is designed to be used by engine. Don't invoke it directly. Otherwise, the client and server might mismatch.
clearSelectionByClient in interface Selectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||