Book a Demo

Author Topic: Creating stereotype w. attributes and methods  (Read 2374 times)

bartko

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Creating stereotype w. attributes and methods
« on: October 24, 2005, 04:51:18 am »
Hi,
I'm a newbie.
I've been using EA for modeling User Interface recently. Each class represents a single window, each attribute is a dynamic element of the window and finally operation is a method associated with a window. There are many objects that basically do the same, i.e. dialog boxes. What I need is a possibility to create own metaclass, i.e. DialogYesNo, which by default will contain Yes and No Methods as operations and  message as an attribute.
Is it possible to do with EA?

thanks for any answers,
bartko

thomaskilian

  • Guest
Re: Creating stereotype w. attributes and methods
« Reply #1 on: October 24, 2005, 06:11:29 am »
What do you think of inheritance?

Btw.: do you use simple classes or do you make use of  EA's Screen and GUIElement? I'm trying to use the latter but found a few hindrances that make me think of switching over to simple classes.
« Last Edit: October 24, 2005, 06:15:35 am by thomaskilian »

bartko

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Creating stereotype w. attributes and methods
« Reply #2 on: October 25, 2005, 04:34:15 am »
Thanks Thomas,  this method works good  :)
There is a little incovenience, because everytime you use "Set Element Parent" option it is necessary to set on checkbox "Show Attributes" and "Show Operations" (set feature visibility form), but it's not a problem.

As far as types of classes are concerned I use simple classes and 'Screen' stereotype. The second to show that window is MDI Parent (usually 1 per application). I don't model layout of GUI elements on the screen - this one is up to the coder.
« Last Edit: October 25, 2005, 04:35:37 am by bartko »