001: /*
002: * GWT-Ext Widget Library
003: * Copyright(c) 2007-2008, GWT-Ext.
004: * licensing@gwt-ext.com
005: *
006: * http://www.gwt-ext.com/license
007: */
008: package com.gwtext.sample.showcase2.client.chooser;
009:
010: public class ImageData {
011: private String name = null;
012: private String url = null;
013: private String fileName = null;
014: private long size = 0;
015: private String searchString = null;
016: private String foundLocation = null;
017: private String keyword[] = null;
018: private String lastModified = null;
019:
020: public String getName() {
021: return name;
022: }
023:
024: public void clear() {
025: name = null;
026: url = null;
027: fileName = null;
028: size = 0;
029: searchString = null;
030: foundLocation = null;
031: keyword = null;
032: }
033:
034: public void setName(String name) {
035: this .name = name;
036: }
037:
038: public String getUrl() {
039: return url;
040: }
041:
042: public void setUrl(String url) {
043: this .url = url;
044: }
045:
046: public String getFileName() {
047: return fileName;
048: }
049:
050: public void setFileName(String fileName) {
051: this .fileName = fileName;
052: }
053:
054: public long getSize() {
055: return size;
056: }
057:
058: public void setSize(long size) {
059: this .size = size;
060: }
061:
062: public String getSearchString() {
063: return searchString;
064: }
065:
066: public void setSearchString(String searchString) {
067: this .searchString = searchString;
068: }
069:
070: public String getFoundLocation() {
071: return foundLocation;
072: }
073:
074: public void setFoundLocation(String foundLocation) {
075: this .foundLocation = foundLocation;
076: }
077:
078: public String[] getKeyword() {
079: return keyword;
080: }
081:
082: public void setKeyword(String[] keyword) {
083: this .keyword = keyword;
084: }
085:
086: public String getLastModified() {
087: return lastModified;
088: }
089:
090: public void setLastModified(String lastModified) {
091: this .lastModified = lastModified;
092: }
093:
094: public String toString() {
095: StringBuffer buffer = new StringBuffer();
096: buffer.append("ImageData[");
097: buffer.append("fileName = ").append(fileName);
098: buffer.append("; foundLocation = ").append(foundLocation);
099: if (keyword == null) {
100: buffer.append("; keyword = ").append("null");
101: } else {
102: for (int i = 0; i < keyword.length; i++) {
103: if (i > 0)
104: buffer.append(',');
105: buffer.append('[');
106: buffer.append(i);
107: buffer.append("]:");
108: buffer.append(keyword[i]);
109: }
110: }
111: buffer.append("; lastModified = ").append(lastModified);
112: buffer.append("; name = ").append(name);
113: buffer.append("; searchString = ").append(searchString);
114: buffer.append("; size = ").append(size);
115: buffer.append("; url = ").append(url);
116: buffer.append("]");
117: return buffer.toString();
118: }
119: }
|