private Component buildFormContent() {

    VerticalLayout formContent = new VerticalLayout();
    formContent.setSpacing(true);

    Panel frmPanel = new Panel();
    frmPanel.setStyleName(AitTheme.PANEL_FORM);
    frmPanel.setIcon(FontAwesome.EDIT);
    frmPanel.setWidth("100%");
    frmPanel.setCaption("Datos a eliminar");
    frmPanel.setContent(this.frm_organismo);
    this.frm_organismo.enabled();
    formContent.setMargin(true);
    Panel gridPanel = new Panel();
    gridPanel.setStyleName(AitTheme.PANEL_GRID);
    gridPanel.setIcon(FontAwesome.TABLE);
    gridPanel.setWidth("100%");
    gridPanel.setCaption("Organismos Financiadores registrados");
    gridPanel.setContent(this.grid_organismo);
    formContent.setMargin(true);
    formContent.addComponent(gridPanel);
    formContent.addComponent(frmPanel);

    this.frm_organismo.update();
    Responsive.makeResponsive(formContent);
    return formContent;
  }
  /** Llenado del Combo Box */
  private void buildContent() {

    Panel pn_res = new Panel("Registre el Número de Resolución Revalorización");
    Panel pn_dep = new Panel("Seleccione una Dependencia");
    Panel pn_fecha = new Panel("Registre Fecha Elaboracion Reporte");
    pn_res.setIcon(FontAwesome.PRINT);
    pn_res.setStyleName(AitTheme.PANEL_PRINT);
    pn_dep.setIcon(FontAwesome.PRINT);
    pn_dep.setStyleName(AitTheme.PANEL_PRINT);
    pn_fecha.setIcon(FontAwesome.PRINT);
    pn_fecha.setStyleName(AitTheme.PANEL_PRINT);

    GridLayout gridl_res = new GridLayout(2, 1);
    gridl_res.setSizeFull();
    gridl_res.setColumnExpandRatio(0, 0);
    gridl_res.addComponent(this.txt_no_resolucion, 0, 0);
    pn_res.setContent(gridl_res);

    this.addComponent(pn_res, 0, 0, 1, 0);

    GridLayout gridl_fecha = new GridLayout(2, 1);
    gridl_fecha.setSizeFull();
    gridl_fecha.setColumnExpandRatio(0, 0);
    gridl_fecha.addComponent(this.dt_fecha, 0, 0);
    pn_fecha.setContent(gridl_fecha);

    this.addComponent(pn_fecha, 0, 2, 1, 2);
  }
  private void buildContent() {

    this.cb_Grupo.setWidth("100%");
    this.cb_Auxiliar.setWidth("100%");
    this.cb_Activos.setWidth("100%");

    setColumnExpandRatio(0, 0.3f);
    setColumnExpandRatio(1, 1f);
    setColumnExpandRatio(2, 1f);

    GridLayout gridlFecha = new GridLayout(1, 1);
    gridlFecha.setWidth("100%");
    GridLayout gridlCodigo = new GridLayout(1, 1);
    gridlCodigo.setWidth("100%");
    gridlCodigo.setHeight("100%");
    GridLayout gridlCombos = new GridLayout(1, 3);
    gridlCombos.setWidth("100%");
    gridlCodigo.setMargin(true);
    gridlFecha.setMargin(true);
    gridlCombos.setMargin(true);

    Panel pnFecha = new Panel("Fecha Elaboracion");
    pnFecha.setContent(gridlFecha);
    pnFecha.setStyleName(AitTheme.PANEL_PRINT);
    pnFecha.setIcon(FontAwesome.EDIT);
    pnCodigo = new Panel("Seleccion por codigo");
    pnCodigo.setContent(gridlCodigo);
    pnCodigo.setStyleName(AitTheme.PANEL_PRINT);
    pnCodigo.setIcon(FontAwesome.EDIT);
    pnCombos = new Panel("Seleccion por Grupo y Auxiliar Contable");
    pnCombos.setContent(gridlCombos);
    pnCombos.setStyleName(AitTheme.PANEL_PRINT);
    pnCombos.setIcon(FontAwesome.EDIT);

    pnCodigo.addClickListener(this);
    pnCombos.addClickListener(this);

    gridlFecha.addComponent(dtf_fechaElaboracion, 0, 0);
    gridlCodigo.addComponent(txt_codigoActivo, 0, 0);
    gridlCombos.addComponent(this.cb_Grupo, 0, 0);
    gridlCombos.addComponent(this.cb_Auxiliar, 0, 1);
    gridlCombos.addComponent(this.cb_Activos, 0, 2);

    addComponent(pnFecha, 0, 0);
    addComponent(pnCodigo, 1, 0);
    addComponent(pnCombos, 1, 1, 1, 3);
  }
  private Component buildFormContent() {

    VerticalLayout formContent = new VerticalLayout();
    formContent.setSpacing(true);

    Panel frmPanel = new Panel();
    frmPanel.setStyleName(AitTheme.PANEL_FORM);
    frmPanel.setIcon(FontAwesome.EDIT);
    frmPanel.setWidth("100%");
    frmPanel.setCaption("Servidor con Atribuciones de Autorizacion");

    GridLayout gridlFunionario = new GridLayout(3, 1);
    gridlFunionario.addComponent(txtDependencia, 0, 0);
    gridlFunionario.addComponent(txtUnidadOrganizacional, 1, 0);
    gridlFunionario.addComponent(txt_nombre_servidor, 2, 0);

    gridlFunionario.setMargin(true);
    gridlFunionario.setSpacing(true);
    gridlFunionario.setWidth("100%");
    frmPanel.setContent(gridlFunionario);

    formContent.setMargin(true);
    formContent.addComponent(frmPanel);
    Panel gridPanel = new Panel();
    gridPanel.setWidth("100%");
    gridPanel.setCaption("Documentos que Puede Autorizar");
    gridPanel.setContent(this.gridTipoAutorizacion);
    gridPanel.setStyleName(AitTheme.PANEL_GRID);
    gridPanel.setIcon(FontAwesome.TABLE);
    formContent.setMargin(true);

    Panel gridpin = new Panel();
    gridpin.setStyleName(AitTheme.PANEL_FORM);
    gridpin.setIcon(FontAwesome.TABLE);
    gridpin.setWidth("100%");
    gridpin.setCaption("N. PIN");
    gridpin.setContent(this.frm_pin);
    formContent.setMargin(true);

    formContent.addComponent(frmPanel);
    formContent.addComponent(gridPanel);
    formContent.addComponent(gridpin);
    Responsive.makeResponsive(formContent);
    return formContent;
  }
  private void addBanner() {
    Panel bannerPanel = new Panel();
    bannerPanel.setHeight(Global.APP_BANNER_HEIGHT);
    bannerPanel.setStyleName(BANNERPANEL.toString());

    VerticalLayout banner = new VerticalLayout();
    banner.addComponent(bannerPanel);
    banner.setHeightUndefined();

    header.addComponent(banner);
    header.setComponentAlignment(banner, Alignment.TOP_CENTER);
  }
  @Override
  public void enter(final ViewChangeEvent event) {

    final Panel rootPanel = new Panel();
    rootPanel.setStyleName("tenantconfig-root");

    final VerticalLayout rootLayout = new VerticalLayout();
    rootLayout.setSizeFull();
    rootLayout.setMargin(true);
    rootLayout.setSpacing(true);
    rootLayout.addComponent(defaultDistributionSetTypeLayout);
    rootLayout.addComponent(authenticationConfigurationView);
    final HorizontalLayout buttonContent = saveConfigurationButtonsLayout();
    rootLayout.addComponent(buttonContent);
    rootLayout.setComponentAlignment(buttonContent, Alignment.BOTTOM_LEFT);
    rootPanel.setContent(rootLayout);
    setCompositionRoot(rootPanel);

    authenticationConfigurationView.addChangeListener(this);
    defaultDistributionSetTypeLayout.addChangeListener(this);
  }
  @Override
  public void buildComponent(
      String date, String title, String content, Long id, String authorName) {

    addStyleName("subjectNews");

    Label subjectDate = new Label();
    subjectDate.setContentMode(labelContentMode);
    subjectDate.setValue("Publicado: " + date);
    subjectDate.setStyleName(ValoTheme.LABEL_TINY);
    subjectDate.setSizeUndefined();

    // subject
    Label subject = new Label();
    subject.setContentMode(labelContentMode);
    subject.setValue(this.subjectName);

    // content
    Label contentSubject = new Label();
    contentSubject.setContentMode(labelContentMode);
    contentSubject.setValue(content);
    contentSubject.setWidth("100%");

    // title
    Label titleSubject = new Label();
    titleSubject.setContentMode(labelContentMode);
    titleSubject.setValue(title);
    titleSubject.setStyleName(ValoTheme.LABEL_BOLD);

    // author
    Label autName = new Label();
    autName.setContentMode(labelContentMode);
    autName.setValue("Autor: " + authorName);
    autName.setStyleName(ValoTheme.LABEL_TINY);
    autName.setSizeUndefined();

    Panel panel = new Panel();
    panel.setContent(contentSubject);
    panel.setSizeFull();
    panel.setHeight("100px");
    panel.setStyleName(ValoTheme.PANEL_WELL);

    HorizontalLayout topHorizontalLayout = new HorizontalLayout();
    HorizontalLayout botHorizontalLayout = new HorizontalLayout();
    HorizontalLayout auxHorizontalLayout = new HorizontalLayout();
    VerticalLayout elementLayout = new VerticalLayout();

    topHorizontalLayout.setSizeFull();
    topHorizontalLayout.setSpacing(false);
    topHorizontalLayout.setMargin(false);
    topHorizontalLayout.addComponents(autName, subjectDate);
    topHorizontalLayout.setComponentAlignment(subjectDate, Alignment.MIDDLE_RIGHT);
    topHorizontalLayout.setComponentAlignment(autName, Alignment.MIDDLE_LEFT);

    Button editButton = new Button("Editar");
    editButton.setData(id);
    editButton.addClickListener(parentView);
    editButton.addStyleName(ValoTheme.BUTTON_TINY);
    editButton.setWidth("70%");
    editButton.setHeight("70%");

    Button deleteButton = new Button("Eliminar");
    deleteButton.setData(id);
    deleteButton.addClickListener(parentView);
    deleteButton.addStyleName(ValoTheme.BUTTON_TINY);
    deleteButton.setWidth("70%");
    deleteButton.setHeight("70%");

    botHorizontalLayout.setSizeUndefined();
    botHorizontalLayout.setSpacing(false);
    botHorizontalLayout.addComponents(editButton, deleteButton);

    auxHorizontalLayout.setSizeFull();
    auxHorizontalLayout.setSpacing(false);

    elementLayout.setMargin(false);
    elementLayout.setSizeFull();
    elementLayout.setSpacing(false);

    if (id == null) auxHorizontalLayout.addComponents(titleSubject);
    else {
      auxHorizontalLayout.addComponents(titleSubject, botHorizontalLayout);
      auxHorizontalLayout.setComponentAlignment(botHorizontalLayout, Alignment.MIDDLE_RIGHT);
    }

    elementLayout.addComponents(auxHorizontalLayout, panel, topHorizontalLayout, new Hr());

    this.mainLayout.addComponent(elementLayout);
  }
  protected Panel createMapPanel(final ConfigurationParameterMapImpl parameter) {
    Panel paramPanel = new Panel();
    paramPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
    paramPanel.setWidth("100%");

    GridLayout paramLayout = new GridLayout(2, 3);
    paramLayout.setSpacing(true);
    paramLayout.setSizeFull();
    paramLayout.setMargin(true);
    paramLayout.setColumnExpandRatio(0, .25f);
    paramLayout.setColumnExpandRatio(1, .75f);

    final Map<String, String> valueMap = parameter.getValue();

    final GridLayout mapLayout =
        new GridLayout(5, (valueMap.size() != 0 ? valueMap.size() : 1) + 1);
    mapLayout.setColumnExpandRatio(0, .05f);
    mapLayout.setColumnExpandRatio(1, .425f);
    mapLayout.setColumnExpandRatio(2, .05f);
    mapLayout.setColumnExpandRatio(3, .425f);
    mapLayout.setColumnExpandRatio(4, .05f);

    mapLayout.setMargin(true);
    mapLayout.setSpacing(true);
    mapLayout.setWidth("100%");

    int i = 0;

    for (final String key : valueMap.keySet()) {
      final Label keyLabel = new Label("Name:");
      final Label valueLabel = new Label("Value:");

      final TextField keyField = new TextField();
      keyField.setValue(key);
      keyField.setWidth("100%");
      keyField.setNullSettingAllowed(false);
      keyField.addValidator(
          new NonZeroLengthStringValidator("Then configuration value name cannot be empty!"));
      keyField.setValidationVisible(false);

      final TextField valueField = new TextField();
      valueField.setWidth("100%");
      valueField.setValue(valueMap.get(key));
      valueField.setNullSettingAllowed(false);
      valueField.addValidator(
          new NonZeroLengthStringValidator("Then configuration value cannot be empty!"));
      valueField.setValidationVisible(false);

      mapLayout.addComponent(keyLabel, 0, i);
      mapLayout.setComponentAlignment(keyLabel, Alignment.MIDDLE_RIGHT);
      mapLayout.addComponent(keyField, 1, i);
      mapLayout.addComponent(valueLabel, 2, i);
      mapLayout.setComponentAlignment(valueLabel, Alignment.MIDDLE_RIGHT);
      mapLayout.addComponent(valueField, 3, i);
      final String mapKey = parameter.getName() + i;
      TextFieldKeyValuePair pair = new TextFieldKeyValuePair();
      pair.key = keyField;
      pair.value = valueField;

      this.mapTextFields.put(mapKey, pair);

      final Button removeButton = new Button("remove");
      removeButton.setStyleName(ValoTheme.BUTTON_LINK);
      removeButton.addClickListener(
          new Button.ClickListener() {
            public void buttonClick(ClickEvent event) {
              valueMap.remove(key);
              mapLayout.removeComponent(keyLabel);
              mapLayout.removeComponent(valueLabel);
              mapLayout.removeComponent(keyField);
              mapLayout.removeComponent(valueField);
              mapLayout.removeComponent(removeButton);

              mapTextFields.remove(mapKey);
            }
          });

      mapLayout.addComponent(removeButton, 4, i);

      i++;
    }

    final Button addButton = new Button("add");
    addButton.setStyleName(ValoTheme.BUTTON_LINK);
    addButton.addClickListener(
        new Button.ClickListener() {
          public void buttonClick(ClickEvent event) {
            final Label keyLabel = new Label("Name:");
            final Label valueLabel = new Label("Value:");

            final TextField keyField = new TextField();
            keyField.setWidth("100%");
            keyField.setNullSettingAllowed(false);
            keyField.addValidator(
                new NonZeroLengthStringValidator("Then configuration value name cannot be empty!"));
            keyField.setValidationVisible(false);

            final TextField valueField = new TextField();
            valueField.setWidth("100%");
            valueField.setNullSettingAllowed(false);
            valueField.addValidator(
                new NonZeroLengthStringValidator("Then configuration value cannot be empty!"));
            valueField.setValidationVisible(false);

            mapLayout.insertRow(mapLayout.getRows());

            mapLayout.removeComponent(addButton);
            mapLayout.addComponent(keyLabel, 0, mapLayout.getRows() - 2);
            mapLayout.setComponentAlignment(keyLabel, Alignment.MIDDLE_RIGHT);
            mapLayout.addComponent(keyField, 1, mapLayout.getRows() - 2);
            mapLayout.addComponent(valueLabel, 2, mapLayout.getRows() - 2);
            mapLayout.setComponentAlignment(valueLabel, Alignment.MIDDLE_RIGHT);
            mapLayout.addComponent(valueField, 3, mapLayout.getRows() - 2);

            final String mapKey = parameter.getName() + mapTextFields.size();
            TextFieldKeyValuePair pair = new TextFieldKeyValuePair();
            pair.key = keyField;
            pair.value = valueField;

            mapTextFields.put(mapKey, pair);

            final Button removeButton = new Button("remove");
            removeButton.setStyleName(ValoTheme.BUTTON_LINK);
            removeButton.addClickListener(
                new Button.ClickListener() {
                  public void buttonClick(ClickEvent event) {
                    mapLayout.removeComponent(keyLabel);
                    mapLayout.removeComponent(valueLabel);
                    mapLayout.removeComponent(keyField);
                    mapLayout.removeComponent(valueField);

                    mapLayout.removeComponent(removeButton);

                    mapTextFields.remove(mapKey);
                  }
                });

            mapLayout.addComponent(removeButton, 4, mapLayout.getRows() - 2);

            mapLayout.addComponent(addButton, 0, mapLayout.getRows() - 1);
          }
        });

    mapLayout.addComponent(addButton, 0, mapLayout.getRows() - 1);

    Panel mapPanel = new Panel();
    mapPanel.setStyleName(ValoTheme.PANEL_BORDERLESS);
    mapPanel.setContent(mapLayout);

    Button saveButton = new Button("Save");
    saveButton.addStyleName(ValoTheme.BUTTON_SMALL);
    saveButton.addClickListener(
        new Button.ClickListener() {
          public void buttonClick(ClickEvent event) {
            try {
              for (TextFieldKeyValuePair textField : mapTextFields.values()) {
                textField.key.validate();
                textField.value.validate();
              }

              usernameField.validate();
              passwordField.validate();
            } catch (InvalidValueException e) {
              for (TextFieldKeyValuePair textField : mapTextFields.values()) {
                textField.key.setValidationVisible(true);
                textField.value.setValidationVisible(true);
                usernameField.setValidationVisible(true);
                passwordField.setValidationVisible(true);
              }

              Notification.show("Validation errors have occurred!", Type.ERROR_MESSAGE);

              return;
            }

            HashMap<String, String> map = new HashMap<String, String>();

            logger.info("Saving map: " + mapTextFields.size());

            for (String key : mapTextFields.keySet()) {
              if (key.startsWith(parameter.getName())) {
                TextFieldKeyValuePair pair = mapTextFields.get(key);

                logger.info("Saving for key: " + key);

                if (pair.key.getValue() != "") {
                  map.put(pair.key.getValue(), pair.value.getValue());
                }
              }
            }

            parameter.setValue(map);
            userParam.setValue(usernameField.getValue());
            passwordParam.setValue(passwordField.getValue());

            PlatformConfigurationPanel.this.configurationManagement.saveConfiguration(
                platformConfiguration);

            Notification notification =
                new Notification(
                    "Saved",
                    "The configuration has been saved successfully!",
                    Type.HUMANIZED_MESSAGE);
            notification.setStyleName(ValoTheme.NOTIFICATION_CLOSABLE);
            notification.show(Page.getCurrent());
          }
        });

    Button deleteButton = new Button("Re-create");
    deleteButton.addStyleName(ValoTheme.BUTTON_SMALL);
    deleteButton.addClickListener(
        new Button.ClickListener() {
          public void buttonClick(ClickEvent event) {
            configurationManagement.deleteConfiguration(platformConfiguration);

            refresh();
          }
        });

    HorizontalLayout buttonLayout = new HorizontalLayout();
    buttonLayout.setHeight("100%");
    buttonLayout.setSpacing(true);
    buttonLayout.setWidth(200, Unit.PIXELS);
    buttonLayout.setMargin(true);
    buttonLayout.addComponent(saveButton);
    buttonLayout.addComponent(deleteButton);

    paramLayout.addComponent(mapPanel, 0, 1, 1, 1);
    paramLayout.setComponentAlignment(mapPanel, Alignment.TOP_CENTER);
    paramLayout.addComponent(buttonLayout, 0, 2, 1, 2);
    paramLayout.setComponentAlignment(buttonLayout, Alignment.TOP_CENTER);
    paramPanel.setContent(paramLayout);

    return paramPanel;
  }
Exemple #9
0
  @Override
  public void attach() {

    if ((SAIMApplication) getApplication() != null)
      config = ((SAIMApplication) getApplication()).getConfig();

    VerticalLayout mainLayout = new VerticalLayout();
    final VerticalLayout accordionLayout = new VerticalLayout();
    HorizontalLayout layout = new HorizontalLayout();

    layout.addComponent(accordionLayout);

    setContent(mainLayout);
    mainLayout.addComponent(layout);
    final ProgressIndicator progress = new ProgressIndicator();
    progress.setIndeterminate(false);
    accordionLayout.addComponent(progress);
    // buttons
    mainLayout.addComponent(getButtonLayout());
    // accordion panel
    Panel accordionPanel = new Panel();
    accordionLayout.addComponent(accordionPanel);

    final Accordion accordion = new Accordion();
    accordionPanel.addComponent(accordion);
    accordionPanel.setStyleName("accordionPanel");

    VerticalLayout metricsLayout, operatorsLayout;
    sourceLayout = new VerticalLayout();
    targetLayout = new VerticalLayout();
    metricsLayout = new VerticalLayout();
    operatorsLayout = new VerticalLayout();

    accordion.addTab(
        sourceLayout, messages.getString("MetricPanel.sourceproperties")); // $NON-NLS-1$
    accordion.addTab(
        targetLayout, messages.getString("MetricPanel.targetproperties")); // $NON-NLS-1$
    accordion.addTab(metricsLayout, messages.getString("MetricPanel.metrics")); // $NON-NLS-1$
    accordion.addTab(operatorsLayout, messages.getString("MetricPanel.operators")); // $NON-NLS-1$
    // add Cytographer

    saimcytopro = makeCytographer();

    layout.addComponent(saimcytopro);

    getAllProps();
    for (String s : sourceProps) {
      sourceLayout.addComponent(new Label(s));
    }

    for (String t : targetProps) {
      targetLayout.addComponent(new Label(t));
    }
    accordionLayout.removeComponent(progress);
    progress.setEnabled(false);

    //		metricsLayout.addComponent( new Label(messages.getString("MetricPanel.0")));
    //		operatorsLayout.addComponent( new Label(messages.getString("MetricPanel.8")));
    Set<String> sorted = new TreeSet<String>();
    sorted.addAll(Measure.identifiers);
    for (String label : sorted) {
      metricsLayout.addComponent(new Label(label));
    }

    sorted.clear();
    sorted.addAll(Operator.identifiers);
    for (String label : sorted) {
      operatorsLayout.addComponent(new Label(label));
    }

    sourceLayout.addListener(
        new AccordionLayoutClickListener(saimcytopro, SAIMCytoprocess.NODE_TYPE.SOURCE, config));
    targetLayout.addListener(
        new AccordionLayoutClickListener(saimcytopro, SAIMCytoprocess.NODE_TYPE.TARGET, config));
    metricsLayout.addListener(
        new AccordionLayoutClickListener(saimcytopro, SAIMCytoprocess.NODE_TYPE.MEASURE, config));
    operatorsLayout.addListener(
        new AccordionLayoutClickListener(saimcytopro, SAIMCytoprocess.NODE_TYPE.OPERATOR, config));

    checkButtons();
  }
Exemple #10
0
  public TreeTableOrganization() {
    setSizeFull();
    treetable = new TreeTable();
    treetable.setSizeFull();
    treetable.setSelectable(true);
    treetable.setMultiSelect(false);
    treetable.addListener(this);
    treetable.setImmediate(true);
    treetable.setValue(null);
    setMargin(true);
    // Add Table columns
    treetable.addContainerProperty(NAME_PROPERTY, String.class, "");

    fillTable(treetable);

    treetable.addListener(
        new ExpandListener() {

          private static final long serialVersionUID = 1L;

          public void nodeExpand(ExpandEvent event) {
            Object valuePropertyEvent = event.getItemId();
            Organization org =
                AdminServiceProvider.get().findOrganizationById((Long) valuePropertyEvent);
            Set<Organization> childs = org.getOrganizations();
            if (!(childs.isEmpty())) {
              treetable.setChildrenAllowed((Long) valuePropertyEvent, true);

              for (Organization o : childs) {
                treetable.addItem(new Object[] {o.getName()}, o.getId());
              }

              for (Organization o : childs) {
                treetable.setParent(o.getId(), (Long) valuePropertyEvent);
              }

              for (Organization o : childs) {
                treetable.setChildrenAllowed(o.getId(), !(o.getOrganizations().isEmpty()));
              }
            }
          }
        });

    treetable.addListener(
        new CollapseListener() {

          private static final long serialVersionUID = 1L;

          public void nodeCollapse(CollapseEvent event) {
            Set<Object> delete = new HashSet<Object>();
            Collection<?> children = treetable.getChildren(event.getItemId());
            if (children != null) {
              for (Object child : children) {
                removeRecursively(child, delete);
              }
            }
            for (Object o : delete) {
              treetable.setCollapsed(o, true);
              treetable.removeItem(o);
            }
          }

          private void removeRecursively(Object object, Set<Object> delete) {
            Collection<?> children = treetable.getChildren(object);
            if (children != null) {
              for (Object child : children) {
                removeRecursively(child, delete);
              }
            }
            delete.add(object);
          }
        });

    panel.setStyleName(Reindeer.PANEL_LIGHT);
    panel.setSizeFull();
    panel.addComponent(new ButtonCreateOrganization(treetable));

    final HorizontalSplitPanel horiz = new HorizontalSplitPanel();
    horiz.setSplitPosition(25); // percent
    horiz.setSizeFull();
    addComponent(horiz);
    horiz.addComponent(treetable);
    horiz.addComponent(panel);
  }