• x.BOOK

            ECDB.prototype.BOOK({ BOOK_object | name(string) })

            Create a BOOK instance (ECBOOK) with the inheritance of ECDB instance.
            If name is already defined in RSD_object, this returns the defined instance.
            This is the only way to make ECBOOK instance (means: no new ECBOOK()).
            BOOK instance is extensible, and supports various prototype functions.
            ECDB / ECBOOK instances can be referred each other.

            Layer 1
            fig7 : Function scope of ECDB <=> DCBOOK
            var book = top.BOOK({}); // Making a temporary BOOK
            var book = top.BOOK("aaa"); // Referring a pre-defined BOOK
            var book = top.BOOK({ name:"aaa", title:"example", db:"temp",
            structure:[...],...
            style:{ color:"red" },...
            });
          • x.Body

            ECDB.prototype.Body()

          • x.DOM

            ECDB.prototype.DOM( id )

            DOM() is a simple function to get a DOM with id.

            var dom = top.DOM("ident"); // similar to $("#"+id)
          • x.Divide

            ECDB.prototype.Divide( div, val, parameter )

            Divide() is the function to divide the dom proportionally.
            Here div is a DOM or id, val is an object of ids or numerical array, and parameter is an object of options.
            By using .body(), return value is an array of divided DOM.
            Usually value is proportional, and can define fixed value as "200px".

            top.Divide(top.Body(), {"aaa":50,"bbb":50},{});
            var divs = top.Divide("aaa", [30,20,50],{vertical:true, fold:[1,1]}).body();
            top.Divide("bbb",{"bbb1":"200px", "bbb2":0},{vertical:true});
          • x.Foot

            ECDB.prototype.Foot()

            Layer 1
            fig8 : Head / Body / Foot

            Initially the screen ("body" of html) is divided to 3 sections.
            Body() is mainly used for application, and it's empty at the start.
            Head() is top of the screen and its height is 50px.
            It's used for title, menu, login, communication status and so on.
            Foot() is bottom of the screen and its height is 20px.
            It claims the copyright information, license, and so on.

            new ECDB(function(top){
            top.Body().css({background:"#888", padding:"20px"}).html("Hello World!")
            });
          • x.Head

            ECDB.prototype.Head()

          • x.Multiple

            ECDB.prototype.Multiple( div, val );

            Here div is a DOM or id, val is an id array or number.
            By using .body(), return value is an array of multiplied DOM.

            top.Multiple(top.Body(),["aaa","bbb"]);
            var divs = top.Multiple("aaa", 3).body();
          • x.Separate

            ECDB.prototype.Separate( div, [ val0, val1 ], flag )

            Separate() is a simple function to separate the dom from edge as fixed.
            Here div is a DOM or id, val0 is left or top side distance in [px],
            and val1 is right or bottom side distance in [px].
            And flag is a boolean which indicates horizontal(false) or vertical(true), and the default is false.
            The return value is an array of separated DOMs.

            var divs = top.Separate("body", [50,20], true); // vertical separation like Head/Body/Foot
            var divs = top.Separate(top.Body(), [0,50]); // make only right side.(50px)
            var divs = top.Separate(top.Body(), [100,0], true); // make only top side.(100px)
          • x.SetTitle

            ECDB.prototype.SetTitle( title [, version ])

            Sets a title and version onto the header section.

            top.SetTitle("Agile Developers", "1.0.0");