mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
1eab5aba49
commit
0e311f40c9
|
@ -78,7 +78,8 @@ public final class CalendarParsedResult extends ParsedResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayResult() {
|
public String getDisplayResult() {
|
||||||
StringBuffer result = new StringBuffer(summary);
|
StringBuffer result = new StringBuffer();
|
||||||
|
maybeAppend(summary, result);
|
||||||
maybeAppend(start, result);
|
maybeAppend(start, result);
|
||||||
maybeAppend(end, result);
|
maybeAppend(end, result);
|
||||||
maybeAppend(location, result);
|
maybeAppend(location, result);
|
||||||
|
|
|
@ -51,7 +51,11 @@ public final class EmailAddressParsedResult extends ParsedResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayResult() {
|
public String getDisplayResult() {
|
||||||
return emailAddress;
|
StringBuffer result = new StringBuffer();
|
||||||
|
maybeAppend(emailAddress, result);
|
||||||
|
maybeAppend(subject, result);
|
||||||
|
maybeAppend(body, result);
|
||||||
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -63,7 +63,13 @@ public final class SMSParsedResult extends ParsedResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayResult() {
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -45,7 +45,10 @@ public final class TelParsedResult extends ParsedResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayResult() {
|
public String getDisplayResult() {
|
||||||
return number;
|
StringBuffer result = new StringBuffer();
|
||||||
|
maybeAppend(number, result);
|
||||||
|
maybeAppend(title, result);
|
||||||
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -39,11 +39,10 @@ public final class URIParsedResult extends ParsedResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayResult() {
|
public String getDisplayResult() {
|
||||||
if (title == null) {
|
StringBuffer result = new StringBuffer();
|
||||||
return uri;
|
maybeAppend(uri, result);
|
||||||
} else {
|
maybeAppend(title, result);
|
||||||
return title + '\n' + uri;
|
return result.toString();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,6 @@
|
||||||
<a href="BarcodeReader.jad">Download</a>
|
<a href="BarcodeReader.jad">Download</a>
|
||||||
the ZXing Barcode Reader.
|
the ZXing Barcode Reader.
|
||||||
</p>
|
</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>
|
<p>
|
||||||
<strong>An Android client is available for the curious:</strong>
|
<strong>An Android client is available for the curious:</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue