use of com.vaadin.shared.ui.MarginInfo in project VaadinUtils by rlsutton1.
the class BaseCrudView method buildActionLayout.
private void buildActionLayout() {
actionLayout = new HorizontalLayout();
actionLayout.setWidth("100%");
actionLayout.setMargin(new MarginInfo(false, true, false, false));
actionLabel = new Label(" Action");
actionLabel.setContentMode(ContentMode.HTML);
actionLabel.setWidth("50");
actionGroupLayout.addStyleName("v-component-group");
actionLayout.addComponent(actionGroupLayout);
actionGroupLayout.addComponent(actionLabel);
actionCombo = new ComboBox(null);
actionCombo.setWidth("160");
actionCombo.setNullSelectionAllowed(false);
actionCombo.setTextInputAllowed(false);
actionGroupLayout.addComponent(actionCombo);
addCrudActions();
actionGroupLayout.addComponent(actionApplyButton);
actionApplyButton.setId("applyButton");
actionMessage = new Label("", ContentMode.HTML);
actionGroupLayout.addComponent(actionMessage);
String newButtonLabel = getNewButtonLabel();
if (newButtonLabel == null) {
newButtonLabel = "";
}
actionNewButton.setCaption(newButtonLabel);
actionNewButton.setId("CrudNewButton-" + newButtonLabel.replace(" ", ""));
actionLayout.addComponent(actionNewButton);
actionLayout.setComponentAlignment(actionGroupLayout, Alignment.MIDDLE_LEFT);
actionLayout.setComponentAlignment(actionNewButton, Alignment.MIDDLE_RIGHT);
actionLayout.setExpandRatio(actionGroupLayout, 1.0f);
actionLayout.setHeight("35");
}
use of com.vaadin.shared.ui.MarginInfo in project cuba by cuba-platform.
the class CubaColorPickerPopup method createSelectTab.
@Override
protected Component createSelectTab() {
VerticalLayout selLayout = new VerticalLayout();
selLayout.setMargin(new MarginInfo(false, false, true, false));
selLayout.addComponent(selPreview);
selLayout.addStyleName("seltab");
colorSelect = new CubaColorPickerSelect();
colorSelect.addColorChangeListener(this);
selLayout.addComponent(colorSelect);
return selLayout;
}
use of com.vaadin.shared.ui.MarginInfo in project cuba by cuba-platform.
the class WebWindow method setMargin.
@Override
public void setMargin(com.haulmont.cuba.gui.components.MarginInfo marginInfo) {
if (getContainer() instanceof Layout.MarginHandler) {
MarginInfo vMargin = new MarginInfo(marginInfo.hasTop(), marginInfo.hasRight(), marginInfo.hasBottom(), marginInfo.hasLeft());
((Layout.MarginHandler) getContainer()).setMargin(vMargin);
}
}
use of com.vaadin.shared.ui.MarginInfo in project cuba by cuba-platform.
the class WebAbstractBox method setMargin.
@Override
public void setMargin(com.haulmont.cuba.gui.components.MarginInfo marginInfo) {
MarginInfo vMargin = new MarginInfo(marginInfo.hasTop(), marginInfo.hasRight(), marginInfo.hasBottom(), marginInfo.hasLeft());
component.setMargin(vMargin);
}
use of com.vaadin.shared.ui.MarginInfo in project cuba by cuba-platform.
the class WebFilter method setMargin.
@Override
public void setMargin(com.haulmont.cuba.gui.components.MarginInfo marginInfo) {
MarginInfo vMargin = new MarginInfo(marginInfo.hasTop(), marginInfo.hasRight(), marginInfo.hasBottom(), marginInfo.hasLeft());
component.setMargin(vMargin);
}
Aggregations