⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textchange.java

📁 自己建立的项目
💻 JAVA
字号:
package com.swtSample.text;

/**
 * This class contains a single change, used for Undo processing
 */
public class TextChange {
  // The starting offset of the change
  private int start;

  // The length of the change
  private int length;

  // The replaced text
  String replacedText;

  /**
   * Constructs a TextChange
   * 
   * @param start the starting offset of the change
   * @param length the length of the change
   * @param replacedText the text that was replaced
   */
  public TextChange(int start, int length, String replacedText) {
    this.start = start;
    this.length = length;
    this.replacedText = replacedText;
  }

  /**
   * Returns the start
   * 
   * @return int
   */
  public int getStart() {
    return start;
  }

  /**
   * Returns the length
   * 
   * @return int
   */
  public int getLength() {
    return length;
  }

  /**
   * Returns the replacedText
   * 
   * @return String
   */
  public String getReplacedText() {
    return replacedText;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -