Package hermes.browser.components

Examples of hermes.browser.components.ContextTree


    public int getSourceActions(JComponent c)
    {
        if ( c instanceof ContextTree)
        {
            ContextTree contextTree = (ContextTree) c;

            if ( contextTree.getSelectedDestinations().size() > 0)
            {
                return COPY_OR_MOVE;
            }

            if ( contextTree.getSelectedConnectionFactories().size() > 0)
            {
                return COPY_OR_MOVE;
            }
        }
View Full Code Here


    {
        boolean rval = comp instanceof ContextTree;
       
        if (rval)
        {
            ContextTree tree = (ContextTree) comp ;
            
            for (int i = 0 ; i < transferFlavors.length ; i++)
            {
                if (transferFlavors[i].equals(HermesAdministeredObjectTransferable.FLAVOR))
                {
View Full Code Here

    public boolean importData(JComponent comp, Transferable t)
    {
        if ( comp instanceof ContextTree)
        {
            ContextTree contextTree = (ContextTree) comp;

            return contextTree.doImport(t);
        }
        else
        {
            return false;
        }
View Full Code Here

   public boolean importData(JComponent component, Transferable t)
   {
      if (component instanceof ContextTree && t instanceof HermesAdministeredObjectTransferable)
      {
         ContextTree contextTree = (ContextTree) component;

         return contextTree.doImport((HermesAdministeredObjectTransferable) t);
      }
      else
      {
         return false;
      }
View Full Code Here

TOP

Related Classes of hermes.browser.components.ContextTree

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.