📄 frameinfo.java
字号:
/* * File: FrameInfo.java * Project: MPI Linguistic Application * Date: 02 May 2007 * * Copyright (C) 2001-2007 Max Planck Institute for Psycholinguistics * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */package mpi.eudico.client.annotator.util;import javax.swing.JFrame;/** * Stores information on currently opened frames. * * @author Han Sloetjes, MPI */public class FrameInfo { private String frameId; private String frameName; private JFrame frame; private String filePath; /** * Creates a new FrameInfo instance * * @param frame the frame * @param frameId the id */ public FrameInfo(JFrame frame, String frameId) { this.frame = frame; this.frameId = frameId; } /** * Returns the path to the file loaded in this frame * * @return the file path */ public String getFilePath() { return filePath; } /** * Sets the file path * * @param filePath the file path (url) */ public void setFilePath(String filePath) { this.filePath = filePath; } /** * Returns the frame * * @return the frame */ public JFrame getFrame() { return frame; } /** * Sets the frame * * @param frame the frame */ public void setFrame(JFrame frame) { this.frame = frame; } /** * Returns the frame id * * @return the frame id */ public String getFrameId() { return frameId; } /** * Sets the frame id * * @param frameId the frame id */ public void setFrameId(String frameId) { this.frameId = frameId; } /** * Returns the frame name, which is not always the same as the title. * Normally it is the filename, for documents that not have been * saved yet it is something like "Untitled-n" * * @return the frame name (for display in menu) */ public String getFrameName() { return frameName; } /** * Sets the frame name * * @see #getFrameName() * @param frameName the frame name */ public void setFrameName(String frameName) { this.frameName = frameName; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -