Class: Class
Defined in: | web-src/coffee/model/uml/class.coffee |
Inherits: | model.MyModel |
Overview
A Class from our model UML diagram.
Instance Method Summary
- # (void) get_name()
- # (void) set_name(name) Deprecated Deprecated.
- # (void) set_g_name() Set name for graphical classes.
- # (Array<String>) get_attrs() Retrieve the class attributes.
- # (void) get_class_labels()
- # (void) add_attr(attr) Add an attribute string.
- # (void) get_methods()
- # (void) set_unsatisfiable(bool, csstheme = null) Set if this class is unsatisfiable.
- # (void) set_theme(csstheme) Set the csstheme to the joint class.
- # (void) create_joint(factory, csstheme = null) If the joint model wasn't created, make it.
- # (void) to_json()
- # (void) attach_my_event_handlers() I attach myself and my event handlers into the joint model for answering myself whenever some important changes happens.
- # (void) attach_on_change_position(object) Attach an object for notifying whenever the class changes position.
- # (void) notify_change_position(model) Event handler for notifying all objects attached that the position has been changed.
- # (void) same_elts(other)
Constructor Details
#
(void)
constructor(name, attrs = [], methods = [])
Instance Method Details
#
(void)
get_name()
#
(void)
set_name(name)
#
(void)
set_g_name()
Set name for graphical classes. crowd also shows names (without prefixes nor urls)
#
(Array<String>)
get_attrs()
Retrieve the class attributes.
#
(void)
get_class_labels()
#
(void)
add_attr(attr)
Add an attribute string.
#
(void)
get_methods()
#
(void)
set_unsatisfiable(bool, csstheme = null)
Set if this class is unsatisfiable. Changing its appearance if csstheme
is given.
#
(void)
set_theme(csstheme)
Set the csstheme to the joint class.
#
(void)
create_joint(factory, csstheme = null)
If the joint model wasn't created, make it.
#
(void)
to_json()
#
(void)
attach_my_event_handlers()
I attach myself and my event handlers into the joint model for answering myself whenever some important changes happens.
If I have already attached, I don't attach again.
This will attach for:
- change:position : Class#notify_change_position
#
(void)
attach_on_change_position(object)
Attach an object for notifying whenever the class changes position.
#
(void)
notify_change_position(model)
Event handler for notifying all objects attached that the position has been changed.
It will call update_position() to all objects attached.
#
(void)
same_elts(other)