Package de.iritgo.aktario.core.gui

Examples of de.iritgo.aktario.core.gui.IMenuItemProvider


      addAddressTableColumn(new ITableColumn().withTitle("firstName"));
      addAddressTableColumn(new ITableColumn().withTitle("company"));
      addAddressTableColumn(new AddressViewColumn());
      addAddressTableColumn(new AddressActionColumn());

      addAddressTableActionMenuItemProvider(new IMenuItemProvider()
      {
        @Override
        public IMenuItem create(Object... params)
        {
          Address address = (Address) params[0];
          IMenuItem menuItem = new IMenuItem("<html><span style=\"width:8em\"><b>"
                  + (StringTools.isTrimEmpty(address.getEmail()) ? "-" : address.getEmail())
                  + "</b></span> (" + emailLabel.get() + ")</html>", (Icon) emailIcon);

          menuItem.addActionListener(new EMailAction(address.getEmail()));

          return menuItem;
        }
      });
      addAddressTableActionMenuItemProvider(new IMenuItemProvider()
      {
        @Override
        public IMenuItem create(Object... params)
        {
          Address address = (Address) params[0];
View Full Code Here

TOP

Related Classes of de.iritgo.aktario.core.gui.IMenuItemProvider

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.