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

📄 wapfiles.java

📁 WAP ide 代码
💻 JAVA
字号:
package wapide;/** * A Helper class for the SyntaxDocument and IDEFrame classes.  Encapsulates * data about the current file and its contents into a simple class. * Copyright:    Copyright (c) 2003 * @author Mark Busman * @version 1.0 * * For License and contact information see WAPIDE.java */public class WAPFiles {  private int FileNumber = -1;  private String FileName = "";  private int FileType = -1;  private String FileText = "";  private String FilePath = "";  private boolean Modified = false;  /**   * Empty constructor.   */  public WAPFiles() {  }  /**   * Sets a file's unique ID number.   * @param int number.   */  public void setFileNumber(int n) {    FileNumber = n;  }  /**   * Sets the filename as found on disk.   * @param fname - the name of the file.   */  public void setFileName(String fn) {    FileName = fn;  }  /**   * Sets the type of file, such as wml or si or sl files.   * @param int type - The number that corresponds to the file type in the   * IDEFrame class.   */  public void setFileType(int t) {    FileType = t;  }  /**   * Sets the text of the file.   * @param String text.   */  public void setFileText(String text) {    FileText = text;  }  /**   * Sets the path to the file on disk.   * @param String path.   */  public void setFilePath(String path) {    FilePath = path;  }  /**   * Get the file's ID number.   * @return int num.   */  public int getFileNumber() {    return FileNumber;  }  /**   * Get the file name.   * @retrun String name.   */  public String getFileName() {    return FileName;  }  /**   * Get the file type, wml, si, or others.   * @param int type.   */  public int getFileType() {    return FileType;  }  /**   * Get the file's data.   * @return String text.   */  public String getFileText() {    return FileText;  }  /**   * Get the path to the file on disk.   * @return String path.   */  public String getFilePath() {    return FilePath;  }  /**   * Sets the file's modification state, to be used when saving.   * @param boolean status - true if modified.   */  public void setFileModified(boolean status) {    Modified = status;  }  /**   * Get the file's state.  If true then the file was modified w/out saving.   * @return boolean status.   */  public boolean getFileModified() {    return Modified;  }}

⌨️ 快捷键说明

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