Package org.projectforge.web.wicket.components

Examples of org.projectforge.web.wicket.components.TooltipImage


        setResponsePage(new GroupListPage(caller, selectProperty));
      };
    };
    selectButton.setDefaultFormProcessing(defaultFormProcessing);
    add(selectButton);
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_GROUP_SELECT, getString("tooltip.selectGroup")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return isRequired() == false && getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(defaultFormProcessing);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_GROUP_UNSELECT, getString("tooltip.unselectGroup")));
    return this;
  }
View Full Code Here


        setResponsePage(new GroupListPage(caller, selectProperty));
      };
    };
    selectButton.setDefaultFormProcessing(defaultFormProcessing);
    add(selectButton);
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_GROUP_SELECT, getString("tooltip.selectGroup")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return isRequired() == false && getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(defaultFormProcessing);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_GROUP_UNSELECT, getString("tooltip.unselectGroup")));
    return this;
  }
View Full Code Here

  }

  public ImagePanel(final String id, final ImageDef imageDef, final String tooltip)
  {
    super(id, null);
    addImage(new TooltipImage(IMAGE_ID, imageDef.getPath(), tooltip));
  }
View Full Code Here

    add(selectButton);
    final boolean hasSelectAccess = kost2Dao.hasLoggedInUserSelectAccess(false);
    if (hasSelectAccess == false) {
      selectButton.setVisible(false);
    }
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_KOST2_SELECT, getString("fibu.tooltip.selectKost2")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return hasSelectAccess == true && isRequired() == false && getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(false);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_KOST2_UNSELECT, getString("fibu.tooltip.unselectKost2")));
    return this;
  }
View Full Code Here

    add(selectButton);
    final boolean hasSelectAccess = projektDao.hasLoggedInUserSelectAccess(false);
    if (hasSelectAccess == false) {
      selectButton.setVisible(false);
    }
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_PROJEKT_SELECT, getString("fibu.tooltip.selectProjekt")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return hasSelectAccess == true && isRequired() == false && NewProjektSelectPanel.this.getModelObject() != null;
      }
    };

    unselectButton.setDefaultFormProcessing(false);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_PROJEKT_UNSELECT, getString("fibu.tooltip.unselectProjekt")));
    // DropDownChoice favorites
    final FavoritesChoicePanel<ProjektDO, ProjektFavorite> favoritesPanel = new FavoritesChoicePanel<ProjektDO, ProjektFavorite>(
        "favorites", UserPrefArea.PROJEKT_FAVORITE, tabIndex, "select half") {
      @Override
      protected void select(final ProjektFavorite favorite)
View Full Code Here

        setResponsePage(new CustomerListPage(caller, selectProperty));
      };
    };
    selectButton.setDefaultFormProcessing(false);
    add(selectButton);
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_KUNDE_SELECT, getString("fibu.tooltip.selectKunde")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return NewCustomerSelectPanel.this.getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(false);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_KUNDE_UNSELECT, getString("fibu.tooltip.unselectKunde")));
    // DropDownChoice favorites
    favoritesPanel = new FavoritesChoicePanel<KundeDO, KundeFavorite>("favorites", UserPrefArea.KUNDE_FAVORITE, tabIndex, "half select") {
      @Override
      protected void select(final KundeFavorite favorite)
      {
View Full Code Here

        setResponsePage(new CustomerListPage(caller, selectProperty));
      };
    };
    selectButton.setDefaultFormProcessing(false);
    add(selectButton);
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_KUNDE_SELECT, getString("fibu.tooltip.selectKunde")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return CustomerSelectPanel.this.getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(false);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_KUNDE_UNSELECT, getString("fibu.tooltip.unselectKunde")));
    // DropDownChoice favorites
    favoritesPanel = new FavoritesChoicePanel<KundeDO, KundeFavorite>("favorites", UserPrefArea.KUNDE_FAVORITE, tabIndex, "half select") {
      @Override
      protected void select(final KundeFavorite favorite)
      {
View Full Code Here

          caller.select(selectProperty, beginOfWeek);
        };
      };
      previousButton.setDefaultFormProcessing(false);
      add(previousButton);
      previousButton.add(new TooltipImage("previousWeekImage", WebConstants.IMAGE_QUICKSELECT_PREVIOUS_WEEK,
          getString("calendar.quickselect.tooltip.selectPreviousWeek")));
    }
    {
      final SubmitLink currentWeekButton = new SubmitLink("currentWeek") {
        @Override
        public void onSubmit()
        {
          final DateHolder dateHolder = new DateHolder();
          dateHolder.setBeginOfWeek();
          beginOfWeek = dateHolder.getDate();
          caller.select(selectProperty, beginOfWeek);
        };
      };
      currentWeekButton.setDefaultFormProcessing(false);
      add(currentWeekButton);
      currentWeekButton.add(new TooltipImage("currentWeekImage", WebConstants.IMAGE_QUICKSELECT_CURRENT_WEEK,
          getString("calendar.quickselect.tooltip.selectCurrentWeek")));
    }
    {
      final SubmitLink followingWeekButton = new SubmitLink("followingWeek") {
        @Override
        public void onSubmit()
        {
          final DateHolder dateHolder = new DateHolder(getModelObject());
          dateHolder.add(Calendar.WEEK_OF_YEAR, +1);
          beginOfWeek = dateHolder.getDate();
          caller.select(selectProperty, beginOfWeek);
        };
      };
      followingWeekButton.setDefaultFormProcessing(false);
      add(followingWeekButton);
      followingWeekButton.add(new TooltipImage("followingWeekImage", WebConstants.IMAGE_QUICKSELECT_FOLLOWING_WEEK,
          getString("calendar.quickselect.tooltip.selectNextWeek")));
    }
    return this;
  }
View Full Code Here

          caller.select(selectProperty, beginOfMonth);
        };
      };
      previousButton.setDefaultFormProcessing(false);
      add(previousButton);
      previousButton.add(new TooltipImage("previousMonthImage", WebConstants.IMAGE_QUICKSELECT_PREVIOUS_MONTH,
          getString("calendar.quickselect.tooltip.selectPreviousMonth")));
    }
    {
      final SubmitLink currentMonthButton = new SubmitLink("currentMonth") {
        @Override
        public void onSubmit()
        {
          final DateHolder dateHolder = new DateHolder();
          dateHolder.setBeginOfMonth();
          beginOfMonth = dateHolder.getDate();
          caller.select(selectProperty, beginOfMonth);
        };
      };
      currentMonthButton.setDefaultFormProcessing(false);
      add(currentMonthButton);
      currentMonthButton.add(new TooltipImage("currentMonthImage", WebConstants.IMAGE_QUICKSELECT_CURRENT_MONTH,
          getString("calendar.quickselect.tooltip.selectCurrentMonth")));
    }
    {
      final SubmitLink followingMonthButton = new SubmitLink("followingMonth") {
        @Override
        public void onSubmit()
        {
          final DateHolder dateHolder = new DateHolder(getModelObject());
          dateHolder.add(Calendar.MONTH, +1);
          beginOfMonth = dateHolder.getDate();
          caller.select(selectProperty, beginOfMonth);
        };
      };
      followingMonthButton.setDefaultFormProcessing(false);
      add(followingMonthButton);
      followingMonthButton.add(new TooltipImage("followingMonthImage", WebConstants.IMAGE_QUICKSELECT_FOLLOWING_MONTH,
          getString("calendar.quickselect.tooltip.selectNextMonth")));
    }
    return this;
  }
View Full Code Here

    add(selectButton);
    final boolean hasSelectAccess = projektDao.hasLoggedInUserSelectAccess(false);
    if (hasSelectAccess == false) {
      selectButton.setVisible(false);
    }
    selectButton.add(new TooltipImage("selectHelp", WebConstants.IMAGE_PROJEKT_SELECT, getString("fibu.tooltip.selectProjekt")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return hasSelectAccess == true && isRequired() == false && ProjektSelectPanel.this.getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(false);
    add(unselectButton);
    unselectButton.add(new TooltipImage("unselectHelp", WebConstants.IMAGE_PROJEKT_UNSELECT, getString("fibu.tooltip.unselectProjekt")));
    // DropDownChoice favorites
    final FavoritesChoicePanel<ProjektDO, ProjektFavorite> favoritesPanel = new FavoritesChoicePanel<ProjektDO, ProjektFavorite>(
        "favorites", UserPrefArea.PROJEKT_FAVORITE, tabIndex, "select half") {
      @Override
      protected void select(final ProjektFavorite favorite)
View Full Code Here

TOP

Related Classes of org.projectforge.web.wicket.components.TooltipImage

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.