本文整理匯總了Java中com.johan.vertretungsplan.objects.AdditionalInfo類的典型用法代碼示例。如果您正苦於以下問題:Java AdditionalInfo類的具體用法?Java AdditionalInfo怎麽用?Java AdditionalInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AdditionalInfo類屬於com.johan.vertretungsplan.objects包,在下文中一共展示了AdditionalInfo類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: refresh
import com.johan.vertretungsplan.objects.AdditionalInfo; //導入依賴的package包/類
public void refresh() {
if (ready && v != null && getView() != null) {
listadapter.clear();
for (VertretungsplanTag tag : v.getTage()) {
listadapter.addSeparatorItem(tag.getDatum());
for (String message : tag.getNachrichten()) {
listadapter.addItem(Html.fromHtml(message));
}
if (tag.getNachrichten().size() == 0)
listadapter.addItem(getResources().getString(
R.string.no_info));
}
for (AdditionalInfo info : v.getAdditionalInfos()) {
listadapter.addSeparatorItem(info.getTitle());
listadapter.addItem(info.getText());
}
list.startLayoutAnimation();
}
}
示例2: refresh
import com.johan.vertretungsplan.objects.AdditionalInfo; //導入依賴的package包/類
public void refresh() {
progress(false);
if(ready && v != null && getView() != null) {
listadapter.clear();
for(VertretungsplanTag tag:v.getTage()) {
listadapter.addSeparatorItem(tag.getDatum());
for (String message:tag.getNachrichten()) {
listadapter.addItem(Html.fromHtml(message));
}
if(tag.getNachrichten().size() == 0)
listadapter.addItem(getResources().getString(R.string.no_info));
}
for(AdditionalInfo info:v.getAdditionalInfos()) {
listadapter.addSeparatorItem(info.getTitle());
listadapter.addItem(info.getText());
}
progress(false);
}
}
示例3: getAdditionalInfo
import com.johan.vertretungsplan.objects.AdditionalInfo; //導入依賴的package包/類
@Override
public AdditionalInfo getAdditionalInfo() throws IOException,
JSONException {
AdditionalInfo info = new AdditionalInfo();
String xml = httpGet(URL, ENCODING);
Document doc = Jsoup.parse(xml, "", Parser.xmlParser());
String text = doc.select("item description").first().text();
if (text.contains("Aktuell gibt es keine Hinweise auf witterungsbedingten Unterrichtsausfall.")) {
text = "keine Informationen";
info.setHasInformation(false);
}
info.setText(text);
info.setTitle(TITLE + " (Stand: " + doc.select("pubDate").first().text() + ")");
return info;
}
示例4: getAdditionalInfo
import com.johan.vertretungsplan.objects.AdditionalInfo; //導入依賴的package包/類
@Override
public AdditionalInfo getAdditionalInfo() throws IOException,
JSONException {
AdditionalInfo info = new AdditionalInfo();
String xml = httpGet(URL, ENCODING);
Document doc = Jsoup.parse(xml, "", Parser.xmlParser());
String text = doc.select("item description").first().text();
if (text.contains("Aktuell gibt es keine Hinweise auf witterungsbedingten Unterrichtsausfall.")) {
text = "keine Informationen";
info.setHasInformation(false);
}
info.setText(text);
info.setTitle(TITLE + " (Stand: " + doc.select("pubDate").first().text() + ")");
return info;
}
示例5: getAdditionalInfo
import com.johan.vertretungsplan.objects.AdditionalInfo; //導入依賴的package包/類
public abstract AdditionalInfo getAdditionalInfo() throws IOException, JSONException;