// buildWithDefinitions(mainWindow);
// buildWithPojo(mainWindow);
try {
// mainWindow.setSizeFull();
IConfig deskModel = new DefRoot( new LayVertical(
new DefAttribute(LayoutBuilder.WIDTH, "100%"),
new DefAttribute(LayoutBuilder.HEIGHT, "400px"),
new DskHeader(
new DskLogin()
),
// new DskBreadcrumb(),
new LayHorizontalSplit(
new DskNavigation(),
new DskContent(),
new DefAttribute(LayoutBuilder.SPLIT_MIN, "100px"),
new DefAttribute(LayoutBuilder.SPLIT_MAX, "400px"),
new DefAttribute(LayoutBuilder.SPLIT_POS, "200px"),
new DefAttribute(LayoutBuilder.WIDTH, "100%"),
new DefAttribute(LayoutBuilder.HEIGHT, "100%"),
new DefAttribute(LayoutBuilder.EXPAND, "1")
)
) ).build();
ConfigUtil.dump(deskModel,System.out);
Desktop desk = new Desktop(deskModel);
mainWindow.addComponent(desk.getRoot());
((VerticalLayout)mainWindow.getContent()).setExpandRatio(desk.getRoot(), 1);
mainWindow.getContent().setSizeFull();
IConfig dir = MConfigFactory.getInstance().createConfigFor(MSystem.locateResource(this, "dir.xml").toURI());
IConfig dir2 = dir.getConfig("dir1");
desk.setSelectedPath(new ConfigNavigationNode(dir2));
// ((VerticalLayout)mainWindow.getContent()).setExpandRatio(kill, 0);
VerticalLayout form = new VerticalLayout();
//form.setSizeFull();