|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.metainfo.impl.WidgetDefinitionImpl
public class WidgetDefinitionImpl
An implementation of WidgetDefinition.
Constructor Summary | |
---|---|
WidgetDefinitionImpl(java.lang.String klass,
boolean blankPreserved)
|
Method Summary | |
---|---|
void |
addMold(java.lang.String name,
java.lang.String moldURI,
java.lang.String cssURI,
java.lang.String z2cURI)
Adds the mold URI for the specified mold. |
java.lang.String |
getCSSURI(java.lang.String name)
Returns the URI (String) of the CSS file of the mold, or null if not available. |
java.util.Collection |
getMoldNames()
Returns a collection of the mold names that have the molde URL. |
java.lang.String |
getMoldURI(java.lang.String name)
Returns the URI (String) of the template to generate the mold, or null if not available. |
java.lang.String |
getWidgetClass()
Returns the widget class (a JavaScript class). |
java.lang.String |
getZ2CURI(java.lang.String name)
Returns the URI (String) of the Z2C file of the mold, or null if not available. |
boolean |
hasMold(java.lang.String name)
Returns whether the mold URI exists for the given mold. |
boolean |
isBlankPreserved()
Returns whether to preserve the blank text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WidgetDefinitionImpl(java.lang.String klass, boolean blankPreserved)
Method Detail |
---|
public java.lang.String getWidgetClass()
WidgetDefinition
getWidgetClass
in interface WidgetDefinition
public boolean isBlankPreserved()
WidgetDefinition
It is used only with iZUML.
isBlankPreserved
in interface WidgetDefinition
public void addMold(java.lang.String name, java.lang.String moldURI, java.lang.String cssURI, java.lang.String z2cURI)
WidgetDefinition
addMold
in interface WidgetDefinition
name
- the mold name.moldURI
- an URI of the mold. Ignored if null.cssURI
- an URI of the CSS. Ignored if null.z2cURI
- an URI of the ZCS-to-CSS converter. Not supported yet.
Since 5.0, it doesn't allow any XEL expressions.public java.lang.String getMoldURI(java.lang.String name)
WidgetDefinition
getMoldURI
in interface WidgetDefinition
name
- the mold name
AbstractComponent.redraw(java.io.Writer)
public java.lang.String getCSSURI(java.lang.String name)
WidgetDefinition
getCSSURI
in interface WidgetDefinition
name
- the mold name
public java.lang.String getZ2CURI(java.lang.String name)
WidgetDefinition
getZ2CURI
in interface WidgetDefinition
name
- the mold name
public boolean hasMold(java.lang.String name)
WidgetDefinition
hasMold
in interface WidgetDefinition
public java.util.Collection getMoldNames()
WidgetDefinition
getMoldNames
in interface WidgetDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |