Examples of MultiIcon


Examples of cli_fmw.utils.MultiIcon

//            } else {
//                return STT_ICON;
   
    @Override
    public Icon getIcon() {
        MultiIcon icon = null;
        try {
            if (isProfcheckup()) {
                if (getClosed() == null) {
                    icon = new MultiIcon(profcheckupIconOpened);
                } else {
                    icon = new MultiIcon(profcheckupIcon);
                }
            } else if (isFollowupEvent()){
                if (getClosed() == null) {
                    icon = new MultiIcon(followupEventIconOpened);
                } else {
                    icon = new MultiIcon(followupEventIcon);
                }
            } else if (isMedexam()){
                if (getClosed() == null) {
                    icon = new MultiIcon(medexamIconOpened);
                } else {
                    icon = new MultiIcon(medexamIcon);
                }
            } else {
                if (getClosed() == null) {
                    icon = new MultiIcon(diseaseIconOpened);
                } else {
                    icon = new MultiIcon(diseaseIcon);
                }
            }
            if ((serrenCache.inCache() && getSpecificDiagnosis() == null)) {
                icon.addIcon(haveNotSpecificDiagnosesIcon);
            }else if (mKB10Item == null){
                icon.addIcon(haveNotSpecificDiagnosesIcon);
            }
            return icon;
        } catch (ClipsException ex) {
            ex.printStackTrace();
            if (icon == null) {
                return new MultiIcon(diseaseIcon);
            } else {
                return icon;
            }
        }
    }
View Full Code Here

Examples of cli_fmw.utils.MultiIcon

        }
    }
   
    @Override
    public Icon getIcon() {
        MultiIcon icon = null;
        try {
            boolean editable = hasRight(ServiceRenderBean.COMMAND_MODIFY);
            if (editable) {
                if (isVisit()) {
                    icon = new MultiIcon(iconVisitEnabled);
                } else {
                    icon = new MultiIcon(iconSerrenEnabled);
                }
            } else {
                if (isVisit()) {
                    icon = new MultiIcon(iconVisit);
                } else {
                    icon = new MultiIcon(iconSerren);
                }
            }
            if (!isRendered()) {
                icon.addIcon(iconNotRendered);
            }
            if (getPolisData().getContract().getType() != Contract.TYPE_OMI
                    && !isSerPayed()) {
                icon.addIcon(iconDollar);
            }
            return icon;
        } catch (ClipsException ex) {
            if (icon == null) {
                return new MultiIcon(iconSerren);
            } else {
                return icon;
            }
        }
       
View Full Code Here

Examples of entagged.tageditor.tools.gui.MultiIcon

   * @param fileType
   *            The file type which will be handled.
   */
  public void addFileTypeIcons(String iconKey, String fileType, ImageIcon errorIcon) {
    ImageIcon defaultIcon = ResourcesRepository.getImageIcon(fileType + "-icon.png");
    MultiIcon multi = new MultiIcon();
    multi.addIcon(defaultIcon, MultiIcon.CENTER);
    multi.addIcon(errorIcon, MultiIcon.CENTER);
    icons.put(iconKey, defaultIcon);
    icons.put(iconKey + "-error", multi);
  }
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

   */
  protected void firePropertyBrowserEvent(Item item)
  {
    String title = null;
    String desc = null;
    MultiIcon icon = null;
    boolean readOnly = false;
    Item originalItem = item;

    if (item != null)
    {
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

      this.page = page;
      setPageNr(nr);

      setActionCommand(page.getUniqueId());

      MultiIcon icon = page.getIcon();
      JLabel iconLabel = new JLabel(icon.getIcon(buttonSize));
      iconLabel.setVerticalAlignment(SwingConstants.CENTER);
      iconLabel.setHorizontalAlignment(SwingConstants.CENTER);
      iconLabel.setForeground(Color.BLUE);
      iconLabel.setOpaque(false);
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

  public ParamReorderTracker(ModelerToolSupport toolSupport)
  {
    super(toolSupport);

    MultiIcon dragImage = ItemIconMgr.getMultiIcon(ItemIconMgr.getInstance().getIcon(ModelObjectSymbolNames.TYPE_ITEM, FlexibleSize.SMALL));
    accept = DragDropPane.acceptCursorPrototype.createCursor(dragImage);
    reject = DragDropPane.rejectCursorPrototype.createCursor(dragImage);
  }
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

    {
      Component c = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);

      if (c instanceof JLabel)
      {
        MultiIcon icon = null;

        if (row == 0)
        {
          icon = expanded ? StdIcons.openFolderIcon : StdIcons.closedFolderIcon;
        }
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

    {
      Component c = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);

      if (c instanceof JLabel)
      {
        MultiIcon icon = null;

        if (row == 0 && tree.isRootVisible())
        {
          icon = rootIcon;
        }
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

        }

        // Access the resource file
        String resourceName = "icons." + iconName;

        MultiIcon bufferIcon = null;
        if (resourceCollection != null)
        {
          bufferIcon = (MultiIcon) resourceCollection.getOptionalObject((resourcePrefix != null ? resourcePrefix : "") + resourceName);
        }
        if (bufferIcon == null)
        {
          bufferIcon = (MultiIcon) defaultResourceCollection.getOptionalObject(resourceName);
        }

        if (bufferIcon == null)
        {
          // We use the standard icon
          String name = iconName;
          if (name.equals("fatal"))
          {
            name = "error";
          }

          icon = UIManager.getIcon("OptionPane." + name + "Icon");
        }
        else
        {
          icon = bufferIcon.getIcon(FlexibleSize.LARGE);
        }

        // Since we have an icon we stop looking for another one
        break;
      }
View Full Code Here

Examples of org.openbp.common.icon.MultiIcon

        fireEvent(new JaspiraEvent((JaspiraPageContainer) e.getWindow(), "global.frame.deactivated"));
      }
    });

    // Copy the icon to the frame
    MultiIcon multiIcon = getIcon();
    Icon icon = multiIcon.getIcon(FlexibleSize.LARGE);
    BufferedImage buf = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_ARGB);
    Graphics g = buf.getGraphics();
    icon.paintIcon(frame, g, 0, 0);
    frame.setIconImage(buf);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.