|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.faces.dhtml.renderkit.ComponentCreationListener
public class ComponentCreationListener
The ComponentCreationListener is a listener class used to resolve the
dependencies between the JViews DHTML components.
When the component that is needed by this listener is created, the
onComponentCreated must be called.
This method should be overridden to resolve the dependency.
| Constructor Summary | |
|---|---|
ComponentCreationListener(UIComponent component,
String id,
String property)
The base constructor of a ComponentCreationListener |
|
| Method Summary | |
|---|---|
protected UIComponent |
getComponent()
Returns the component that has a dependency that needs to e resolved. |
String |
getComponentId()
Returns the absolute id of the component that needs its dependency to be resolved. |
String |
getDependencyId()
Returns the absolute id of the component that is needed to resolve this dependency. |
protected String |
getJSMethod()
Returns a String that represents the javascript method from a property. |
String |
getProperty()
Returns the property that needs to be refreshed by the resolved dependency. |
void |
onComponentCreated(Writer writer,
UIComponent depComponent)
Emits the javascript code to set the javascript property, if needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentCreationListener(UIComponent component,
String id,
String property)
component - The component that has an unresolved dependency.id - The id of the component that is needed.property - The property.| Method Detail |
|---|
protected UIComponent getComponent()
public String getProperty()
public String getComponentId()
public String getDependencyId()
public void onComponentCreated(Writer writer,
UIComponent depComponent)
throws IOException
writer - The writer to print into.depComponent - The resolved component on which a dependency was registered.
IOExceptionprotected String getJSMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||