corelib.services.web.components.diagrams
Class Model

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.diagrams.Model

public class Model
extends WebComponent

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>
 

Since:
0.4.0
Author:
Dominique Liard
See Also:
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

Model

public Model()
Method Detail

getName

public java.lang.String getName()
Returns the name used for this model.

Returns:
the name for this model.

setName

public void setName(java.lang.String name)
Changes the name used for this model.

Parameters:
name - The new name for this model.

getColor

public java.lang.String getColor()
Returns the color used for draw this model into the selected view.

Returns:
The color used for draw this model.

setColor

public void setColor(java.lang.String color)
Changes the color used for draw this model into the selected view.

Parameters:
color - The new color to use for draw this model.

getElementsByTagName

public 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.

Overrides:
getElementsByTagName in class WebComponent
Parameters:
namespace - The namespace URI (eg: corelib.services.web.components.diagrams).
tagName - The name of the searched tags (eg: DiagramView).
Returns:
An ArrayList collection that contains all corresponding tags.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.