Class: AssociationState
Defined in: | web-src/coffee/gui/associationstate.coffee |
Inherits: | gui.State |
Overview
Association state, the user can select another class for create an association between them.
Instance Method Summary
- # (void) reset() Reset the state restoring its default values.
- # (void) set_cellStarter(cell_starter)
- # (void) set_mult(mult) Set the association's multiplicity that the user gave.
- # (void) set_roles(roles) Set the association's roles that the user gave.
- # (void) set_cardinality(mult)
- # (void) set_name(name)
- # (void) set_type(type)
- # (void) set_with_class(with_class) Create an association with class? By default is false.
- # (void) enable_with_class() Ensure to create an association with class.
- # (void) on_cell_clicked(cell_view, event, x, y, gui_instance) What to do when the user clicks on another cell.
Constructor Details
#
(void)
constructor()
Instance Method Details
#
(void)
reset()
Reset the state restoring its default values.
#
(void)
set_cellStarter(cell_starter)
#
(void)
set_mult(mult)
Set the association's multiplicity that the user gave.
#
(void)
set_roles(roles)
Set the association's roles that the user gave.
#
(void)
set_cardinality(mult)
#
(void)
set_name(name)
#
(void)
set_type(type)
#
(void)
set_with_class(with_class)
Create an association with class?
By default is false. Set to true if you have setted the name before.
#
(void)
enable_with_class()
Ensure to create an association with class.
associationstate.enable_with_class("a name")
is the same as:
Examples:
Same as
associationstate.set_name("a name")
associationstate.set_with_class(true)
#
(void)
on_cell_clicked(cell_view, event, x, y, gui_instance)
What to do when the user clicks on another cell.