@Override public void setMargin(boolean enabled) { setMargin(new MarginInfo(enabled)); }
/** * {@inheritDoc} * <p> * After reading the design, cursorY is set to point to a row outside of the * GridLayout area. CursorX is reset to 0. */ @Override public void readDesign(Element design, DesignContext designContext) { super.readDesign(design, designContext); setMargin(readMargin(design, getMargin(), designContext)); if (design.childNodeSize() > 0) { // Touch content only if there is some content specified. This is // needed to be able to use extended GridLayouts which add // components in the constructor (e.g. Designs based on GridLayout). readChildComponents(design.children(), designContext); } // Set cursor position explicitly setCursorY(getRows()); setCursorX(0); }
public MGridLayout(int columns, int rows) { super(columns, rows); super.setSpacing(true); super.setMargin(true); }
public MGridLayout(int columns, int rows, Component... children) { super(columns, rows, children); super.setSpacing(true); super.setMargin(true); }
public MGridLayout() { super.setSpacing(true); super.setMargin(true); }
public DefaultGridLayoutBuilder(int columns, int rows) { super(new GridLayout(columns, rows)); getInstance().setMargin(false); getInstance().setSpacing(false); }
protected GridLayout createInfoSectionLayout(int columns, int rows) { GridLayout layout = new GridLayout(columns, rows); layout.setSpacing(true); layout.setWidth(100, UNITS_PERCENTAGE); layout.setMargin(true, false, true, false); infoPanelLayout.addComponent(layout); return layout; }
private void init() { layout.setSpacing(true); layout.setMargin(true); layout.setWidth("100%"); this.addStyleName(ValoTheme.PANEL_BORDERLESS); this.setContent(layout); this.setSizeFull(); }
protected void initPeopleGrid() { peopleGrid = new GridLayout(); peopleGrid.setColumns(2); peopleGrid.setSpacing(true); peopleGrid.setMargin(true, false, false, false); peopleGrid.setWidth(100, UNITS_PERCENTAGE); peopleLayout.addComponent(peopleGrid); }
protected void initPeopleGrid() { peopleGrid = new GridLayout(); peopleGrid.setColumns(2); peopleGrid.setSpacing(true); peopleGrid.setMargin(true, false, false, false); peopleGrid.setWidth(100, UNITS_PERCENTAGE); layout.addComponent(peopleGrid); populatePeopleGrid(); }
public UiLayout100() { this.layout = new GridLayout(3,1); layout.setMargin(true); layout.setSpacing(true); layout.setHideEmptyRowsAndColumns(true); layout.setColumnExpandRatio(0, 0.3f); layout.setColumnExpandRatio(1, 0.7f); layout.setColumnExpandRatio(2, 0); // layout.setSizeFull(); layout.setWidth("100%"); rows = 0; }
private void init() { setModal(true); setHeight("150px"); setWidth("300px"); this.layout = new GridLayout(1, 2); this.layout.setSpacing(true); this.layout.setWidth("95%"); this.layout.setMargin(true); this.setContent(this.layout); }
protected void initEventGrid() { eventGrid = new GridLayout(); eventGrid.setColumns(2); eventGrid.setSpacing(true); eventGrid.setMargin(true, false, false, false); eventGrid.setWidth("100%"); eventGrid.setColumnExpandRatio(1, 1.0f); eventGrid.addStyleName(ExplorerLayout.STYLE_TASK_EVENT_GRID); addComponent(eventGrid); }
private void init() { setModal(true); setHeight("150px"); setWidth("300px"); this.layout = new GridLayout(1, 2); this.layout.setSpacing(true); this.layout.setWidth("95%"); this.layout.setMargin(true); this.setContent(this.layout); }
public AbstractColLayout(int columns) { this.columns = columns; this.layout = new GridLayout(columns*3,1); layout.setMargin(true); layout.setSpacing(true); layout.setHideEmptyRowsAndColumns(true); for (int i = 0; i < columns; i++) { layout.setColumnExpandRatio(i*3 + 0, 0.3f); layout.setColumnExpandRatio(i*3 + 1, 0.7f); layout.setColumnExpandRatio(i*3 + 2, 0); } // layout.setSizeFull(); layout.setWidth("100%"); rows = 0; }
protected void initComponentLayout() { selectedComponentLayout = new GridLayout(1,2); selectedComponentLayout.setSizeFull(); selectedComponentLayout.setMargin(true); selectedComponentLayout.setSpacing(true); selectedComponentLayout.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_CREATE_DETAIL); windowLayout.addComponent(selectedComponentLayout); windowLayout.setExpandRatio(selectedComponentLayout, 1.0f); selectedComponentLayout.setRowExpandRatio(0, 1.0f); selectedComponentLayout.setColumnExpandRatio(0, 1.0f); }
public void refresh() { GridLayout layout = new GridLayout(); layout.setWidth("100%"); layout.setSpacing(true); layout.setMargin(true); Label configLabel = new Label("Solr Configuration"); configLabel.addStyleName(ValoTheme.LABEL_HUGE); configLabel.setSizeUndefined(); layout.addComponent(configLabel); layout.addComponent(this.createConfigurationPanel()); this.setContent(layout); }
public void refresh() { GridLayout layout = new GridLayout(); layout.setWidth("100%"); layout.setSpacing(true); layout.setMargin(true); Label configLabel = new Label("General Configuration"); configLabel.addStyleName(ValoTheme.LABEL_HUGE); configLabel.setSizeUndefined(); layout.addComponent(configLabel); layout.addComponent(this.createConfigurationPanel()); this.setContent(layout); } }
public void refresh() { GridLayout layout = new GridLayout(); layout.setWidth("100%"); layout.setSpacing(true); layout.setMargin(true); Label configLabel = new Label("Control Configuration"); configLabel.addStyleName(ValoTheme.LABEL_HUGE); configLabel.setSizeUndefined(); layout.addComponent(configLabel); layout.addComponent(this.createConfigurationPanel()); this.setContent(layout); } }
private void init() { layout = new GridLayout(5, 6); layout.setSpacing(true); layout.setMargin(true); layout.setWidth("100%"); this.namesLayout = new VerticalLayout(); this.namesLayout.setSpacing(true); this.addStyleName(ValoTheme.PANEL_BORDERLESS); Label mappingConfigurationLabel = new Label("Target parameter names"); mappingConfigurationLabel.setStyleName(ValoTheme.LABEL_HUGE); layout.addComponent(mappingConfigurationLabel, 0, 0, 1, 0); this.layout.addComponent(this.namesLayout, 0, 1); this.setContent(layout); this.setSizeFull(); }