Package com.adito.agent.client.tunneling

Examples of com.adito.agent.client.tunneling.AbstractPortItem


        }

        public synchronized int getIndexForId(int id) {
            int idx = 0;
            for(Enumeration e = portItems.elements(); e.hasMoreElements(); ) {
                AbstractPortItem api = ((AbstractPortItem)e.nextElement());
                if(api.getConfiguration().getId() == id) {
                    return idx;
                }
                idx++;
            }
            return -1;
View Full Code Here


            "Yes",
            "No",
            Messages.getString("PortMonitor.close.title"),
            Messages.getString("PortMonitor.close.text"))) {
            for (Enumeration en = getSelectedPorts().elements(); en.hasMoreElements();) {
              AbstractPortItem t = (AbstractPortItem) en.nextElement();
              t.stop();
            }
          }
        } else {
          setVisible(false);
        }
View Full Code Here

  public int getIndexForId(int id) {
    synchronized(items) {
      int idx = 0;
      for (Iterator i = items.iterator(); i.hasNext();) {
        AbstractPortItem api = (AbstractPortItem) i.next();
        if (api.getConfiguration().getId() == id) {
          return idx;
        }
        idx++;
      }
      return -1;
View Full Code Here

     * @param connection connection to find
     * @return row index
     */
    public int getIndexForId(int id) {   
        for(int i = portItems.size() - 1 ; i >= 0 ; i--) {
            AbstractPortItem pi = (AbstractPortItem)portItems.elementAt(i);
            if(pi.getConfiguration().getId() == id) {
                return i;
            }
        }
        return -1;
    }
View Full Code Here

               Option opt = OptionDialog.prompt(AWTPortMonitorWindow.this, OptionDialog.WARNING, Messages.getString("PortMonitor.close.title"), //$NON-NLS-1$
                   Messages.getString("PortMonitor.close.text"), //$NON-NLS-1$
                   new Option[] { stop, OptionDialog.CHOICE_CANCEL } );
               if(opt == stop) {
                   for(Enumeration e = getSelectedPorts().elements(); e.hasMoreElements(); ) {
                       AbstractPortItem t = (AbstractPortItem)e.nextElement();
                       t.stop();
                   }
               }
           }
        });
       
View Full Code Here

    /* (non-Javadoc)
     * @see com.sshtools.ui.awt.grid.TableModel#getValue(int, int)
     */
    public Object getValue(int r, int c) {
        AbstractPortItem t = getItemAt(r);
        switch(c) {
            case 0:
                return t.getType();
            case 1:
                return t.getName();
            case 2:
                return new Integer(t.getLocalPort());
            case 3:
                return new Integer(t.getActiveTunnelCount());
            case 4:
                return new Date(t.getDataLastTransferred());
            default:
                return new Integer(t.getTotalTunnelCount());                   
        }
    }
View Full Code Here

TOP

Related Classes of com.adito.agent.client.tunneling.AbstractPortItem

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.