亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? aidaddresslist.java

?? JADE(JAVA Agent開發(fā)框架)是一個完全由JAVA語言開發(fā)的軟件,它簡化了多Agent系統(tǒng)的實現(xiàn)。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/******************************************************************
 * JADE - Java Agent DEvelopment Framework is a framework to develop
 * multi-agent systems in compliance with the FIPA specifications.
 * Copyright (C) 2002 TILAB S.p.A.
 *
 * This file is donated by Acklin B.V. to the JADE project.
 *
 *
 * GNU Lesser General Public License
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation,
 * version 2.1 of the License.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 * ***************************************************************/
package jade.tools.gui;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

import javax.swing.DefaultListModel;
import javax.swing.event.ListDataEvent;
import javax.swing.event.ListDataListener;
import jade.core.AID;

import jade.core.AID;
import jade.core.Agent;
import jade.lang.acl.ACLMessage;
import jade.lang.acl.ACLMessage;
import jade.util.leap.*;

/**
 *  This class shows a list of AID addresses
 *
 * @author     Chris van Aart - Acklin B.V., the Netherlands
 * @created    April 26, 2002
 */

public class AIDAddressList extends JPanel {

  /**
   *  Constructor for the AIDAddressesList object
   */
  public AIDAddressList() {
    try {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }


  /**
   *  Sets the Editable attribute of the AIDAddressesList object
   *
   * @param  theBool  The new Editable value
   */
  public void setEditable(boolean theBool) {
    if (!theBool) {
      editable = false;
      this.addButton.setEnabled(false);
      this.deleteButton.setEnabled(false);
    }
  }


  /**
   *  Description of the Method
   *
   * @param  theAID  Description of Parameter
   */
  public void register(AID theAID) {
    listModel.removeAllElements();
    this.theAID = theAID;
    Iterator itor = theAID.getAllAddresses();
    while (itor.hasNext()) {
      String theAddresss = (String)itor.next();
      listModel.addElement(theAddresss);
    }

    theDataListener = new AIDAddressListListener();
    theDataListener.register(theAID, "Address");
    listModel.addListDataListener(theDataListener);
    contentList.setModel(listModel);
  }


  /**
   *  Description of the Method
   */
  public void doDelete() {
    int index = contentList.getSelectedIndex();
    if (index >= 0) {
      theDataListener.registerRemovedAddress((String)listModel.getElementAt(index));
      this.listModel.remove(index);
    }
  }


  /**
   *  Description of the Method
   */
  public void doAdd() {
    AIDAddressDialog theDialog = new AIDAddressDialog();
    theDialog.setTitle("<new address>");
    theDialog.setLocation((int)getLocationOnScreen().getX(), (int)getLocationOnScreen().getY());
    theDialog.show();
    if (theDialog.getOK()) {
      listModel.addElement(theDialog.getItsAddress());
    }

  }


  /**
   *  Description of the Method
   */
  public void doView() {

    int index = this.contentList.getSelectedIndex();
    if (index < 0) {
      return;
    }
    String currentAddress = (String)listModel.getElementAt(index);
    String editAddress = currentAddress;
    AIDAddressDialog theDialog = new AIDAddressDialog();
    theDialog.setLocation((int)getLocationOnScreen().getX(), (int)getLocationOnScreen().getY());
    theDialog.setEditable(editable);
    theDialog.setTitle(editable ? "Edit address: " + currentAddress : "View address:" + currentAddress);
    theDialog.setItsAddress(editAddress);
    theDialog.show();
    if (theDialog.getOK()) {
      theDataListener.registerChangedAddress(currentAddress);
      listModel.setElementAt(theDialog.getItsAddress(), index);
    }
  }


  /**
   *  Description of the Method
   *
   * @param  e  Description of Parameter
   */
  void deleteButton_actionPerformed(ActionEvent e) {
    doDelete();
  }


  /**
   *  Adds a feature to the Button_actionPerformed attribute of the
   *  AIDAddressesList object
   *
   * @param  e  The feature to be added to the Button_actionPerformed
   *      attribute
   */
  void addButton_actionPerformed(ActionEvent e) {
    doAdd();
  }


  /**
   *  Description of the Method
   *
   * @param  e  Description of Parameter
   */
  void viewButton_actionPerformed(ActionEvent e) {
    doView();
  }


  /**
   *  Description of the Method
   *
   * @param  e  Description of Parameter
   */
  void contentList_keyPressed(KeyEvent e) {
    if (e.getKeyCode() == e.VK_ENTER) {
      doView();
    }

    if (!editable) {
      return;
    }
    if (e.getKeyCode() == e.VK_INSERT) {
      doAdd();
    }

    if (e.getKeyCode() == e.VK_DELETE) {
      doDelete();
    }

  }


  void contentList_mouseClicked(MouseEvent e) {
    if (e.getClickCount() > 1) {
      doView();
    }

  }


  /**
   *  Description of the Method
   *
   * @exception  Exception  Description of Exception
   */
  private void jbInit() throws Exception {
    this.setLayout(gridBagLayout1);
    viewButton.setBackground(Color.white);
    viewButton.setFont(new java.awt.Font("Dialog", 0, 11));
    viewButton.setForeground(new Color(0, 0, 83));
    viewButton.setMinimumSize(new Dimension(13, 5));
    viewButton.setPreferredSize(new Dimension(13, 25));
    viewButton.setToolTipText("edit/view address");
    viewButton.setMargin(new Insets(0, 0, 0, 0));
    viewButton.setText("v");
    viewButton.addActionListener(
      new java.awt.event.ActionListener() {
        public void actionPerformed(ActionEvent e) {
          viewButton_actionPerformed(e);
        }
      });
    addButton.setBackground(Color.white);
    addButton.setFont(new java.awt.Font("Dialog", 0, 11));
    addButton.setForeground(new Color(0, 0, 83));
    addButton.setMinimumSize(new Dimension(13, 5));
    addButton.setToolTipText("add address");
    addButton.setMargin(new Insets(0, 0, 0, 0));
    addButton.setText("+");
    addButton.addActionListener(
      new java.awt.event.ActionListener() {
        public void actionPerformed(ActionEvent e) {
          addButton_actionPerformed(e);
        }
      });
    deleteButton.setBackground(Color.white);
    deleteButton.setFont(new java.awt.Font("Dialog", 0, 11));
    deleteButton.setForeground(new Color(0, 0, 83));
    deleteButton.setMinimumSize(new Dimension(13, 5));
    deleteButton.setToolTipText("delete address");
    deleteButton.setMargin(new Insets(0, 0, 0, 0));
    deleteButton.setText("x");
    deleteButton.addActionListener(
      new java.awt.event.ActionListener() {
        public void actionPerformed(ActionEvent e) {
          deleteButton_actionPerformed(e);
        }
      });
    contentList.setFont(new java.awt.Font("Dialog", 0, 11));
    contentList.addMouseListener(
      new java.awt.event.MouseAdapter() {
        public void mouseClicked(MouseEvent e) {
          contentList_mouseClicked(e);
        }
      });
    contentList.addKeyListener(
      new java.awt.event.KeyAdapter() {
        public void keyPressed(KeyEvent e) {
          contentList_keyPressed(e);
        }
      });
    contentScrollPane.setBorder(BorderFactory.createLineBorder(Color.black));
    contentScrollPane.getViewport().add(contentList, null);
    this.add(contentScrollPane, new GridBagConstraints(0, 1, 1, 3, 1.0, 1.0
      , GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    this.add(addButton, new GridBagConstraints(1, 2, 1, 1, 0.0, 1.0
      , GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
    this.add(deleteButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 1.0

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线云播放| 日韩精品一区二| 亚洲图片欧美激情| 成人毛片老司机大片| 国产视频一区在线播放| 国产乱淫av一区二区三区| 精品入口麻豆88视频| 看电视剧不卡顿的网站| 久久久亚洲精华液精华液精华液 | xf在线a精品一区二区视频网站| 日韩免费高清av| 久久免费看少妇高潮| 亚洲免费在线视频一区 二区| 激情综合色播激情啊| 日韩欧美一级二级三级久久久| 亚洲午夜久久久| 一本色道**综合亚洲精品蜜桃冫| 中文字幕av一区二区三区免费看| 黑人巨大精品欧美一区| 久久精品视频一区| 国产老女人精品毛片久久| 精品99一区二区| 国产一区二区三区免费观看| 久久色.com| 在线视频一区二区三区| 蜜臀久久久99精品久久久久久| 久久精品亚洲精品国产欧美 | 4438成人网| 国产美女在线精品| 亚洲乱码国产乱码精品精的特点 | 丝袜诱惑制服诱惑色一区在线观看| 欧美videos大乳护士334| 成人91在线观看| 日韩综合小视频| 一色屋精品亚洲香蕉网站| 在线播放中文一区| 在线视频欧美精品| 成人国产视频在线观看| 三级精品在线观看| 亚洲天堂久久久久久久| 精品日韩99亚洲| 欧美电影一区二区三区| 色悠悠亚洲一区二区| 国产不卡在线一区| 久久国产精品99久久人人澡| 亚洲精品久久嫩草网站秘色| 久久久久九九视频| 专区另类欧美日韩| 欧美国产欧美综合| 久久青草欧美一区二区三区| 欧美天堂一区二区三区| 成人av动漫网站| 成人免费va视频| 国产在线国偷精品免费看| 蜜桃av一区二区三区电影| 亚洲精品大片www| 亚洲精品国产无天堂网2021| 国产免费成人在线视频| 精品国产3级a| 国产亚洲精品bt天堂精选| 久久精品夜夜夜夜久久| 国产欧美日韩久久| 国产精品进线69影院| 亚洲永久免费视频| 一区二区三区日韩欧美精品| 午夜视频在线观看一区二区| 久久66热re国产| 国产福利一区二区三区在线视频| 国产传媒久久文化传媒| aaa国产一区| 欧美日本一道本| 2欧美一区二区三区在线观看视频| 久久久久久久久久美女| 国产精品狼人久久影院观看方式| 亚洲精品一二三四区| 免费人成黄页网站在线一区二区| 国产一区二区三区蝌蚪| 国产盗摄女厕一区二区三区| 成人精品gif动图一区| 欧美色区777第一页| 欧美一区二区三区在线观看视频| 久久日一线二线三线suv| 亚洲色图一区二区三区| 日本欧美在线看| 日本二三区不卡| 国产精品久久久久久久岛一牛影视| 亚洲尤物视频在线| 成人福利视频在线看| 欧美一区二区精品在线| 亚洲免费在线播放| 粉嫩嫩av羞羞动漫久久久 | 床上的激情91.| 欧美va在线播放| 免费在线观看成人| 99re热视频精品| 国产精品午夜春色av| 国模套图日韩精品一区二区| 欧美久久久久免费| 亚洲一区二区黄色| 在线免费观看日本欧美| 国产精品美女一区二区| 激情五月婷婷综合网| 日韩欧美国产一区在线观看| 日本成人在线不卡视频| 欧美日韩成人综合| 亚洲福中文字幕伊人影院| aaa欧美大片| 亚洲不卡av一区二区三区| 91麻豆swag| 亚洲一区在线免费观看| 欧美亚洲国产一区二区三区| 一区二区三区四区中文字幕| 在线视频国产一区| 亚洲国产裸拍裸体视频在线观看乱了 | 狠狠狠色丁香婷婷综合久久五月| 日韩一本二本av| 国产九色精品成人porny| 欧美激情中文不卡| 欧美少妇一区二区| 天天影视涩香欲综合网| 久久免费国产精品| 成人免费不卡视频| 天堂成人免费av电影一区| 日韩欧美不卡一区| 国产成人免费在线观看不卡| 国产日韩成人精品| 成人av午夜电影| 免费观看日韩av| ㊣最新国产の精品bt伙计久久| 欧美人妇做爰xxxⅹ性高电影| 精彩视频一区二区三区| 亚洲精品国产高清久久伦理二区| 精品国内二区三区| 欧美日韩国产综合视频在线观看| 国产精品1区2区3区| 免费在线观看精品| 亚洲午夜在线视频| 亚洲精品乱码久久久久久日本蜜臀| 久久美女艺术照精彩视频福利播放| 欧美日韩亚洲国产综合| 不卡一区二区三区四区| 精品无人区卡一卡二卡三乱码免费卡| 一区二区三区高清在线| 亚洲美女屁股眼交| 中文字幕成人网| 精品国产乱码久久久久久久| 日韩免费高清av| 日韩精品中文字幕一区二区三区 | 久草中文综合在线| 久久9热精品视频| 激情综合色播五月| 久久99国产精品久久99果冻传媒| 日韩av电影免费观看高清完整版在线观看 | 欧美理论在线播放| 欧美夫妻性生活| 欧美一激情一区二区三区| 国产色产综合产在线视频| 中文字幕国产一区| 欧美激情综合五月色丁香小说| 精品噜噜噜噜久久久久久久久试看 | 91免费观看在线| 一本一道久久a久久精品| 欧美精品一区二区三| 久久亚洲捆绑美女| 亚洲欧洲成人av每日更新| 成人免费一区二区三区视频 | 中文字幕一区二区三区在线观看| 亚洲一区二区成人在线观看| 青娱乐精品视频| 懂色av一区二区三区蜜臀| 成人黄页毛片网站| 欧美日韩综合不卡| 精品久久久久香蕉网| 亚洲色图视频网站| 日本不卡高清视频| 国模少妇一区二区三区| 91久久香蕉国产日韩欧美9色| 欧美三级视频在线| 国产亚洲欧美日韩在线一区| 天天操天天综合网| jlzzjlzz国产精品久久| 国内精品自线一区二区三区视频| 久久精品999| 在线亚洲免费视频| 国产精品青草综合久久久久99| 亚洲福利视频一区| 成人av网址在线| 日韩精品一区二区三区老鸭窝 | 久久99精品国产91久久来源| 色婷婷综合久久久中文一区二区| 精品精品国产高清a毛片牛牛 | 91首页免费视频| 中国色在线观看另类| 国内一区二区视频| 欧美成人一区二区三区| 天堂av在线一区| 日韩欧美国产精品一区| 亚洲欧美激情小说另类| 日本系列欧美系列| 9人人澡人人爽人人精品|