Package net.suberic.util.gui

Examples of net.suberic.util.gui.IconManager


     * Signature bad
     * Signature failed verification
     * ...and maybe more.
     */

    IconManager iconManager = Pooka.getUIFactory().getIconManager();
   
    notEncryptedIcon = new ImageIcon();
    //notEncryptedIcon = iconManager.getIcon(Pooka.getProperty(key + ".notEncryptedIcon", "UnLock"));
    uncheckedEncryptedIcon = iconManager.getIcon(Pooka.getProperty(key + ".uncheckedEncryptedIcon", "Lock"));
    decryptedSuccessfullyIcon = iconManager.getIcon(Pooka.getProperty(key + ".decryptedSuccessfullyIcon", "OpenLock"));
    decryptedUnsuccessfullyIcon = iconManager.getIcon(Pooka.getProperty(key + ".decryptedUnsuccessfullyIcon", "Bomb"));
    uncheckedSignedIcon = iconManager.getIcon(Pooka.getProperty(key + ".uncheckedSignedIcon", "Draw"));
   
    notSignedIcon = new ImageIcon();
    //notSignedIcon = iconManager.getIcon(Pooka.getProperty(key + ".notSignedIcon", "EnvelopeOpen"));
    signatureVerifiedIcon = iconManager.getIcon(Pooka.getProperty(key + ".signatureVerifiedIcon", "Check"));
    signatureBadIcon = iconManager.getIcon(Pooka.getProperty(key + ".signatureBadIcon", "Caution"));
    signatureFailedVerificationIcon = iconManager.getIcon(Pooka.getProperty(key + ".signatureFailedVerificationIcon", "Caution"));
  }
View Full Code Here


  /**
   * Loads the images for the ConnectionMonitor.
   */
  private void loadImages() {
    IconManager iconManager = Pooka.getUIFactory().getIconManager();
    connectedImage = iconManager.getIcon(Pooka.getProperty("ConnectionMonitor.connectedIcon", "ConnectionMonitor.ConnectedIcon"));
    disconnectedImage = iconManager.getIcon(Pooka.getProperty("ConnectionMonitor.disconnectedIcon", "ConnectionMonitor.DisconnectedIcon"));
    unavailableImage = iconManager.getIcon(Pooka.getProperty("ConnectionMonitor.unavailableIcon", "ConnectionMonitor.UnavailableIcon"));
  }
View Full Code Here

  /**
   * Sets up the images to use for the tray icon and for the main window.
   */
  void setupImages() {
    IconManager iconManager;
    if (Pooka.getUIFactory() != null) {
      iconManager = Pooka.getUIFactory().getIconManager();
    } else {
      iconManager = IconManager.getIconManager(Pooka.getResources(), "IconManager._default");
    }


    mStandardIcon = iconManager.getIcon(Pooka.getProperty("Pooka.standardIcon", "PookaIcon"));
    setCurrentIcon(mStandardIcon);

    mStandardTrayIcon = iconManager.getIcon(Pooka.getProperty("Pooka.standardTrayIcon", "PookaTrayIcon"));

    mNewMessageIcon = iconManager.getIcon(Pooka.getProperty("Pooka.newMessageIcon", "EnvelopeOpen"));

    mNewMessageTrayIcon = iconManager.getIcon(Pooka.getProperty("Pooka.newMessageIcon", "NewMessageTray"));

  }
View Full Code Here

    JLabel userProfileLabel = new JLabel(Pooka.getProperty("UserProfile.label","User:"), SwingConstants.RIGHT);
    userProfileLabel.setPreferredSize(new Dimension(75,userProfileLabel.getPreferredSize().height));
    JComboBox profileCombo = new JComboBox(new Vector(Pooka.getPookaManager().getUserProfileManager().getUserProfileList()));


    IconManager iconManager = Pooka.getUIFactory().getIconManager();

    ImageIcon headerIcon = iconManager.getIcon(Pooka.getProperty("NewMessage.customHeader.button", "Hammer"));
    if (headerIcon != null) {
      java.awt.Image headerImage = headerIcon.getImage();
      headerImage = headerImage.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH);
      headerIcon.setImage(headerImage);
      customHeaderButton = new JToggleButton(headerIcon);
View Full Code Here

    returnValue.add(customInputPanel, BorderLayout.CENTER);

    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));

    IconManager iconManager = Pooka.getUIFactory().getIconManager();

    ImageIcon headerIcon = iconManager.getIcon(Pooka.getProperty("NewMessage.customHeader.add.button", "Plus"));

    JButton headerButton = null;

    if (headerIcon != null) {
      headerButton = new JButton(headerIcon);
View Full Code Here

      }, "Pooka.guiType");

    mPookaManager.getResources().addValueChangeListener(new net.suberic.util.ValueChangeListener() {
        public void valueChanged(String changedValue) {
          PookaUIFactory factory = Pooka.getUIFactory();
          IconManager iconManager = IconManager.getIconManager(Pooka.getResources(), "IconManager._default");
          factory.setIconManager(iconManager);
          factory.setEditorFactory(new PropertyEditorFactory(Pooka.getResources(), iconManager, Pooka.getPookaManager().getHelpBroker()));
        }
      }, "IconManager._default");
View Full Code Here

  /**
   * This attempts to load an image for the given imageKey.
   */
  public Component loadImage(String imageKey) {
    Component returnValue = null;
    IconManager iconManager = Pooka.getUIFactory().getIconManager();
    ImageIcon icon = iconManager.getIcon(imageKey);
    if (icon != null) {
      returnValue = new JLabel(icon);
      ((JLabel)returnValue).setOpaque(true);
      labelTable.put(imageKey, returnValue);
    } else {
View Full Code Here

    JPanel returnValue = new JPanel();
    returnValue.setLayout(new BoxLayout(returnValue, BoxLayout.Y_AXIS));

    returnValue.add(Box.createVerticalGlue());

    IconManager iconManager = Pooka.getUIFactory().getIconManager();
   
    ImageIcon addButtonIcon = iconManager.getIcon(Pooka.getProperty("NewMessage.selectionPanel.button.add", "Right"));

    JButton addButton = new JButton(addButtonIcon);
    addButton.addActionListener(new AbstractAction() {
  public void actionPerformed(ActionEvent e) {
    confirmSelectedAddresses();
  }
      });
    returnValue.add(addButton);

    returnValue.add(Box.createVerticalGlue());

    ImageIcon removeButtonIcon = iconManager.getIcon(Pooka.getProperty("NewMessage.selectionPanel.button.remove", "Left"));

    JButton removeButton = new JButton(removeButtonIcon);
    removeButton.addActionListener(new AbstractAction() {
  public void actionPerformed(ActionEvent e) {
    removeSelectedAddresses();
View Full Code Here

TOP

Related Classes of net.suberic.util.gui.IconManager

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.