/** * Created by TonyJiang on 16/7/28. */ import {LayoutSection, LayoutProperty, LayoutSectionKeyEnum} from "./LayoutSection"; import {Layout} from "./Layout"; import {BandProperty} from "../properties/define"; export class BandLayout extends Layout{ constructor() { super(); // this.sections.push(this.actions()); // this.sections.push(this.appearance()); this.sections.push(this.layout()); } private actions():LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.FUNCTION]); return section; } private appearance():LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.STYLE]); section.properties.push( // 'backgroundColor', // 'foreColor' ) return section; } private layout():LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.LAYOUT]); section.properties.push(new LayoutProperty(BandProperty.height)); return section; } }