Class('App', 'linb.Com',{
Instance:{
iniComponents : function(){
// [[code created by jsLinb UI Builder
var host=this, children=[], append=function(child){children.push(child.get(0))};
append(
(new linb.UI.Block)
.setHost(host,"ctl_block1")
.setLeft(100)
.setTop(20)
.setWidth(500)
.setHeight(310)
.setBorderType("none")
.setBackground("#fff")
);
host.ctl_block1.append(
(new linb.UI.Pane)
.setHost(host,"mainP")
.setDock("fill")
);
host.mainP.append(
(new linb.UI.Pane)
.setHost(host,"pp")
.setLeft(-500)
.setTop(0)
.setWidth(1500)
.setHeight(310)
);
host.pp.append(
(new linb.UI.Pane)
.setHost(host,"p1")
.setLeft(0)
.setTop(0)
.setWidth(500)
.setHeight(310)
.setIframeAutoLoad("
http://www.linb.net/Examples")
);
host.pp.append(
(new linb.UI.Pane)
.setHost(host,"p2")
.setLeft(500)
.setTop(0)
.setWidth(500)
.setHeight(310)
.setIframeAutoLoad("
http://www.linb.net")
);
host.pp.append(
(new linb.UI.Pane)
.setHost(host,"p3")
.setLeft(1000)
.setTop(0)
.setWidth(500)
.setHeight(310)
.setZIndex(10)
.setIframeAutoLoad("
http://www.linb.net/Order.html")
);
append(
(new linb.UI.Button)
.setHost(host,"toLeft")
.setLeft(70)
.setTop(20)
.setWidth(30)
.setHeight(310)
.setZIndex(1004)
.setCaption("<")
.onClick("_toleft_onclick")
);
append(
(new linb.UI.Button)
.setHost(host,"toRight")
.setLeft(600)
.setTop(20)
.setWidth(34)
.setHeight(310)
.setZIndex(1002)
.setCaption(">")
.onClick("_toright_onclick")
);
return children;
// ]]code created by jsLinb UI Builder
},
_toright_onclick : function (profile,e,src,value){
var ns = this;
ns.pp.getRoot().animate({left:[-500,0]},function(){
ns.toLeft.setDisabled(true);
ns.toRight.setDisabled(true);
},function(){
ns.toLeft.setDisabled(false);
ns.toRight.setDisabled(false);
ns.pp.getRoot().left(-500);
ns.p1.getRoot().left(500);
ns.p2.getRoot().left(1000);
ns.p3.getRoot().left(0);
var pt=ns.p3;
ns.p3=ns.p2;
ns.p2=ns.p1;
ns.p1=pt;
},300,15,"sineOut").start();
},
_toleft_onclick : function (profile,e,src,value){
var ns = this;
ns.pp.getRoot().animate({left:[-500,-1000]},function(){
ns.toLeft.setDisabled(true);
ns.toRight.setDisabled(true);
},function(){
ns.toLeft.setDisabled(false);
ns.toRight.setDisabled(false);
ns.pp.getRoot().left(-500);
ns.p1.getRoot().left(1000);
ns.p2.getRoot().left(0);
ns.p3.getRoot().left(500);
var pt=ns.p1;
ns.p1=ns.p2;
ns.p2=ns.p3;
ns.p3=pt;
},300,15,"sineOut").start();
}
}
});