本文整理汇总了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;