mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
Network tree classes have been added
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1061 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
1cddf78fa1
commit
282c132922
10 changed files with 254 additions and 76 deletions
|
@ -41,28 +41,7 @@ public class NetworkLibrary {
|
|||
private boolean myUpdateChildren = true;
|
||||
|
||||
|
||||
private static class DummyCatalogItem extends NetworkCatalogItem {
|
||||
public DummyCatalogItem(NetworkLink link, String title, String summary) {
|
||||
super(link, title, summary, VisibilityType.ALWAYS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String loadChildren(List<NetworkLibraryItem> children) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public NetworkLibrary() {
|
||||
myLinks.add(new NetworkLink("feedbooks.com") {
|
||||
public NetworkLibraryItem libraryItem() {
|
||||
return new DummyCatalogItem(this, "Feedbooks catalog", "feedbooks online catalog");
|
||||
}
|
||||
});
|
||||
myLinks.add(new NetworkLink("litres.ru") {
|
||||
public NetworkLibraryItem libraryItem() {
|
||||
return new DummyCatalogItem(this, "Litres catalog", "litres online catalog");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public List<NetworkLink> links() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue