Standardize getDisplayResult() implementation in parsed results, and fix up web site download page to show one J2ME download

git-svn-id: https://zxing.googlecode.com/svn/trunk@490 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-06-27 18:55:00 +00:00
parent 1eab5aba49
commit 0e311f40c9
6 changed files with 22 additions and 16 deletions

View file

@ -78,7 +78,8 @@ public final class CalendarParsedResult extends ParsedResult {
}
public String getDisplayResult() {
StringBuffer result = new StringBuffer(summary);
StringBuffer result = new StringBuffer();
maybeAppend(summary, result);
maybeAppend(start, result);
maybeAppend(end, result);
maybeAppend(location, result);

View file

@ -51,7 +51,11 @@ public final class EmailAddressParsedResult extends ParsedResult {
}
public String getDisplayResult() {
return emailAddress;
StringBuffer result = new StringBuffer();
maybeAppend(emailAddress, result);
maybeAppend(subject, result);
maybeAppend(body, result);
return result.toString();
}
}

View file

@ -63,7 +63,13 @@ public final class SMSParsedResult extends ParsedResult {
}
public String getDisplayResult() {
return number;
StringBuffer result = new StringBuffer();
maybeAppend(number, result);
maybeAppend(via, result);
maybeAppend(subject, result);
maybeAppend(body, result);
maybeAppend(title, result);
return result.toString();
}
}

View file

@ -45,7 +45,10 @@ public final class TelParsedResult extends ParsedResult {
}
public String getDisplayResult() {
return number;
StringBuffer result = new StringBuffer();
maybeAppend(number, result);
maybeAppend(title, result);
return result.toString();
}
}

View file

@ -39,11 +39,10 @@ public final class URIParsedResult extends ParsedResult {
}
public String getDisplayResult() {
if (title == null) {
return uri;
} else {
return title + '\n' + uri;
}
StringBuffer result = new StringBuffer();
maybeAppend(uri, result);
maybeAppend(title, result);
return result.toString();
}

View file

@ -32,13 +32,6 @@
<a href="BarcodeReader.jad">Download</a>
the ZXing Barcode Reader.
</p>
<p>
<strong>Having problems with the regular version?</strong>
</p>
<p>
<a href="BarcodeReaderBasic.jad">Download</a>
the ZXing Barcode Reader Basic version.
</p>
<p>
<strong>An Android client is available for the curious:</strong>
</p>