|
||||||||||
| 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
public abstract class XulElement
The fundamental class for XUL elements.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
XulElement()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAction()
Returns the client-side action (CSA). |
protected java.lang.String |
getAllOnClickAttrs(boolean ignoreOnClick)
Returns the attributes for onClick, onRightClick and onDoubleClick by checking whether the corresponding listeners are added, or null if none is added. |
java.lang.String |
getContext()
Returns the ID of Popup that should appear
when the user right-clicks on the element (aka., context menu). |
java.lang.String |
getInnerAttrs()
Generates the Client-Side-Action attributes to the interior tag. |
java.lang.String |
getOuterAttrs()
|
java.lang.String |
getPopup()
Returns the ID of Popup that should appear
when the user clicks on the element. |
java.lang.String |
getTooltip()
Returns the ID of Popup that should be used
as a tooltip window when the mouse hovers over the element for a moment. |
void |
setAction(java.lang.String action)
Sets the client-side action. |
void |
setContext(java.lang.String context)
Sets the ID of Popup that should appear
when the user right-clicks on the element (aka., context menu). |
void |
setPopup(java.lang.String popup)
Sets the ID of Popup that should appear
when the user clicks on the element. |
void |
setTooltip(java.lang.String tooltip)
Sets the ID of Popup that should be used
as a tooltip window when the mouse hovers over the element for a moment. |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isChildable, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XulElement()
| Method Detail |
|---|
public java.lang.String getContext()
Popup that should appear
when the user right-clicks on the element (aka., context menu).
Default: null (no context menu).
public void setContext(java.lang.String context)
Popup that should appear
when the user right-clicks on the element (aka., context menu).
An onOpen event is sent to the context menu if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.
public java.lang.String getPopup()
Popup that should appear
when the user clicks on the element.
Default: null (no poppup).
public void setPopup(java.lang.String popup)
Popup that should appear
when the user clicks on the element.
An onOpen event is sent to the popup menu if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.
public java.lang.String getTooltip()
Popup that should be used
as a tooltip window when the mouse hovers over the element for a moment.
The tooltip will automatically disappear when the mouse is moved.
Default: null (no tooltip).
public void setTooltip(java.lang.String tooltip)
Popup that should be used
as a tooltip window when the mouse hovers over the element for a moment.
An onOpen event is sent to the tooltip if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.
public java.lang.String getAction()
The format:
action1: javascript1; javascript2; action2: javascript3
You could specify any action as long as JavaScript supports, such as onfocus, onblur, onmouseover and onmousout.
public void setAction(java.lang.String action)
protected java.lang.String getAllOnClickAttrs(boolean ignoreOnClick)
ignoreOnClick - whether to ignore onClickpublic java.lang.String getOuterAttrs()
getOuterAttrs in class org.zkoss.zk.ui.HtmlBasedComponentpublic java.lang.String getInnerAttrs()
getInnerAttrs in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||