Sets the cursor column to 0 and increments the cursor row by one.
By calling this function you can ensure that no more components are added right of the previous component.
2021222324252627282930
setMainWindow(w); GridLayout gl = new GridLayout(3, 3); gl.setSpacing(true); gl.addComponent(new Label("Before form")); gl.newLine(); form = new Form(gl); form.setItemDataSource(new BeanItem<MyBean>(new MyBean())); gl.addComponent(new Label("After form"));
192193194195196197198199200201202
b = new NativeButton("Link Button"); b.setStyleName(LiferayTheme.BUTTON_LINK); l.addComponent(b); l.newLine(); b = new Button("Link Button"); b.setIcon(ICON_OK); b.setStyleName(LiferayTheme.BUTTON_LINK); l.addComponent(b);
452453454455456457458459460461462
l.setColumnExpandRatio(1, 1); CheckBox lockCheckBox = new CheckBox("Lock SplitPanels"); lockCheckBox.setImmediate(true); l.addComponent(lockCheckBox, 1, 0); l.newLine(); Label label = new Label("Normal SplitPanel", ContentMode.HTML); label.setWidth(null); l.addComponent(label); final HorizontalSplitPanel sp = new HorizontalSplitPanel();