|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwheel.components.RenderableComponentConfiguration
wheel.components.StandaloneComponentConfiguration
public class StandaloneComponentConfiguration
| Constructor Summary | |
|---|---|
StandaloneComponentConfiguration(StandaloneComponent forComponent)
|
|
| Method Summary | |
|---|---|
boolean |
_isRenderDoctype()
Intended for internal use. |
boolean |
_isRenderGeneratedComponentIds()
Intended for internal use. |
StandaloneComponentConfiguration |
_setRenderDoctype(boolean renderDoctype)
When set to false, the page will not render doctype declaration. |
StandaloneComponentConfiguration |
exposeField(java.lang.String fieldName)
Any field in a StandaloneComponent (provided it has getter and setter) can be "exposed". |
java.lang.String |
getContentType()
Returns the MIME content type for this complex component. |
InitialFieldValue |
getInitialFieldValue(java.lang.String fieldName)
Intended for internal use. |
java.util.Map<java.lang.String,java.lang.Object> |
getValidationVariables()
|
StandaloneComponentConfiguration |
initialFieldValue(java.lang.String fieldName,
java.lang.String stringReplacement)
Adds a String literal that will be rendered to html output if the indicated field is null. |
StandaloneComponentConfiguration |
initialFieldValue(java.lang.String fieldName,
java.lang.String stringReplacement,
java.lang.Object emptyValue)
Adds a String literal that will be rendered to html output if the indicated field is null. |
boolean |
isAjaxComponent()
|
boolean |
isFieldExposed(java.lang.String fieldName)
Returns true if a field by the given name is exposed in this component. |
boolean |
isReusable()
Intended for internal use. |
StandaloneComponentConfiguration |
linkToDomain(ElExpression fieldName,
ElExpression elExpression)
Links a field in aIComplexComponent object and a field in a domain object. |
StandaloneComponentConfiguration |
setAjaxComponent(boolean ajaxComponent)
|
StandaloneComponentConfiguration |
setContentType(java.lang.String contentType)
Sets the content type for this complex component. |
StandaloneComponentConfiguration |
setRenderGeneratedComponentIds(boolean renderGeneratedComponentIds)
When set to true, genereated componentId's will be rendered as id-attributes to html-tags. |
StandaloneComponentConfiguration |
setReusable(boolean reusable)
Sets this component as reusable. |
StandaloneComponentConfiguration |
useAsset(java.lang.String fileUri)
Adds a css/js asset to the surrounding page. |
StandaloneComponentConfiguration |
useAsset(java.lang.String fileUri,
int expires)
Adds a css/js asset to the surrounding page. |
StandaloneComponentConfiguration |
useAsset(java.lang.String fileUri,
java.lang.String media)
Adds a css/js asset to the surrounding page. |
StandaloneComponentConfiguration |
useAsset(java.lang.String fileUri,
java.lang.String media,
int expires)
Adds a css/js asset to the surrounding page. |
StandaloneComponentConfiguration |
useValidationVariable(java.lang.String key,
java.lang.Object var)
With this method you can make any object available during form element validation. |
| Methods inherited from class wheel.components.RenderableComponentConfiguration |
|---|
isRenderId, isRenderSelf, isUseXhtml, isVisible, setRenderId, setRenderSelf, setUseXhtml, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandaloneComponentConfiguration(StandaloneComponent forComponent)
| Method Detail |
|---|
public StandaloneComponentConfiguration useValidationVariable(java.lang.String key,
java.lang.Object var)
key - The name that will be used in the validation rule el-expressionsvar - The validation object.
public java.util.Map<java.lang.String,java.lang.Object> getValidationVariables()
public java.lang.String getContentType()
public StandaloneComponentConfiguration setContentType(java.lang.String contentType)
contentType - The new content type as a MIME type.
public StandaloneComponentConfiguration initialFieldValue(java.lang.String fieldName,
java.lang.String stringReplacement)
fieldName - An el-expression pointing to the field member.stringReplacement - The String literal to render when the field is null.
public StandaloneComponentConfiguration initialFieldValue(java.lang.String fieldName,
java.lang.String stringReplacement,
java.lang.Object emptyValue)
fieldName - An el-expression pointing to the field member.stringReplacement - The String literal to render when the field is null.
public InitialFieldValue getInitialFieldValue(java.lang.String fieldName)
fieldName -
public StandaloneComponentConfiguration linkToDomain(ElExpression fieldName,
ElExpression elExpression)
fieldName - An el-expression that point to the field in the component-classelExpression - An el-expression that is evaluated on the domain object. Access to the domain object must be
public boolean isAjaxComponent()
public StandaloneComponentConfiguration setAjaxComponent(boolean ajaxComponent)
public StandaloneComponentConfiguration setReusable(boolean reusable)
reusable - public boolean isReusable()
public StandaloneComponentConfiguration useAsset(java.lang.String fileUri)
fileUri - If the asset is available inside the application, only the filename without path is given. Can also be a http-url.
public StandaloneComponentConfiguration useAsset(java.lang.String fileUri,
java.lang.String media)
fileUri - If the asset is available inside the application, only the filename without path is given. Can also be a http-url.media - When using css-assets, this parameter sets the media which this asset supports.
public StandaloneComponentConfiguration useAsset(java.lang.String fileUri,
int expires)
fileUri - If the asset is available inside the application, only the filename without path is given. Can also be a http-url.expires - In how many hours the asset will expire from user agent caches. Default is 48.
public StandaloneComponentConfiguration useAsset(java.lang.String fileUri,
java.lang.String media,
int expires)
fileUri - If the asset is available inside the application, only the filename without path is given. Can also be a http-url.media - When using css-assets, this parameter sets the media which this asset supports.expires - In how many hours the asset will expire from user agent caches. Default is 48.public StandaloneComponentConfiguration exposeField(java.lang.String fieldName)
public MyPage() {
config().exposeField("counter");
}
Now you can access the counter field in an URL: MyPage?counter=100
fieldName -
public boolean isFieldExposed(java.lang.String fieldName)
fieldName -
public boolean _isRenderDoctype()
public StandaloneComponentConfiguration _setRenderDoctype(boolean renderDoctype)
renderDoctype - public boolean _isRenderGeneratedComponentIds()
public StandaloneComponentConfiguration setRenderGeneratedComponentIds(boolean renderGeneratedComponentIds)
renderGeneratedComponentIds -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||