Example usage for com.vaadin.ui Panel Panel

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

Introduction

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

Prototype

public Panel() 

Source Link

Document

Creates a new empty panel.

Usage

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.pa.letturaparametri.LetturaParametriPanel.java

License:Apache License

public LetturaParametriPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();// w  ww  .  j  ava2s .  com
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.pa.richiedireportmissioni.RichiediReportMissioniPAPanel.java

License:Apache License

public RichiediReportMissioniPAPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();//from w ww . ja va2s. c o  m
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.pa.simulazionemissioni.SimulazioneMissioniPanel.java

License:Apache License

public SimulazioneMissioniPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();/*from  ww  w.j  a  v a  2s .c om*/
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.pa.visualizzamissioniautorizzate.VisualizzaMissioniAutorizzatePAPanel.java

License:Apache License

public VisualizzaMissioniAutorizzatePAPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();/*w  w w.  ja v a2 s  . c o m*/
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.societaditrasporto.aggiornastatoveicoli.AggiornaStatoVeicoliStPanel.java

License:Apache License

public AggiornaStatoVeicoliStPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();//from w  w w .  j  a  va  2  s .  com
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.societaditrasporto.performanceveicoli.PerformanceVeicoliStPanel.java

License:Apache License

public PerformanceVeicoliStPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();//from  ww w . j av a 2  s. co  m
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.societaditrasporto.visualizzamissioniautorizzate.VisualizzaMissioniAutorizzateStPanel.java

License:Apache License

public VisualizzaMissioniAutorizzateStPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();//from www  .jav a2 s  .  c o  m
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.trasportatoreautonomo.performanceveicoli.PerformanceVeicoliTrPanel.java

License:Apache License

public PerformanceVeicoliTrPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();/* w w  w. ja v a  2 s  .  c  o m*/
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.dettaglio.trasportatoreautonomo.visualizzamissioniautorizzate.VisualizzaMissioniAutorizzateTrPanel.java

License:Apache License

public VisualizzaMissioniAutorizzateTrPanel(Task task, DettaglioPage taskPage) {
    this.task = task;
    this.taskPage = taskPage;

    this.taskService = getDefaultProcessEngine().getTaskService();
    this.formService = getDefaultProcessEngine().getFormService();
    this.repositoryService = getDefaultProcessEngine().getRepositoryService();
    this.viewManager = get().getViewManager();
    this.i18nManager = get().getI18nManager();
    this.notificationManager = get().getNotificationManager();
    setSizeFull();// w w w  . ja  v a2 s . co m
    addStyleName(STYLE_DETAIL_PANEL);

    mainPanel = new Panel();
    mainPanel.addStyleName(PANEL_LIGHT);
    mainPanel.setSizeFull();
    super.addComponent(mainPanel);
}

From source file:it.vige.greenarea.bpm.custom.ui.LoginPanel.java

License:Apache License

private void addInputField() {
    VerticalLayout layout = new VerticalLayout();
    layout.setSpacing(true);//  w  w  w.j  av a  2  s.  c o m
    layout.setWidth(100, UNITS_PERCENTAGE);
    loginPanel.addComponent(layout);

    Panel textFieldPanel = new Panel(); // Hack: actionHandlers can only be
    // attached to panels or windows
    textFieldPanel.addStyleName(PANEL_LIGHT);
    textFieldPanel.setContent(new VerticalLayout());
    textFieldPanel.setWidth(100, UNITS_PERCENTAGE);
    layout.addComponent(textFieldPanel);
    layout.setExpandRatio(textFieldPanel, 1.0f);

    Label labelUserName = new Label(i18nManager.getMessage(USER_NAME_TITLE));
    labelUserName.addStyleName(LABEL_SMALL);
    userNameInputField = new TextField();
    userNameInputField.setWidth(100, UNITS_PERCENTAGE);
    Label labelPassword = new Label(i18nManager.getMessage(PASSWORD_TITLE));
    labelPassword.addStyleName(LABEL_SMALL);
    passwordInputField = new PasswordField();
    passwordInputField.setWidth(100, UNITS_PERCENTAGE);
    textFieldPanel.addComponent(labelUserName);
    textFieldPanel.addComponent(userNameInputField);
    textFieldPanel.addComponent(labelPassword);
    textFieldPanel.addComponent(passwordInputField);

    // Hack to catch keyboard 'enter'
    textFieldPanel.addActionHandler(new Handler() {
        private static final long serialVersionUID = 6928598745792215505L;

        public void handleAction(Action action, Object sender, Object target) {
            login(userNameInputField.getValue().toString(), passwordInputField.getValue().toString());
        }

        public Action[] getActions(Object target, Object sender) {
            return new Action[] { new ShortcutAction("enter", ENTER, null) };
        }
    });

    Button loginButton = new Button(i18nManager.getMessage(LOGIN));
    layout.addComponent(loginButton);
    layout.setComponentAlignment(loginButton, MIDDLE_LEFT);
    loginButton.addListener(new ClickListener() {
        private static final long serialVersionUID = 7781253151592188006L;

        public void buttonClick(ClickEvent event) {
            login(userNameInputField.getValue().toString(), passwordInputField.getValue().toString());
        }
    });
}