CompositeComponent
class represents the view, in MVC terms, of the composite component.
The CompositeComponent
consists of multiple component objects, an XML DOM (a model), and an
HTML DOM (a view).
Attributes | Name and Description |
---|---|
|
caplin.component.composite.CompositeComponent(Object oXmlModel, Element eHtmlView, Object mComponents, mSplitters, mComponentIdToXmlNode)
Constructs a new |
Attributes | Name and Description |
---|---|
|
void
callControllerMethod(String sMethod)
Calls a method on the controller. |
<static>
|
caplin.component.composite.CompositeComponent
createFromSerializedState(String sXml)
Invoked by the caplin.component.ComponentFactory in order to create a
|
|
void
finalize()
The method cleans up resources (de-registers event handlers). |
|
int
getComponentSize(String sComponentId)
Returns the size of a child component in pixels without a trailing "px". |
|
DOMElement
getElement()
Returns the HTML element for this component. |
|
String
getUniqueComponentId()
Gets a guaranteed ID for this component instance. |
|
void
hideComponent(String sComponentId)
Used to hide one of the composite components. |
|
void
setController(caplin.component.composite.CompositeComponentController oController)
Sets the composite component's controller |
►
caplin.component.composite.CompositeComponent(Object oXmlModel, Element eHtmlView, Object mComponents, mSplitters, mComponentIdToXmlNode)
Constructs a new CompositeComponent
object.
Object | oXmlModel | The XML DOM that serves as a model for the CompositeComponent . |
Element | eHtmlView | The HTML DOM that represents the HTML view of the CompositeComponent . |
Object | mComponents | A map of component objects that make up the CompositeComponent . |
mSplitters | ||
mComponentIdToXmlNode |
►
void
callControllerMethod(String sMethod)
Calls a method on the controller. This is useful if you want a webcentric decorator button to call a method on the composite component controller e.g.
String | sMethod |
►
<static>
caplin.component.composite.CompositeComponent
createFromSerializedState(String sXml)
Invoked by the caplin.component.ComponentFactory in order to create a
CompositeComponent
given and XML string.
String | sXml | The XML string that is the serialized representation of the compositeComponent. |
CompositeComponent
corresponding to the
serialized form.
►
void
finalize()
The method cleans up resources (de-registers event handlers).
►
int
getComponentSize(String sComponentId)
Returns the size of a child component in pixels without a trailing "px". If this component is in a terrace, this method will return its width. If it is in a stack, this method will return its height.
String | sComponentId | The id of the component we want to query |
►
DOMElement
getElement()
Returns the HTML element for this component.
►
String
getUniqueComponentId()
Gets a guaranteed ID for this component instance.
►
void
hideComponent(String sComponentId)
Used to hide one of the composite components. This will only work if there is a sibling component that can take up the unused space.
String | sComponentId | The id of the component to hide |
►
void
setController(caplin.component.composite.CompositeComponentController oController)
Sets the composite component's controller
caplin.component.composite.CompositeComponentController | oController |