Package org.projectforge.web.wicket.flowlayout

Examples of org.projectforge.web.wicket.flowlayout.IconPanel


    return this;
  }

  private Component createHeadCell(final String componentId, final IconType icon, final String tooltip)
  {
    return new IconPanel(componentId, icon, getLocalizedString(tooltip));
  }
View Full Code Here


  }

  private Component createTicker(final String componentId, final boolean value)
  {
    if (value == true) {
      return new IconPanel(componentId, IconType.ACCEPT);
    } else {
      return new IconPanel(componentId, IconType.DENY);
    }
  }
View Full Code Here

        }
      };
      selectMeLink.setOutputMarkupId(true);
    }
    add(selectMeLink);
    selectMeLink.add(new IconPanel("selectMeHelp", IconType.USER, getString("tooltip.selectMe")).setColor(CSSColor.GREEN));
    return this;
  }
View Full Code Here

      public void populateItem(final Item<ICellPopulator<GroupTaskAccessDO>> item, final String componentId,
          final IModel<GroupTaskAccessDO> rowModel)
      {
        final GroupTaskAccessDO access = rowModel.getObject();
        if (access.isRecursive() == true) {
          item.add(new IconPanel(componentId, IconType.ACCEPT));
        } else {
          item.add(createInvisibleDummyComponent(componentId));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
      }
View Full Code Here

        setResponsePage(taskTreePage);
      };
    };
    selectButton.setDefaultFormProcessing(false);
    divContainer.add(selectButton);
    selectButton.add(new IconPanel("selectHelp", IconType.TASK, getString("tooltip.selectTask")));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return isRequired() == false && getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(false);
    divContainer.add(unselectButton);
    unselectButton.add(new IconPanel("unselectHelp", IconType.REMOVE_SIGN, getString("tooltip.unselectTask")).setColor(CSSColor.RED));
    // DropDownChoice favorites
    final FavoritesChoicePanel<TaskDO, TaskFavorite> favoritesPanel = new FavoritesChoicePanel<TaskDO, TaskFavorite>("favorites",
        UserPrefArea.TASK_FAVORITE, tabIndex, "full text") {
      @Override
      protected void select(final TaskFavorite favorite)
View Full Code Here

      numberLabel.add(AttributeModifier.replace("style", "color:red; font-weight:bold;"));
    } else {
      numberLabel.setRenderBodyOnly(true);
    }
    linkOrSpan.add(numberLabel);
    linkOrSpan.add(new IconPanel("phoneImage", icon));
    final Link<String> sendMessage = new Link<String>("sendMessageLink") {
      @Override
      public void onClick()
      {
        final PageParameters params = new PageParameters();
View Full Code Here

      final FieldsetPanel fs = gridBuilder.newFieldset(getString("searchFilter"));
      final TextField<String> searchField = new TextField<String>(InputPanel.WICKET_ID, new PropertyModel<String>(getSearchFilter(),
          "searchString"));
      searchField.add(WicketUtils.setFocus());
      fs.add(new InputPanel(fs.newChildId(), searchField));
      fs.add(new IconPanel(fs.newIconChildId(), IconType.HELP, getString("tooltip.lucene.link")).setOnClickLocation(getRequestCycle(),
          WebConstants.DOC_LINK_HANDBUCH_LUCENE, true), FieldSetIconPosition.TOP_RIGHT);
    }
    {
      gridBuilder.newSplitPanel(GridSize.COL50);
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("label.options")).suppressLabelForWarning();
View Full Code Here

   * @param id
   * @return IconPanel which is invisible if JIRA isn't configured.
   */
  public static IconPanel getJIRASupportTooltipIcon(final Component parent, final String id)
  {
    final IconPanel icon = new IconPanel(id, IconType.JIRA_SUPPORT, Model.of(parent.getString("tooltip.jiraSupport.field.title")),
        Model.of(parent.getString("tooltip.jiraSupport.field.content")));
    if (isJIRAConfigured() == false) {
      icon.setVisible(false);
    }
    return icon;
  }
View Full Code Here

  /**
   */
  public static IconPanel getAlertTooltipIcon(final FieldsetPanel fieldset, final IModel<String> title, final IModel<String> tooltip)
  {
    final IconPanel icon = new IconPanel(fieldset.newIconChildId(), IconType.ALERT, title, tooltip);
    return icon;
  }
View Full Code Here

   * @return
   */
  public static Component createBooleanLabel(final RequestCycle requestCycle, final String componentId, final boolean value)
  {
    if (value == true) {
      return new IconPanel(componentId, IconType.ACCEPT);
    }
    return new Label(componentId, "invisible").setVisible(false);
  }
View Full Code Here

TOP

Related Classes of org.projectforge.web.wicket.flowlayout.IconPanel

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.