mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -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() {
|
||||
StringBuffer result = new StringBuffer(summary);
|
||||
StringBuffer result = new StringBuffer();
|
||||
maybeAppend(summary, result);
|
||||
maybeAppend(start, result);
|
||||
maybeAppend(end, result);
|
||||
maybeAppend(location, result);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue