2018-01-13 18:53:06 +00:00
|
|
|
# TAWSB Styles
|
|
|
|
var TAWSBStyles =
|
2017-12-10 22:15:21 +00:00
|
|
|
{
|
|
|
|
new : func() {
|
2018-01-13 18:53:06 +00:00
|
|
|
var obj = { parents : [ TAWSBStyles ]};
|
2017-12-10 22:15:21 +00:00
|
|
|
obj.Styles = {};
|
|
|
|
obj.loadStyles();
|
|
|
|
return obj;
|
|
|
|
},
|
|
|
|
|
|
|
|
getStyle : func(type) {
|
|
|
|
return me.Styles[type];
|
|
|
|
},
|
|
|
|
|
|
|
|
setStyle : func(type, name, value) {
|
|
|
|
me.Styles[type][name] = value;
|
|
|
|
},
|
|
|
|
|
|
|
|
loadStyles : func() {
|
|
|
|
me. clearStyles();
|
|
|
|
me.Styles.XXX = {};
|
|
|
|
},
|
|
|
|
|
|
|
|
clearStyles : func() {
|
|
|
|
me.Styles = {};
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|