LayoutContainer container = new LayoutContainer(); container.setLayout(new FitLayout()); ContentPanel panel = new ContentPanel(); container.add(panel); container.setSize(400, 400);
5859606162636465666768
private void createCenter() { centerPanel = new ContentPanel(); centerPanel.setBorders(false); centerPanel.setHeaderVisible(false); centerPanel.setLayout(new FitLayout()); BorderLayoutData data = new BorderLayoutData(LayoutRegion.CENTER); data.setMargins(new Margins(5, 5, 5, 0)); viewport.add(centerPanel, data); Registry.register(CENTER_PANEL, centerPanel);
8586878889909192939495
panel.setCollapsible(true); panel.setAnimCollapse(false); panel.setButtonAlign(HorizontalAlignment.CENTER); panel.setIcon(Resources.ICONS.table()); panel.setHeading("JSON Table Demo"); panel.setLayout(new FitLayout()); panel.add(grid); panel.setSize(575, 350); // add buttons Button load = new Button("Load JSON", new SelectionListener<ButtonEvent>() {
3940414243444546474849
cp.addButton(new Button("Button " + i, l)); } cp.setButtonAlign(align); cp.setFrame(true); cp.setSize(500, 150); cp.setLayout(new FitLayout()); LayoutContainer c = new LayoutContainer(); c.setStyleAttribute("backgroundColor", "white"); c.setBorders(true); cp.add(c); add(cp, new FlowData(10));
153154155156157158159160161162163
cp = new ContentPanel(); cp.setHeading("Auto Height Edit Plants"); cp.setFrame(true); cp.setIcon(Resources.ICONS.table()); cp.setWidth(600); cp.setLayout(new FitLayout()); grid = new EditorGrid<Plant>(store, cm); grid.setAutoExpandColumn("name"); grid.setBorders(true); grid.addPlugin(checkColumn);
143144145146147148149150151152153
panel.setFrame(true); panel.setCollapsible(true); panel.setAnimCollapse(false); panel.setIcon(Resources.ICONS.table()); panel.setHeading("LiveGrid Grid"); panel.setLayout(new FitLayout()); panel.add(grid); panel.setSize(600, 350); grid.getAriaSupport().setLabelledBy(panel.getHeader().getId() + "-label"); ToolBar toolBar = new ToolBar();
149150151152153154155156157158159
ContentPanel cp = new ContentPanel(); cp.setBodyBorder(false); cp.setIcon(Resources.ICONS.table()); cp.setHeading(widget ? "Column Grouping with Widget" : "Column Grouping"); cp.setButtonAlign(HorizontalAlignment.CENTER); cp.setLayout(new FitLayout()); cp.setSize(600, 300); Grid<Stock> grid = new Grid<Stock>(store, cm); grid.setStyleAttribute("borderTop", "none"); grid.getView().setForceFit(true);
123124125126127128129130131132133
panel.setFrame(true); panel.setCollapsible(true); panel.setAnimCollapse(false); panel.setIcon(Resources.ICONS.table()); panel.setHeading("Editable Buffered Grid (1000 rows)"); panel.setLayout(new FitLayout()); panel.add(grid); panel.setSize(600, 350); add(panel); }
4243444546474849505152
}); TabItem demo = new TabItem(); demo.setScrollMode(Scroll.AUTO); if (entry.isFill()) { demo.setLayout(new FitLayout()); demo.setScrollMode(Scroll.NONE); } demo.setHideMode(entry.getHideMode());
3233343536373839404142
window.setSize(500, 300); window.setPlain(true); window.setModal(true); window.setBlinkModal(true); window.setHeading("Hello Window"); window.setLayout(new FitLayout()); window.addWindowListener(new WindowListener() { @Override public void windowHide(WindowEvent we) { Button open = we.getWindow().getData("open"); open.focus();
113114115116117118119120121122123
} }); ContentPanel cp = new ContentPanel(); cp.setHeading("Async TreePanel"); cp.setLayout(new FitLayout()); cp.add(tree); cp.setSize(315, 400); ToolTipConfig config = new ToolTipConfig(); config.setTitle("Example Information");