|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.services.web.components.WebComponent
corelib.services.web.components.diagrams.Model
public class Model
This class defines the model (in the MVC architecture pattern) use by the Diagram component.
The example below shows you how to set a model within a web page Ellipse.
<diagram:Model name="Sales for 2009" color="rgb(255,0,0)">
<diagram:Datum key="January" value="120000" />
<diagram:Datum key="February" value="140000" />
<diagram:Datum key="March" value="110000" />
<!-- ... -->
</diagram:Model>
Diagram,
DiagramView| Field Summary |
|---|
| Fields inherited from class corelib.services.web.components.WebComponent |
|---|
dataBindings, webPage, xmlNode |
| Constructor Summary | |
|---|---|
Model()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getColor()
Returns the color used for draw this model into the selected view. |
java.util.ArrayList<org.w3c.dom.Element> |
getElementsByTagName(java.lang.String namespace,
java.lang.String tagName)
Just for open visiblity for the associated Diagram component. |
java.lang.String |
getName()
Returns the name used for this model. |
void |
setColor(java.lang.String color)
Changes the color used for draw this model into the selected view. |
void |
setName(java.lang.String name)
Changes the name used for this model. |
| Methods inherited from class corelib.services.web.components.WebComponent |
|---|
addBindingExpression, addChildComponent, component_init, component_load, component_preRepeaterDuplications, getChildComponents, getDataBinding, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The new name for this model.public java.lang.String getColor()
public void setColor(java.lang.String color)
color - The new color to use for draw this model.
public java.util.ArrayList<org.w3c.dom.Element> getElementsByTagName(java.lang.String namespace,
java.lang.String tagName)
getElementsByTagName in class WebComponentnamespace - The namespace URI (eg: corelib.services.web.components.diagrams).tagName - The name of the searched tags (eg: DiagramView).
ArrayList collection that contains all corresponding tags.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||