CellConstraints cc = new CellConstraints();
view.setTitle(TxtManager.getTxt("VIEW." + currentGVGroup.getGrp()));
Container viewContentPane = view.getContentPane();
viewContentPane.removeAll();
ColumnSpec[] columnSpec = new ColumnSpec[] {
new ColumnSpec("10px"),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
new ColumnSpec("10px")
};
RowSpec[] rowSpec = new RowSpec[currentGVGroup.getGvs().size() * 2 + 3];
rowSpec[0] = new RowSpec("fill:10px");
rowSpec[1] = FormFactory.LINE_GAP_ROWSPEC;
int n = 1;
for (int i = 1; i <= currentGVGroup.getGvs().size(); i++) {
n++;
rowSpec[n] = FormFactory.DEFAULT_ROWSPEC;
n++;
rowSpec[n] = FormFactory.LINE_GAP_ROWSPEC;
}
rowSpec[n + 1] = new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.DEFAULT_GROW);
viewContentPane.setLayout(new FormLayout(columnSpec, rowSpec));
n = 1;
groupComponents = new Vector();
for (int i = 1; i <= currentGVGroup.getGvs().size(); i++) {
GV gv = (GV)currentGVGroup.getGvs().get(i - 1);
JPanel panel = new JPanel();
panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.GV." + gv.getVid())));
panel.setLayout(new FormLayout(
new ColumnSpec[] {
new ColumnSpec("10px"),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
new ColumnSpec("150px"),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
new ColumnSpec("150px")
},
RowSpec.decodeSpecs("5px, default, 5px")));
JLabel label = new JLabel(TxtManager.getTxt("VIEW.GV." + gv.getVid()));
panel.add(label, cc.xy(3, 2));