Recent Changes - Search:





Model elements

Model elements is a mechanism created by EJS to facilitate creation and use of objects of existing classes.


There is nothing that can be done with model elements that cannot be done with pure Java code,… if only using model elements is easier.


A model element is added to your model by dragging one element icon from the palette (to your right) into the model elements list (to your left).


Once this is done, you double-click the new element to set its properties. What properties a model element has depends very much on the element. But all elements should provide a help dialog that tells you what the purpose of the element is, what properties it has, and how you use the element in your code.


Once created, you use the new element’s methods (these are just Java instance methods) in you model code to operate with the element.

Edit - History - Print - Recent Changes - Search
Page last modified on August 22, 2010, at 12:32 AM