Example usage for com.vaadin.ui Alignment Alignment

List of usage examples for com.vaadin.ui Alignment Alignment

Introduction

In this page you can find the example usage for com.vaadin.ui Alignment Alignment.

Prototype

public Alignment(int bitMask) 

Source Link

Usage

From source file:org.lunifera.christmastree.control.DesktopControlComponent.java

License:Creative Commons License

@SuppressWarnings("deprecation")
protected GridLayout buildContent() {
    // common part: create layout
    contentLayout = new GridLayout();
    contentLayout.setImmediate(false);//from ww w  .  j  a  v  a 2s. co  m
    contentLayout.setMargin(false);
    contentLayout.setColumns(4);
    contentLayout.setRows(7);

    // button_bighter
    button_brighter = new Embedded(null, new ThemeResource("./images/brighter.png"));
    button_brighter.setCaption("Brighter");
    button_brighter.setImmediate(true);
    button_brighter.setWidth("-1px");
    button_brighter.setHeight("-1px");
    button_brighter.addClickListener(listener);
    button_brighter.setStyleName("xmas-button-brighter");
    contentLayout.addComponent(button_brighter, 0, 0);
    contentLayout.setComponentAlignment(button_brighter, new Alignment(48));

    // button_darker
    button_darker = new Embedded(null, new ThemeResource("./images/darker.png"));
    button_darker.setCaption("Darker");
    button_darker.setImmediate(true);
    button_darker.setWidth("-1px");
    button_darker.setHeight("-1px");
    button_darker.addClickListener(listener);
    button_darker.setStyleName("xmas-button-darker");
    contentLayout.addComponent(button_darker, 1, 0);
    contentLayout.setComponentAlignment(button_darker, new Alignment(48));

    // button_off
    button_off = new Embedded(null, new ThemeResource("./images/off.png"));
    button_off.setCaption("Off");
    button_off.setImmediate(true);
    button_off.setWidth("-1px");
    button_off.setHeight("-1px");
    button_off.addClickListener(listener);
    button_off.setStyleName("xmas-button-off");
    contentLayout.addComponent(button_off, 2, 0);
    contentLayout.setComponentAlignment(button_off, new Alignment(48));

    // button_on
    button_on = new Embedded(null, new ThemeResource("./images/on.png"));
    button_on.setCaption("On");
    button_on.setImmediate(true);
    button_on.setWidth("-1px");
    button_on.setHeight("-1px");
    button_on.addListener(listener);
    button_on.setStyleName("xmas-button-on");
    contentLayout.addComponent(button_on, 3, 0);
    contentLayout.setComponentAlignment(button_on, new Alignment(48));

    // button_red
    button_red = new Embedded(null, new ThemeResource("./images/red.png"));
    button_red.setCaption("red");
    button_red.setImmediate(true);
    button_red.setWidth("-1px");
    button_red.setHeight("-1px");
    button_red.addListener(listener);
    button_red.setStyleName("xmas-button-red");
    contentLayout.addComponent(button_red, 0, 1);
    contentLayout.setComponentAlignment(button_red, new Alignment(48));

    // button_green
    button_green = new Embedded(null, new ThemeResource("./images/green.png"));
    button_green.setCaption("green");
    button_green.setImmediate(true);
    button_green.setWidth("-1px");
    button_green.setHeight("-1px");
    button_green.setStyleName("xmas-button-green");
    button_green.addListener(listener);
    contentLayout.addComponent(button_green, 1, 1);
    contentLayout.setComponentAlignment(button_green, new Alignment(48));

    // button_blue
    button_blue = new Embedded(null, new ThemeResource("./images/blue.png"));
    button_blue.setCaption("blue");
    button_blue.setImmediate(true);
    button_blue.setWidth("-1px");
    button_blue.setHeight("-1px");
    button_blue.setStyleName("xmas-button-blue");
    button_blue.addListener(listener);
    contentLayout.addComponent(button_blue, 2, 1);
    contentLayout.setComponentAlignment(button_blue, new Alignment(48));

    // button_white
    button_white = new Embedded(null, new ThemeResource("./images/white.png"));
    button_white.setCaption("white");
    button_white.setImmediate(true);
    button_white.setWidth("-1px");
    button_white.setHeight("-1px");
    button_white.addListener(listener);
    button_white.setStyleName("xmas-button-white");
    contentLayout.addComponent(button_white, 3, 1);
    contentLayout.setComponentAlignment(button_white, new Alignment(48));

    // button_darkorange
    button_darkorange = new Embedded(null, new ThemeResource("./images/darkorange.png"));
    button_darkorange.setCaption("dark orange");
    button_darkorange.setImmediate(true);
    button_darkorange.setWidth("-1px");
    button_darkorange.setHeight("-1px");
    button_darkorange.addListener(listener);
    button_darkorange.setStyleName("xmas-button-darkorange");
    contentLayout.addComponent(button_darkorange, 0, 2);
    contentLayout.setComponentAlignment(button_darkorange, new Alignment(48));

    // button_lightgreen
    button_lightgreen = new Embedded(null, new ThemeResource("./images/lightgreen.png"));
    button_lightgreen.setCaption("light green");
    button_lightgreen.setImmediate(true);
    button_lightgreen.setWidth("-1px");
    button_lightgreen.setHeight("-1px");
    button_lightgreen.addListener(listener);
    button_lightgreen.setStyleName("xmas-button-lightgreen");
    contentLayout.addComponent(button_lightgreen, 1, 2);
    contentLayout.setComponentAlignment(button_lightgreen, new Alignment(48));

    // button_lightblue
    button_lightblue = new Embedded(null, new ThemeResource("./images/lightblue.png"));
    button_lightblue.setCaption("light blue");
    button_lightblue.setImmediate(true);
    button_lightblue.setWidth("-1px");
    button_lightblue.setHeight("-1px");
    button_lightblue.addListener(listener);
    button_lightblue.setStyleName("xmas-button-lightblue");
    contentLayout.addComponent(button_lightblue, 2, 2);
    contentLayout.setComponentAlignment(button_lightblue, new Alignment(48));

    // button_flash
    button_flash = new Embedded(null, new ThemeResource("./images/flash.png"));
    button_flash.setCaption("Flash");
    button_flash.setImmediate(true);
    button_flash.setWidth("-1px");
    button_flash.setHeight("-1px");
    button_flash.addListener(listener);
    button_flash.setStyleName("xmas-button-flash");
    contentLayout.addComponent(button_flash, 3, 2);
    contentLayout.setComponentAlignment(button_flash, new Alignment(48));

    // button_orange
    button_orange = new Embedded(null, new ThemeResource("./images/orange.png"));
    button_orange.setCaption("orange");
    button_orange.setImmediate(true);
    button_orange.setWidth("-1px");
    button_orange.setHeight("-1px");
    button_orange.addListener(listener);
    button_orange.setStyleName("xmas-button-orange");
    contentLayout.addComponent(button_orange, 0, 3);
    contentLayout.setComponentAlignment(button_orange, new Alignment(48));

    // button_lightcyan
    button_lightcyan = new Embedded(null, new ThemeResource("./images/lightcyan.png"));
    button_lightcyan.setCaption("ligth cyan");
    button_lightcyan.setImmediate(true);
    button_lightcyan.setWidth("-1px");
    button_lightcyan.setHeight("-1px");
    button_lightcyan.addListener(listener);
    button_lightcyan.setStyleName("xmas-button-lightcyan");
    contentLayout.addComponent(button_lightcyan, 1, 3);
    contentLayout.setComponentAlignment(button_lightcyan, new Alignment(48));

    // button_darkpurple
    button_darkpurple = new Embedded(null, new ThemeResource("./images/darkpurple.png"));
    button_darkpurple.setCaption("dark purple");
    button_darkpurple.setImmediate(true);
    button_darkpurple.setWidth("-1px");
    button_darkpurple.setHeight("-1px");
    button_darkpurple.addListener(listener);
    button_darkpurple.setStyleName("xmas-button-darkpurple");
    contentLayout.addComponent(button_darkpurple, 2, 3);
    contentLayout.setComponentAlignment(button_darkpurple, new Alignment(48));

    // button_strobe
    button_strobe = new Embedded(null, new ThemeResource("./images/strobe.png"));
    button_strobe.setCaption("Strobo");
    button_strobe.setImmediate(true);
    button_strobe.setWidth("-1px");
    button_strobe.setHeight("-1px");
    button_strobe.addListener(listener);
    button_strobe.setStyleName("xmas-button-strobe");
    contentLayout.addComponent(button_strobe, 3, 3);
    contentLayout.setComponentAlignment(button_strobe, new Alignment(48));

    // button_lightorange
    button_lightorange = new Embedded(null, new ThemeResource("./images/lightorange.png"));
    button_lightorange.setCaption("light orange");
    button_lightorange.setImmediate(true);
    button_lightorange.setWidth("-1px");
    button_lightorange.setHeight("-1px");
    button_lightorange.addListener(listener);
    button_lightorange.setStyleName("xmas-button-lightorange");
    contentLayout.addComponent(button_lightorange, 0, 4);
    contentLayout.setComponentAlignment(button_lightorange, new Alignment(48));

    // button_cyan
    button_cyan = new Embedded(null, new ThemeResource("./images/cyan.png"));
    button_cyan.setCaption("cyan");
    button_cyan.setImmediate(false);
    button_cyan.setWidth("-1px");
    button_cyan.setHeight("-1px");
    button_cyan.addListener(listener);
    button_cyan.setStyleName("xmas-button-cyan");
    contentLayout.addComponent(button_cyan, 1, 4);
    contentLayout.setComponentAlignment(button_cyan, new Alignment(48));

    // button_purple
    button_purple = new Embedded(null, new ThemeResource("./images/purple.png"));
    button_purple.setCaption("purple");
    button_purple.setImmediate(true);
    button_purple.setWidth("-1px");
    button_purple.setHeight("-1px");
    button_purple.addListener(listener);
    button_purple.setStyleName("xmas-button-purple");
    contentLayout.addComponent(button_purple, 2, 4);
    contentLayout.setComponentAlignment(button_purple, new Alignment(48));

    // button_fade
    button_fade = new Embedded(null, new ThemeResource("./images/fade.png"));
    button_fade.setCaption("Fade");
    button_fade.setImmediate(true);
    button_fade.setWidth("-1px");
    button_fade.setHeight("-1px");
    button_fade.addListener(listener);
    button_fade.setStyleName("xmas-button-fade");
    contentLayout.addComponent(button_fade, 3, 4);
    contentLayout.setComponentAlignment(button_fade, new Alignment(48));

    // button_yellow
    button_yellow = new Embedded(null, new ThemeResource("./images/yellow.png"));
    button_yellow.setCaption("yellow");
    button_yellow.setImmediate(true);
    button_yellow.setWidth("-1px");
    button_yellow.setHeight("-1px");
    button_yellow.addListener(listener);
    button_yellow.setStyleName("xmas-button-yellow");
    contentLayout.addComponent(button_yellow, 0, 5);
    contentLayout.setComponentAlignment(button_yellow, new Alignment(48));

    // button_darkcyan
    button_darkcyan = new Embedded(null, new ThemeResource("./images/darkcyan.png"));
    button_darkcyan.setCaption("dark cyan");
    button_darkcyan.setImmediate(true);
    button_darkcyan.setWidth("-1px");
    button_darkcyan.setHeight("-1px");
    button_darkcyan.addListener(listener);
    button_darkcyan.setStyleName("xmas-button-darkcyan");
    contentLayout.addComponent(button_darkcyan, 1, 5);
    contentLayout.setComponentAlignment(button_darkcyan, new Alignment(48));

    // button_lightpurple
    button_lightpurple = new Embedded(null, new ThemeResource("./images/lightpurple.png"));
    button_lightpurple.setCaption("light purple");
    button_lightpurple.setImmediate(true);
    button_lightpurple.setWidth("-1px");
    button_lightpurple.setHeight("-1px");
    button_lightpurple.addListener(listener);
    button_lightpurple.setStyleName("xmas-button-lightpurple");
    contentLayout.addComponent(button_lightpurple, 2, 5);
    contentLayout.setComponentAlignment(button_lightpurple, new Alignment(48));

    // button_smooth
    button_smooth = new Embedded(null, new ThemeResource("./images/smooth.png"));
    button_smooth.setCaption("Smooth");
    button_smooth.setImmediate(true);
    button_smooth.setWidth("-1px");
    button_smooth.setHeight("-1px");
    button_smooth.addListener(listener);
    button_smooth.setStyleName("xmas-button-smooth");
    contentLayout.addComponent(button_smooth, 3, 5);
    contentLayout.setComponentAlignment(button_smooth, new Alignment(48));

    // button_snow
    button_snow = new Embedded(null, new ThemeResource("./images/snowflake.png"));
    button_snow.setCaption("Let it snow");
    button_snow.setImmediate(true);
    button_snow.setWidth("-1px");
    button_snow.setHeight("-1px");
    button_snow.addListener(listener);
    button_snow.setStyleName("xmas-button-snow");
    contentLayout.addComponent(button_snow, 0, 6);
    contentLayout.setComponentAlignment(button_snow, new Alignment(48));

    // button_star
    button_star = new Embedded(null, new ThemeResource("./images/star.png"));
    button_star.setCaption("Star");
    button_star.setImmediate(true);
    button_star.setWidth("-1px");
    button_star.setHeight("-1px");
    button_star.addListener(listener);
    button_star.setStyleName("xmas-button-star");
    contentLayout.addComponent(button_star, 1, 6);
    contentLayout.setComponentAlignment(button_star, new Alignment(48));

    // button_angel
    button_angel = new Embedded(null, new ThemeResource("./images/angel.png"));
    button_angel.setCaption("Angel");
    button_angel.setImmediate(true);
    button_angel.setWidth("-1px");
    button_angel.setHeight("-1px");
    button_angel.addListener(listener);
    button_angel.setStyleName("xmas-button-angel");
    contentLayout.addComponent(button_angel, 3, 6);
    contentLayout.setComponentAlignment(button_angel, new Alignment(48));

    return contentLayout;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(true);//from  w w w  . j  a  va2s.co  m
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(true);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // pluginMgrHorSplitPanel_1
    pluginMgrHorSplitPanel_1 = buildPluginMgrHorSplitPanel_1();
    mainLayout.addComponent(pluginMgrHorSplitPanel_1);
    mainLayout.setComponentAlignment(pluginMgrHorSplitPanel_1, new Alignment(9));

    return mainLayout;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private VerticalLayout buildSystemIdPanel() {
    // common part: create layout
    systemIdPanel = new VerticalLayout();
    systemIdPanel.setImmediate(true);//  w w  w  .j  av  a  2  s  .c o  m
    systemIdPanel.setDescription("System Id Settings");
    systemIdPanel.setWidth("-1px");
    systemIdPanel.setHeight("-1px");
    systemIdPanel.setMargin(true);
    systemIdPanel.setSpacing(true);

    // currentKarafUrlTextField
    currentKarafUrlTextField = new TextField();
    currentKarafUrlTextField.setCaption("Current Karaf URL");
    currentKarafUrlTextField.setImmediate(true);
    currentKarafUrlTextField.setWidth("100.0%");
    currentKarafUrlTextField.setHeight("-1px");
    systemIdPanel.addComponent(currentKarafUrlTextField);

    // karafInstanceSelectedTextField
    karafInstanceSelectedTextField = new TextField();
    karafInstanceSelectedTextField.setCaption("Current Karaf Instance Name");
    karafInstanceSelectedTextField.setImmediate(true);
    karafInstanceSelectedTextField.setWidth("100.0%");
    karafInstanceSelectedTextField.setHeight("-1px");
    systemIdPanel.addComponent(karafInstanceSelectedTextField);

    // karafLastUpdatedTextField
    karafLastUpdatedTextField = new TextField();
    karafLastUpdatedTextField.setCaption("Current Instance Last Updated");
    karafLastUpdatedTextField.setImmediate(true);
    karafLastUpdatedTextField.setWidth("100.0%");
    karafLastUpdatedTextField.setHeight("-1px");
    systemIdPanel.addComponent(karafLastUpdatedTextField);

    // systemIdTxtField
    systemIdTxtField = new TextField();
    systemIdTxtField.setCaption("Current Instance System Id");
    systemIdTxtField.setImmediate(true);
    systemIdTxtField.setDescription("Actual System Id of the selected Karaf Instance");
    systemIdTxtField.setWidth("100.0%");
    systemIdTxtField.setHeight("-1px");
    systemIdPanel.addComponent(systemIdTxtField);

    // manifestSystemIdTextField
    manifestSystemIdTextField = new TextField();
    manifestSystemIdTextField.setCaption("Manifest System Id");
    manifestSystemIdTextField.setImmediate(true);
    manifestSystemIdTextField.setDescription("System Id Expected for Manifest download");
    manifestSystemIdTextField.setWidth("100.0%");
    manifestSystemIdTextField.setHeight("-1px");
    systemIdPanel.addComponent(manifestSystemIdTextField);

    // updateSystemIdButton
    updateSystemIdButton = new Button();
    updateSystemIdButton.setCaption("Set Karaf  to Manifest System Id");
    updateSystemIdButton.setImmediate(true);
    updateSystemIdButton.setDescription(
            "Sets the systemId of the selected Karaf instance to the value in the System Id field");
    updateSystemIdButton.setWidth("-1px");
    updateSystemIdButton.setHeight("-1px");
    systemIdPanel.addComponent(updateSystemIdButton);

    // generateRandomManifestSystemIdButton
    generateRandomManifestSystemIdButton = new Button();
    generateRandomManifestSystemIdButton.setCaption("Generate Random Manifest System Id");
    generateRandomManifestSystemIdButton.setImmediate(true);
    generateRandomManifestSystemIdButton.setDescription(
            "Generates a new random system id and sets this value in the selected karaf instance");
    generateRandomManifestSystemIdButton.setWidth("-1px");
    generateRandomManifestSystemIdButton.setHeight("-1px");
    systemIdPanel.addComponent(generateRandomManifestSystemIdButton);

    // remoteIsAccessibleCheckBox
    remoteIsAccessibleCheckBox = new CheckBox();
    remoteIsAccessibleCheckBox.setCaption("  Remote is Accessible");
    remoteIsAccessibleCheckBox.setImmediate(false);
    remoteIsAccessibleCheckBox.setDescription(
            "Check if Remote cannot be direcly updated using ReST commands. (i.e behind firewall)");
    remoteIsAccessibleCheckBox.setWidth("-1px");
    remoteIsAccessibleCheckBox.setHeight("-1px");
    systemIdPanel.addComponent(remoteIsAccessibleCheckBox);

    // allowUpdateMessagesCheckBox
    allowUpdateMessagesCheckBox = new CheckBox();
    allowUpdateMessagesCheckBox.setCaption("  Allow Status Update from Remote");
    allowUpdateMessagesCheckBox.setImmediate(false);
    allowUpdateMessagesCheckBox.setDescription("Status update messages are allowed from remote");
    allowUpdateMessagesCheckBox.setWidth("-1px");
    allowUpdateMessagesCheckBox.setHeight("-1px");
    systemIdPanel.addComponent(allowUpdateMessagesCheckBox);
    systemIdPanel.setComponentAlignment(allowUpdateMessagesCheckBox, new Alignment(33));

    return systemIdPanel;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private VerticalLayout buildVerticalLayout_6() {
    // common part: create layout
    verticalLayout_6 = new VerticalLayout();
    verticalLayout_6.setCaption("Available Plugins Server");
    verticalLayout_6.setImmediate(false);
    verticalLayout_6.setWidth("100.0%");
    verticalLayout_6.setHeight("-1px");
    verticalLayout_6.setMargin(false);//from w w  w.j  av  a  2 s. com

    // horizontalLayout_2
    horizontalLayout_2 = buildHorizontalLayout_2();
    verticalLayout_6.addComponent(horizontalLayout_2);
    verticalLayout_6.setComponentAlignment(horizontalLayout_2, new Alignment(9));

    // horizontalLayout_4
    horizontalLayout_4 = buildHorizontalLayout_4();
    verticalLayout_6.addComponent(horizontalLayout_4);

    return verticalLayout_6;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildHorizontalLayout_2() {
    // common part: create layout
    horizontalLayout_2 = new HorizontalLayout();
    horizontalLayout_2.setImmediate(true);
    horizontalLayout_2.setWidth("-1px");
    horizontalLayout_2.setHeight("-1px");
    horizontalLayout_2.setMargin(true);// w  ww.  j a va  2 s .  c  om
    horizontalLayout_2.setSpacing(true);

    // availablepluginsLastUpdatedTextField
    availablepluginsLastUpdatedTextField = new TextField();
    availablepluginsLastUpdatedTextField.setCaption("Available Pugins Last Updated");
    availablepluginsLastUpdatedTextField.setImmediate(true);
    availablepluginsLastUpdatedTextField.setWidth("-1px");
    availablepluginsLastUpdatedTextField.setHeight("-1px");
    horizontalLayout_2.addComponent(availablepluginsLastUpdatedTextField);
    horizontalLayout_2.setExpandRatio(availablepluginsLastUpdatedTextField, 1.0f);

    // reloadAvailablePluginsButton
    reloadAvailablePluginsButton = new Button();
    reloadAvailablePluginsButton.setCaption("Reload Available Plugins");
    reloadAvailablePluginsButton.setImmediate(true);
    reloadAvailablePluginsButton.setWidth("-1px");
    reloadAvailablePluginsButton.setHeight("-1px");
    horizontalLayout_2.addComponent(reloadAvailablePluginsButton);
    horizontalLayout_2.setExpandRatio(reloadAvailablePluginsButton, 1.0f);
    horizontalLayout_2.setComponentAlignment(reloadAvailablePluginsButton, new Alignment(10));

    return horizontalLayout_2;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildHorizontalLayout_6() {
    // common part: create layout
    horizontalLayout_6 = new HorizontalLayout();
    horizontalLayout_6.setImmediate(false);
    horizontalLayout_6.setWidth("-1px");
    horizontalLayout_6.setHeight("-1px");
    horizontalLayout_6.setMargin(false);
    horizontalLayout_6.setSpacing(true);

    // verticalLayout_3
    verticalLayout_3 = buildVerticalLayout_3();
    horizontalLayout_6.addComponent(verticalLayout_3);

    // updatePluginServerButton
    updatePluginServerButton = new Button();
    updatePluginServerButton.setCaption("Update Plugin Server Settings");
    updatePluginServerButton.setImmediate(true);
    updatePluginServerButton.setWidth("-1px");
    updatePluginServerButton.setHeight("-1px");
    horizontalLayout_6.addComponent(updatePluginServerButton);
    horizontalLayout_6.setComponentAlignment(updatePluginServerButton, new Alignment(9));

    return horizontalLayout_6;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildHorizontalLayout_5() {
    // common part: create layout
    horizontalLayout_5 = new HorizontalLayout();
    horizontalLayout_5.setImmediate(false);
    horizontalLayout_5.setWidth("100.0%");
    horizontalLayout_5.setHeight("-1px");
    horizontalLayout_5.setMargin(false);
    horizontalLayout_5.setSpacing(true);

    // licenceShoppingCartUrlTxtField
    licenceShoppingCartUrlTxtField = new TextField();
    licenceShoppingCartUrlTxtField.setCaption("Licence Shopping Cart URL");
    licenceShoppingCartUrlTxtField.setImmediate(true);
    licenceShoppingCartUrlTxtField.setWidth("100.0%");
    licenceShoppingCartUrlTxtField.setHeight("-1px");
    horizontalLayout_5.addComponent(licenceShoppingCartUrlTxtField);
    horizontalLayout_5.setExpandRatio(licenceShoppingCartUrlTxtField, 1.0f);

    // openShoppingCartLink
    openShoppingCartLink = new Link();
    openShoppingCartLink.setCaption("Open Shopping Cart");
    openShoppingCartLink.setImmediate(true);
    openShoppingCartLink.setWidth("100.0%");
    openShoppingCartLink.setHeight("-1px");
    horizontalLayout_5.addComponent(openShoppingCartLink);
    horizontalLayout_5.setExpandRatio(openShoppingCartLink, 0.5f);
    horizontalLayout_5.setComponentAlignment(openShoppingCartLink, new Alignment(9));

    return horizontalLayout_5;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.PluginManagerUIMainPanel.java

License:Apache License

@AutoGenerated
private VerticalLayout buildVerticalLayout_7() {
    // common part: create layout
    verticalLayout_7 = new VerticalLayout();
    verticalLayout_7.setImmediate(false);
    verticalLayout_7.setWidth("100.0%");
    verticalLayout_7.setHeight("-1px");
    verticalLayout_7.setMargin(false);//from   ww  w.j  av  a 2s  .co m
    verticalLayout_7.setSpacing(true);

    // systemMessagesTextArea
    systemMessagesTextArea = new TextArea();
    systemMessagesTextArea.setCaption("System Messages");
    systemMessagesTextArea.setImmediate(true);
    systemMessagesTextArea.setWidth("100.0%");
    systemMessagesTextArea.setHeight("6.0em");
    verticalLayout_7.addComponent(systemMessagesTextArea);

    // seeFullMessageButton
    seeFullMessageButton = new Button();
    seeFullMessageButton.setCaption("See Full Message");
    seeFullMessageButton.setImmediate(true);
    seeFullMessageButton.setDescription("Opens panel to see full error message");
    seeFullMessageButton.setWidth("-1px");
    seeFullMessageButton.setHeight("-1px");
    verticalLayout_7.addComponent(seeFullMessageButton);
    verticalLayout_7.setComponentAlignment(seeFullMessageButton, new Alignment(6));

    return verticalLayout_7;
}

From source file:org.opennms.features.pluginmgr.vaadin.pluginmanager.SimpleInstanceListEditor.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);//w w w  . ja va 2  s . co  m
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // exitButton
    exitButton = new Button();
    exitButton.setCaption("Exit");
    exitButton.setImmediate(true);
    exitButton.setWidth("-1px");
    exitButton.setHeight("-1px");
    mainLayout.addComponent(exitButton);
    mainLayout.setComponentAlignment(exitButton, new Alignment(6));

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);

    return mainLayout;
}

From source file:org.opennms.features.vaadin.pmatrix.ui.PmatrixTable.java

License:Open Source License

@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
    // common part: create layout
    verticalLayout_1 = new VerticalLayout();
    verticalLayout_1.setImmediate(false);
    verticalLayout_1.setWidth("-1px");
    verticalLayout_1.setHeight("-1px");
    verticalLayout_1.setMargin(true);//from   w w  w.  j a v  a  2 s.  com

    // label_1
    label_1 = new Label();
    label_1.setImmediate(true);
    label_1.setWidth("-1px");
    label_1.setHeight("-1px");
    label_1.setValue("Label");
    verticalLayout_1.addComponent(label_1);
    verticalLayout_1.setComponentAlignment(label_1, new Alignment(20));

    // pmatrixTable
    pmatrixTable = new Table();
    pmatrixTable.setImmediate(true);
    pmatrixTable.setWidth("2000px");
    pmatrixTable.setHeight("900px");
    verticalLayout_1.addComponent(pmatrixTable);

    // label_2
    label_2 = new Label();
    label_2.setImmediate(false);
    label_2.setWidth("-1px");
    label_2.setHeight("-1px");
    label_2.setValue("Label");
    verticalLayout_1.addComponent(label_2);

    return verticalLayout_1;
}