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

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

?? acltextarea.java

?? JADE(JAVA Agent開發(fā)框架)是一個完全由JAVA語言開發(fā)的軟件,它簡化了多Agent系統(tǒng)的實(shí)現(xiàn)。
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
   */
  public final void setTokenMarker(ACLSLTokenMarker tokenMarker) {
    document.setTokenMarker(tokenMarker);
  }


  /**
   *  Sets the selection start. The new selection will be the new selection
   *  start and the old selection end.
   *
   * @param  selectionStart  The selection start
   * @see                    #select(int,int)
   */
  public final void setSelectionStart(int selectionStart) {
    select(selectionStart, selectionEnd);
  }


  /**
   *  Sets the selection end. The new selection will be the old selection
   *  start and the bew selection end.
   *
   * @param  selectionEnd  The selection end
   * @see                  #select(int,int)
   */
  public final void setSelectionEnd(int selectionEnd) {
    select(selectionStart, selectionEnd);
  }


  /**
   *  Sets the caret position. The new selection will consist of the caret
   *  position only (hence no text will be selected)
   *
   * @param  caret  The caret position
   * @see           #select(int,int)
   */
  public final void setCaretPosition(int caret) {
    select(caret, caret);
  }


  /**
   *  Sets if this component is editable.
   *
   * @param  editable  True if this text area should be editable, false
   *      otherwise
   */
  public final void setEditable(boolean editable) {
    this.editable = editable;
  }


  /**
   *  Sets the right click popup menu.
   *
   * @param  popup  The popup
   */
  public final void setRightClickPopup(JPopupMenu popup) {
    this.popup = popup;
  }


  /**
   *  Sets the `magic' caret position. This can be used to preserve the column
   *  position when moving up and down lines.
   *
   * @param  magicCaret  The magic caret position
   */
  public final void setMagicCaretPosition(int magicCaret) {
    this.magicCaret = magicCaret;
  }


  /**
   *  Sets if overwrite mode should be enabled.
   *
   * @param  overwrite  True if overwrite mode should be enabled, false
   *      otherwise.
   */
  public final void setOverwriteEnabled(boolean overwrite) {
    this.overwrite = overwrite;
    painter.invalidateSelectedLines();
  }


  /**
   *  Blinks the caret.
   */
  public final void blinkCaret() {
    if (caretBlinks) {
      blink = !blink;
      painter.invalidateSelectedLines();
    }
    else {
      blink = true;
    }

  }


  /**
   *  Recalculates the number of visible lines. This should not be called
   *  directly.
   */
  public final void recalculateVisibleLines() {
    if (painter == null) {
      return;
    }
    int height = painter.getHeight();
    int lineHeight = painter.getFontMetrics().getHeight();
    int oldVisibleLines = visibleLines;
    visibleLines = height / lineHeight;
    painter.invalidateOffscreen();
    painter.repaint();
    updateScrollBars();
  }


  /**
   *  Selects all text in the document.
   */
  public final void selectAll() {
    select(0, getDocumentLength());
  }


  /**
   *  Adds a caret change listener to this text area.
   *
   * @param  listener  The listener
   */
  public final void addCaretListener(CaretListener listener) {
    listenerList.add(CaretListener.class, listener);
  }


  /**
   *  Removes a caret change listener from this text area.
   *
   * @param  listener  The listener
   */
  public final void removeCaretListener(CaretListener listener) {
    listenerList.remove(CaretListener.class, listener);
  }


  /**
   *  Returns the start offset of the specified line.
   *
   * @param  line  The line
   * @return       The start offset of the specified line, or -1 if the line
   *      is invalid
   */
  public int getLineStartOffset(int line) {
    Element lineElement = document.getDefaultRootElement()
      .getElement(line);
    if (lineElement == null) {
      return -1;
    }
    else {
      return lineElement.getStartOffset();
    }
  }


  /**
   *  Returns the end offset of the specified line.
   *
   * @param  line  The line
   * @return       The end offset of the specified line, or -1 if the line is
   *      invalid.
   */
  public int getLineEndOffset(int line) {
    Element lineElement = document.getDefaultRootElement()
      .getElement(line);
    if (lineElement == null) {
      return -1;
    }
    else {
      return lineElement.getEndOffset();
    }
  }


  /**
   *  Returns the length of the specified line.
   *
   * @param  line  The line
   * @return       The LineLength value
   */
  public int getLineLength(int line) {
    Element lineElement = document.getDefaultRootElement()
      .getElement(line);
    if (lineElement == null) {
      return -1;
    }
    else {
      return lineElement.getEndOffset()
         - lineElement.getStartOffset() - 1;
    }
  }


  /**
   *  Returns the entire text of this text area.
   *
   * @return    The Text value
   */
  public String getText() {
    try {
      return document.getText(0, document.getLength());
    }
    catch (BadLocationException bl) {
      return null;
    }
  }


  /**
   *  Sets the input handler.
   *
   * @param  inputHandler  The new input handler
   */
  public void setInputHandler(InputHandler inputHandler) {
    if (this.inputHandler != null) {
      removeKeyListener(this.inputHandler);
    }

    if (inputHandler != null) {
      addKeyListener(inputHandler);
    }

    this.inputHandler = inputHandler;
  }


  /**
   *  Toggles caret blinking.
   *
   * @param  caretBlinks  True if the caret should blink, false otherwise
   */
  public void setCaretBlinkEnabled(boolean caretBlinks) {
    this.caretBlinks = caretBlinks;
    if (!caretBlinks) {
      blink = false;
    }

    painter.invalidateSelectedLines();
  }


  /**
   *  Sets if the caret should be visible.
   *
   * @param  caretVisible  True if the caret should be visible, false
   *      otherwise
   */
  public void setCaretVisible(boolean caretVisible) {
    this.caretVisible = caretVisible;
    blink = true;

    painter.invalidateSelectedLines();
  }


  /**
   *  Sets the line displayed at the text area's origin without updating the
   *  scroll bars.
   *
   * @param  firstLine  The new FirstLine value
   */
  public void setFirstLine(int firstLine) {
    if (firstLine == this.firstLine) {
      return;
    }
    int oldFirstLine = this.firstLine;
    this.firstLine = firstLine;
    if (firstLine != vertical.getValue()) {
      updateScrollBars();
    }
    painter.scrollRepaint(oldFirstLine, firstLine);
    painter.repaint();
  }


  /**
   *  Sets the horizontal offset of drawn lines. This can be used to implement
   *  horizontal scrolling.
   *
   * @param  horizontalOffset  offset The new horizontal offset
   */
  public void setHorizontalOffset(int horizontalOffset) {
    if (horizontalOffset == this.horizontalOffset) {
      return;
    }
    this.horizontalOffset = horizontalOffset;
    if (horizontalOffset != horizontal.getValue()) {
      updateScrollBars();
    }

    painter.invalidateLineRange(firstLine, firstLine + visibleLines);
    painter.repaint();
  }


  /**
   *  A fast way of changing both the first line and horizontal offset.
   *
   * @param  firstLine         The new first line
   * @param  horizontalOffset  The new horizontal offset
   * @return                   True if any of the values were changed, false
   *      otherwise
   */
  public boolean setOrigin(int firstLine, int horizontalOffset) {
    boolean changed = false;
    boolean fullRepaint = false;
    int oldFirstLine = this.firstLine;

    if (horizontalOffset != this.horizontalOffset) {
      this.horizontalOffset = horizontalOffset;
      changed = fullRepaint = true;
    }

    if (firstLine != this.firstLine) {
      this.firstLine = firstLine;
      changed = true;
    }

    if (changed) {
      updateScrollBars();
      if (fullRepaint) {
        painter._invalidateLineRange(firstLine,
          firstLine + visibleLines);
      }

      else {
        painter.scrollRepaint(oldFirstLine, firstLine);
      }

      painter.repaint();
    }

    return changed;
  }


  /**
   *  Sets the document this text area is editing.
   *
   * @param  document  The document
   */
  public void setDocument(ACLSyntaxDocument document) {
    if (this.document == document) {
      return;
    }
    if (this.document != null) {
      this.document.removeDocumentListener(documentHandler);
    }

    this.document = document;

    document.addDocumentListener(documentHandler);

    select(0, 0);
    updateScrollBars();
    painter.invalidateOffscreen();
    painter.repaint();
  }


  /**
   *  Sets the entire text of this text area.
   *
   * @param  text  The new Text value
   */
  public void setText(String text) {
    try {
      document.remove(0, document.getLength());
      document.insertString(0, text, null);
    }
    catch (BadLocationException bl) {
      bl.printStackTrace();
    }
  }


  /**
   *  Replaces the selection with the specified text.
   *
   * @param  selectedText  The replacement text for the selection
   */
  public void setSelectedText(String selectedText) {
    if (!editable) {
      throw new InternalError("Text component"
         + " read only");
    }

    try {
      document.remove(selectionStart,
        selectionEnd - selectionStart);
      document.insertString(selectionStart,
        selectedText, null);
      setCaretPosition(selectionEnd);
    }
    catch (BadLocationException bl) {
      bl.printStackTrace();
      throw new InternalError("Cannot replace"
         + " selection");
    }
  }


  public void update() {
    this.register(msg, "Content");
  }


  /**
   *  Description of the Method
   *
   * @param  arg        Description of Parameter
   * @param  fieldName  Description of Parameter
   */
  public void register(Object arg, String fieldName) {
    this.msg = (ACLMessage)arg;
    this.fieldName = fieldName;
    contentLanguage = (msg.getLanguage() != null ? msg.getLanguage() : "<unknown>");
    String methodName = "get" + fieldName;
    String content = "";

    try {
      Method sn = msg.getClass().getMethod(methodName, (Class[]) null);
      content = (String)sn.invoke(msg, new Object[]{});
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
    if (contentLanguage.indexOf("SL") >= 0) {
      //Only format when SL
      try {
        content = (String)new SLFormatter().format(content);
      }
      catch (Exception ex) {
        //too bad!
      }
    }

    while ((content != null) && (content.indexOf('\n')) == 0) {
      content = content.substring(1);
    }

    setText(content);
    this.setCaretPosition(0);
  }


  /**
   *  Description of the Method
   *
   * @param  arg  Description of Parameter
   * @param  str  Description of Parameter
   */
  public void unregister(Object arg, String str) {
//    msg.deleteObserver(this);
  }


  /**
   *  Description of the Method
   *
   * @param  e  Description of Parameter
   */
  public void focusLost(FocusEvent e) {
    String value = getText();
    while ((value != null) && ((value.indexOf('\n') == 0) || (value.indexOf(' ') == 0))) {
      value = value.substring(1);
    }

    String methodName = "set" + fieldName;
    String theType = "java.lang.String";
    try {
      Method sn = msg.getClass().getMethod(methodName, new Class[]{Class.forName(theType)});
      Object os = value;
      sn.invoke(msg, new Object[]{os});
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
  }


  /**
   *  Updates the state of the scroll bars. This should be called if the
   *  number of lines in the document changes, or when the size of the text
   *  are changes.
   */
  public void updateScrollBars() {

    if (vertical != null && visibleLines != 0) {
      vertical.setValues(firstLine, visibleLines, 0, getLineCount());
      vertical.setUnitIncrement(2);
      vertical.setBlockIncrement(visibleLines);
    }
    int width = painter.getWidth();

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
玖玖九九国产精品| 激情伊人五月天久久综合| 成人白浆超碰人人人人| 精品av久久707| 国产精品一区二区x88av| 国产精品久久久久影视| 久久九九国产精品| 日韩视频一区二区三区在线播放 | 精品免费视频一区二区| 美腿丝袜一区二区三区| 精品久久一二三区| 国产成人8x视频一区二区| 国产精品免费看片| 色一情一伦一子一伦一区| 国产精品二三区| 在线观看视频一区| 日韩精品久久久久久| 午夜精品免费在线| 国产综合色视频| 色老汉av一区二区三区| 亚洲成av人片www| 欧美国产欧美亚州国产日韩mv天天看完整 | 国产精品久久综合| 久久蜜桃av一区精品变态类天堂| 色婷婷亚洲一区二区三区| 国产成人亚洲综合a∨婷婷图片| heyzo一本久久综合| 精品视频在线视频| av电影在线不卡| 狠狠色丁香久久婷婷综| 大胆欧美人体老妇| 欧美无人高清视频在线观看| 欧美一区二区视频在线观看 | 国产一区91精品张津瑜| 中文字幕亚洲视频| 日韩一区二区在线观看视频| 欧美一区二区在线不卡| 精品成人一区二区| 亚洲成人www| 成人av电影免费在线播放| 欧美精品18+| 亚洲激情自拍偷拍| 日韩视频免费观看高清完整版 | 91福利视频久久久久| 亚洲激情图片qvod| 日韩欧美电影一二三| 91香蕉视频在线| 久久精品国产一区二区三区免费看| 国产精品毛片无遮挡高清| 6080午夜不卡| 色综合天天综合色综合av | 国产美女精品在线| 婷婷综合在线观看| 国产精品情趣视频| 亚洲精品一线二线三线无人区| 色婷婷综合久久久| 成人午夜短视频| 奇米在线7777在线精品| 欧美mv和日韩mv的网站| 午夜精品影院在线观看| 欧美女孩性生活视频| 精品午夜久久福利影院| 国产日韩欧美高清| 99精品久久只有精品| 亚洲国产综合视频在线观看| 色视频欧美一区二区三区| 亚洲精品伦理在线| 国产精品视频免费看| 欧美aaaaaa午夜精品| 亚洲午夜一区二区| 综合在线观看色| 最新日韩av在线| 国产精品不卡一区二区三区| 久久人人爽人人爽| 337p日本欧洲亚洲大胆色噜噜| 91精品国产欧美一区二区成人| 欧美三级视频在线观看| 欧洲精品视频在线观看| 欧洲一区在线电影| 在线观看欧美精品| 欧美天天综合网| 欧美探花视频资源| 欧美精品视频www在线观看| 色哟哟欧美精品| 在线中文字幕一区| 欧美视频完全免费看| 欧美日韩精品一区视频| 欧美日韩精品三区| 日韩三级免费观看| 欧美精品一区二区三区一线天视频 | 日韩一区二区高清| 欧美成人女星排名| 精品88久久久久88久久久 | 国产网站一区二区| 国产精品久久久久久妇女6080| 国产精品高潮呻吟| 亚洲综合色婷婷| 日韩成人一区二区| 极品销魂美女一区二区三区| 国产一区二区剧情av在线| 成人一级片在线观看| 色悠悠久久综合| 欧美老女人第四色| 日韩欧美二区三区| 国产精品久久99| 亚洲五月六月丁香激情| 麻豆国产精品777777在线| 国产精品一区一区| 欧洲精品中文字幕| 精品久久久三级丝袜| 中文字幕一区二区三区在线观看| 亚洲已满18点击进入久久| 免费在线观看视频一区| 豆国产96在线|亚洲| 欧美日韩免费一区二区三区| 久久综合九色综合97婷婷女人 | 欧美专区日韩专区| 精品国产伦理网| 亚洲人成网站在线| 美腿丝袜亚洲色图| 91亚洲永久精品| 日韩欧美黄色影院| 中文字幕中文字幕一区| 日本视频一区二区三区| 久久久99精品免费观看不卡| 久久久久久久综合狠狠综合| www.日韩在线| 久久久777精品电影网影网| 1区2区3区国产精品| 精品在线观看免费| 欧洲一区二区av| 久久久久亚洲蜜桃| 亚洲精品日韩一| 国产成人综合精品三级| 欧美一区三区四区| 亚洲国产精品一区二区www在线| 成人国产精品免费| 91精品国产手机| 国产精品久久久久永久免费观看| 日本在线观看不卡视频| 波多野结衣中文一区| 欧美一级久久久久久久大片| 亚洲日本电影在线| 成人午夜av影视| 日韩亚洲欧美在线| 亚洲va国产va欧美va观看| 成人自拍视频在线观看| 精品久久久久99| 午夜欧美一区二区三区在线播放| youjizz国产精品| 久久久久久久免费视频了| 日本va欧美va精品发布| 欧美日韩综合色| 中文字幕在线一区免费| 国产69精品久久777的优势| 精品国产乱码久久久久久蜜臀| 亚洲h在线观看| 色综合久久综合网| 国产精品大尺度| 国产不卡在线播放| 久久这里都是精品| 精品一区二区三区在线视频| 欧美精品一二三区| 日韩精品乱码av一区二区| 欧美视频中文字幕| 亚洲香蕉伊在人在线观| 日本韩国欧美一区| 亚洲美女屁股眼交| 91国内精品野花午夜精品| 亚洲人成影院在线观看| 91猫先生在线| 亚洲美女免费在线| 欧美亚洲综合色| 日韩不卡免费视频| 欧美福利视频一区| 奇米在线7777在线精品| 欧美videossexotv100| 久久精品99国产国产精| 精品少妇一区二区三区免费观看| 麻豆91在线播放免费| 日韩精品一区二区三区中文精品| 久久激情五月激情| 久久嫩草精品久久久精品一| 国产福利91精品一区二区三区| 久久久91精品国产一区二区精品| 国产激情一区二区三区四区| 国产免费观看久久| 一本久久综合亚洲鲁鲁五月天| 亚洲美腿欧美偷拍| 在线综合+亚洲+欧美中文字幕| 久久精品国产亚洲一区二区三区| 国产视频一区二区三区在线观看| 成人免费毛片嘿嘿连载视频| 亚洲欧美国产高清| www.日本不卡| 色综合一区二区三区| 福利视频网站一区二区三区| 精品噜噜噜噜久久久久久久久试看| 日韩一区二区在线免费观看| 91久久精品一区二区二区|