|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zul.Area
public class Area
An area of a Imagemap
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
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 | |
---|---|
Area()
|
|
Area(java.lang.String coords)
|
Method Summary | |
---|---|
void |
beforeParentChanged(Component parent)
Default: does nothing. |
java.lang.String |
getCoords()
Returns the coordination of this area. |
java.lang.String |
getShape()
Returns the shape of this area. |
java.lang.String |
getTooltiptext()
Returns the text as the tooltip. |
protected boolean |
isChildable()
Default: not childable. |
protected void |
renderProperties(ContentRenderer renderer)
Called by ( ComponentCtrl.redraw(java.io.Writer) ) to render the
properties, excluding the enclosing tag and children. |
void |
setCoords(java.lang.String coords)
Sets the coords of this area. |
void |
setShape(java.lang.String shape)
Sets the shape of this area. |
void |
setTooltiptext(java.lang.String tooltiptext)
Sets the text as the tooltip. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Area()
public Area(java.lang.String coords)
Method Detail |
---|
public java.lang.String getShape()
Default: null (means rectangle).
public void setShape(java.lang.String shape) throws WrongValueException
WrongValueException
- if shape is not one of
null, "rect", "rectangle", "circle", "circ", "polygon", and "poly".public java.lang.String getCoords()
public void setCoords(java.lang.String coords)
getShape()
:
Note: (0, 0) is the upper-left corner.
public java.lang.String getTooltiptext()
Default: null.
public void setTooltiptext(java.lang.String tooltiptext)
protected boolean isChildable()
isChildable
in class AbstractComponent
public void beforeParentChanged(Component parent)
AbstractComponent
beforeParentChanged
in interface ComponentCtrl
beforeParentChanged
in class AbstractComponent
parent
- the new parent. If null, it means detachment.ComponentCtrl.beforeParentChanged(org.zkoss.zk.ui.Component)
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
AbstractComponent
ComponentCtrl.redraw(java.io.Writer)
) to render the
properties, excluding the enclosing tag and children.
Default: it renders AbstractComponent.getId()
if it was assigned,
and event names if listened (and listed in AbstractComponent.getClientEvents()
).
Note: it doesn't render AbstractComponent.getWidgetClass()
, AbstractComponent.getUuid()
and AbstractComponent.getMold()
, which are caller's job.
renderProperties
in class AbstractComponent
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |