- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
public class FormForThemeView extends LayoutContainer {
private double innerRightPanelHeight = 0.7;
private LayoutContainer leftContentPanel;
private LayoutContainer rightContentPanel;
private ContentPanel innerLeftDataPanel;
private ContentPanel innerRightDataPanel;
private ContentPanel upperRightDataPanel;
private ContentPanel bottomRightDataPanel;
private ContentPanel bottomMiddleDataPanel;
public FormForThemeView() {
leftContentPanel = new LayoutContainer(new RowLayout(Style.Orientation.HORIZONTAL));
rightContentPanel = new LayoutContainer(new RowLayout(Style.Orientation.VERTICAL));
innerLeftDataPanel = new ContentPanel(new RowLayout(Style.Orientation.VERTICAL));
innerRightDataPanel = new ContentPanel(new RowLayout(Style.Orientation.VERTICAL));
bottomMiddleDataPanel = new ContentPanel(new RowLayout(Style.Orientation.VERTICAL));
upperRightDataPanel = new ContentPanel(new RowLayout(Style.Orientation.VERTICAL));
bottomRightDataPanel = new ContentPanel(new RowLayout(Style.Orientation.VERTICAL));
}
public void render() {
innerLeftDataPanel.setBorders(false);
innerLeftDataPanel.setBodyBorder(false);
innerLeftDataPanel.setHeaderVisible(false);
innerLeftDataPanel.setBodyStyle("backgroundColor: transparent");
innerLeftDataPanel.add(bottomMiddleDataPanel, new RowData(-1, -1));
innerRightDataPanel.setBorders(false);
innerRightDataPanel.setBodyBorder(false);
innerRightDataPanel.setHeaderVisible(false);
innerRightDataPanel.setBodyStyle("backgroundColor: transparent");
bottomMiddleDataPanel.setBorders(false);
bottomMiddleDataPanel.setBodyBorder(false);
bottomMiddleDataPanel.setHeaderVisible(false);
bottomMiddleDataPanel.setBodyStyle("backgroundColor: transparent");
leftContentPanel.setBorders(false);
leftContentPanel.add(innerRightDataPanel, new RowData(156, 1));
leftContentPanel.add(innerLeftDataPanel, new RowData(1, 1));
rightContentPanel.setStyleAttribute("borderLeft", "2px dotted #99BBE8");
rightContentPanel.add(upperRightDataPanel, new RowData(1, innerRightPanelHeight));
rightContentPanel.add(bottomRightDataPanel, new RowData(1, 1 - innerRightPanelHeight));
setLayout(new RowLayout(Style.Orientation.HORIZONTAL));
add(leftContentPanel, new RowData(1, 1));
add(rightContentPanel, new RowData(156, 1));
}
}
Попытка сделать панель на GXT. Попутаны стороны right находится слева, тк смотрим с другой стороны. По названиям переменных ничего не понятно. inner, bottom, left, rigth - найдите лишнее.