DanielBullimore / OOmutiny

OO Javascript frontend
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

0.1.1.2.1 List Item #23

Closed DanielBullimore closed 4 years ago

DanielBullimore commented 5 years ago

Priority: [Unset]

Depends:

0.0 Master (OO)-[OO.class.js] => 0.1 Point => 0.1.3 Text

Description:

This object templates the items which OoListBox displays in its visual list. Although the template is for a line of text any class inheriting this one should be able to render within the list, some wrapping or cropping may be required... implementation specific, developers responsibility. Inheriting from OoText this template class also stores a string and renders that string in a region on the GUI. However OoListItem has a method called funOnSelectAction which is void at declaration but can be defined by the developer. The developers defined method is then executed whenever the item is selected within its parent OoListbox object. I guess the list box can pass itself as a parameter of funOnSelectAction() just so the list item knows where it is. Point and region attributes are set by the encapsulating object relative to its own position at the time of rendering. So no point setting them at declaration time.

UML:

OoListItem-03-11-2019

Properties:

 none

Methods:

funOnSelectAction() - public method, void at declaration. To be defined by implementation developer. Executed when List Item is selected from List Box.
funRender() - draws the list item on GUI, called by OoListBox.funRender() which sets the list item point and region internally relative to its own point region.
DanielBullimore commented 4 years ago

sanity checking finds a function declared as an attribute in UML. correcting. Sanity check complete.