DanielBullimore / OOmutiny

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

0.1.1.3 Tab Panel #12

Closed DanielBullimore closed 4 years ago

DanielBullimore commented 5 years ago

Priority: Unset

Depends:

0.0 Master (OO)-[OO.class.js] => 0.1 Point (OoPoint)-[OoPoint.class.js] => 0.1.1 Region (OoRegion)-[OoPointRegion.class.js] => 0.1.1.1 View (OoView)-[OoPointRegionView.class.js] 0.1.3 Text (OoText)-[OoText.class.js] 0.1.4 Color (OoColor)-[OoText.class.js]

UML

OoTabPanel-03-11-2019

Description:

An array of GUI view ports stacked on top of each other with a tabulated menu to switch between which view is currently being displayed on top.

Properties:

rayViewPorts - protected array of view ports, <<view port>> combination of OoView, OoPort and OoText objects.
strTabTextColor - protected string, color use to draw tab menu item text.
strActiveTabColor - protected string, color used to display one tab as the selected/active view.
strHighlightTabColor - protected string, color used to show a tab has pointer focus.
numActiveTabId - private number, numerical array key for active tab's <<ViewPort>> in rayViewPorts

Methods:

funAddView() - creates a <<View Port>> from an OoView instance and adds it to the array rayViewPorts
funRemoveTab() - Finds and removes a tab from the array and the GUI if it has rendered.
funActivateTab() - Activates tab with given Id on GUI and sets numActiveTabId
funSetDefualtTab - Default active tab is 0, this method can change that before render occurs.
funSetActiveTabColor - set active tab as valid color. 
funSetTabTextColor - set color used for tab text as valid color.
funSetHighlightTabColor - set color used on foreground for tab with pointer focus as valid color.
funRender() - draws this object on GUI.
DanielBullimore commented 5 years ago

Hey unless were making a gray scale gui, lots of object will use colors. if every class has to validate colors provided by developers the library will be full of validate color code. -Make a color object that validates and stores a color.

DanielBullimore commented 4 years ago

Sanity checking finds no interface to apply a text label for new tabs and some typos in UML Class diagram (funAddView). Also this class id is incorrect, 0.1.1.1.2 shows inheritance from OoView when OoRegion is OoTabPanels parent class. Corrections made. Sanity checking complete.