📄 imagedata.java
字号:
/*
* GWT-Ext Widget Library
* Copyright 2007 - 2008, GWT-Ext LLC., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This 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; either version 3 of
* the License, or (at your option) any later version.
*
* This software 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 software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package com.gwtext.sample.showcase2.client.chooser;
public class ImageData {
private String name = null;
private String url = null;
private String fileName = null;
private long size = 0;
private String searchString = null;
private String foundLocation = null;
private String keyword[] = null;
private String lastModified = null;
public String getName() {
return name;
}
public void clear() {
name = null;
url = null;
fileName = null;
size = 0;
searchString = null;
foundLocation = null;
keyword = null;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public long getSize() {
return size;
}
public void setSize(long size) {
this.size = size;
}
public String getSearchString() {
return searchString;
}
public void setSearchString(String searchString) {
this.searchString = searchString;
}
public String getFoundLocation() {
return foundLocation;
}
public void setFoundLocation(String foundLocation) {
this.foundLocation = foundLocation;
}
public String[] getKeyword() {
return keyword;
}
public void setKeyword(String[] keyword) {
this.keyword = keyword;
}
public String getLastModified() {
return lastModified;
}
public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("ImageData[");
buffer.append("fileName = ").append(fileName);
buffer.append("; foundLocation = ").append(foundLocation);
if (keyword == null) {
buffer.append("; keyword = ").append("null");
} else {
for (int i = 0; i < keyword.length; i++) {
if (i > 0)
buffer.append(',');
buffer.append('[');
buffer.append(i);
buffer.append("]:");
buffer.append(keyword[i]);
}
}
buffer.append("; lastModified = ").append(lastModified);
buffer.append("; name = ").append(name);
buffer.append("; searchString = ").append(searchString);
buffer.append("; size = ").append(size);
buffer.append("; url = ").append(url);
buffer.append("]");
return buffer.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -