|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalComponentResources
An extension of ComponentResources that represents additional methods that are private to
the framework and not exposed in any public APIs.
| Method Summary | ||
|---|---|---|
Object |
getFieldChange(String fieldName)
Get the current persisted value of the field. |
|
boolean |
hasFieldChange(String fieldName)
Checks to see if there is a value stored for the indicated field. |
|
boolean |
isInvariant(String parameterName)
Returns true if the named parameter's Binding is invariant, false if otherwise, or if
the parameter is not bound. |
|
void |
persistFieldChange(String fieldName,
Object newValue)
Posts a change to a persistent field. |
|
void |
postRenderCleanup()
Allows the resources to cleanup any render-time only data. |
|
void |
queueRender(RenderQueue queue)
Invoked to make the receiver queue itself to be rendered. |
|
|
readParameter(String parameterName,
Class<T> expectedType)
Reads the value of a parameter, via the parameter's Binding. |
|
Object |
readParameter(String parameterName,
String desiredTypeName)
Used by generated component code to read a parameter value. |
|
|
writeParameter(String parameterName,
T parameterValue)
Updates a parameter. |
|
| Methods inherited from interface org.apache.tapestry.ComponentResourcesCommon |
|---|
findBlock, getBlock, getCompleteId, getElementName, getId, getLocale, getLogger, getNestedId, getPageName, isRendering, triggerContextEvent, triggerEvent |
| Methods inherited from interface org.apache.tapestry.ioc.Locatable |
|---|
getLocation |
| Methods inherited from interface org.apache.tapestry.internal.InternalComponentResourcesCommon |
|---|
bindParameter, getInformalParameterBindings, getMixinByClassName, isLoaded |
| Method Detail |
|---|
Object getFieldChange(String fieldName)
fieldName - the name of the field to access
boolean hasFieldChange(String fieldName)
void persistFieldChange(String fieldName,
Object newValue)
page to the PersistentFieldManager.
<T> T readParameter(String parameterName,
Class<T> expectedType)
Binding.
T - parameterName - the name of the parameter to readexpectedType - the expected type of parameter
Object readParameter(String parameterName,
String desiredTypeName)
parameterName - the name of the parameter to readdesiredTypeName - the class name of the desired value (classes will be resolved in the component class
loader)
<T> void writeParameter(String parameterName,
T parameterValue)
binding may also not support updates.
T - parameterName - of parameter to updateparameterValue - new value (which may be null)boolean isInvariant(String parameterName)
Binding is invariant, false if otherwise, or if
the parameter is not bound. Invariant bindings are cached more aggressively than variant bindings.
parameterName - the name of parameter to check for invariance
void postRenderCleanup()
void queueRender(RenderQueue queue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||