Package com.vaadin.event.LayoutEvents

Examples of com.vaadin.event.LayoutEvents.LayoutClickListener


                boxMode = value;
            }

        });

        cssLayout.addLayoutClickListener(new LayoutClickListener() {

            @Override
            public void layoutClick(LayoutClickEvent event) {
                ++clickCounter;
                if (event.getChildComponent() == null) {
View Full Code Here


  protected void initPriorityComboBox() {
    priorityComboBox = new PriorityComboBox(i18nManager, priorityLabel.getValue());
  }
 
  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(priorityLabel)) {
          // Replace label with combobox
          replaceComponent(priorityLabel, priorityComboBox);
        }
View Full Code Here

    dueDateField.setResolution(DateField.RESOLUTION_DAY);
    dueDateField.setImmediate(true);
  }
 
  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(dueDateLabel)) {
          // replace label with textfield
          replaceComponent(dueDateLabel, dueDateField);
        }
View Full Code Here

    editLayout = new VerticalLayout();
    editLayout.setSpacing(true);
  }
 
  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
          // textarea
          final TextArea descriptionTextArea = new TextArea();
          descriptionTextArea.setWidth(100, UNITS_PERCENTAGE);
View Full Code Here

    modelerDescriptionLabel = new Label(i18nManager.getMessage(Messages.PROCESS_EDITOR_MODELER_DESCRIPTION));
    modelerDescriptionLabel.addStyleName(Reindeer.LABEL_SMALL);
    modelerDescriptionLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
    modelerTextLayout.addComponent(modelerDescriptionLabel);
   
    modelerLayout.addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        preferModeler();
      }
    });
   
View Full Code Here

    tableEditorDescriptionLabel.addStyleName(Reindeer.LABEL_SMALL);
    tableEditorDescriptionLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
    tableEditorTextLayout.addComponent(tableEditorDescriptionLabel);
   
   
    tableEditorLayout.addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        preferTableDrivenEditor();
      }
    });
   
View Full Code Here

    }
    final Label descriptionLabel = new Label(descriptionText);
    descriptionLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
    descriptionLayout.addComponent(descriptionLabel);
   
    descriptionLayout.addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
          // layout for textarea + ok button
          final VerticalLayout editLayout = new VerticalLayout();
          editLayout.setSpacing(true);
View Full Code Here

    editLayout = new VerticalLayout();
    editLayout.setSpacing(true);
  }
 
  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
          // textarea
          final TextArea descriptionTextArea = new TextArea();
          descriptionTextArea.setWidth(100, UNITS_PERCENTAGE);
View Full Code Here

  protected void initPriorityComboBox() {
    priorityComboBox = new PriorityComboBox(i18nManager, priorityLabel.getValue());
  }
 
  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(priorityLabel)) {
          // Replace label with combobox
          replaceComponent(priorityLabel, priorityComboBox);
        }
View Full Code Here

    dueDateField.setResolution(DateField.RESOLUTION_DAY);
    dueDateField.setImmediate(true);
  }
 
  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(dueDateLabel)) {
          // replace label with textfield
          replaceComponent(dueDateLabel, dueDateField);
        }
View Full Code Here

TOP

Related Classes of com.vaadin.event.LayoutEvents.LayoutClickListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.