Rename FollowedTab to ChaturbateFollowedTab

This commit is contained in:
0xboobface 2018-10-24 14:59:48 +02:00
parent a8ca3068ed
commit 617954928e
2 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,6 @@
package ctbrec.ui;
package ctbrec.sites.chaturbate;
import ctbrec.sites.chaturbate.Chaturbate;
import ctbrec.sites.chaturbate.ChaturbateUpdateService;
import ctbrec.ui.ThumbOverviewTab;
import javafx.concurrent.WorkerStateEvent;
import javafx.geometry.Insets;
import javafx.scene.Scene;
@ -12,12 +11,12 @@ import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.HBox;
public class FollowedTab extends ThumbOverviewTab {
public class ChaturbateFollowedTab extends ThumbOverviewTab {
private Label status;
private String onlineUrl;
private String offlineUrl;
public FollowedTab(String title, String url, Chaturbate chaturbate) {
public ChaturbateFollowedTab(String title, String url, Chaturbate chaturbate) {
super(title, new ChaturbateUpdateService(url, true, chaturbate), chaturbate);
onlineUrl = url;
offlineUrl = url + "offline/";
@ -27,7 +26,7 @@ public class FollowedTab extends ThumbOverviewTab {
}
@Override
void createGui() {
protected void createGui() {
super.createGui();
addOnlineOfflineSelector();
}

View File

@ -4,7 +4,6 @@ import java.util.ArrayList;
import java.util.List;
import ctbrec.recorder.Recorder;
import ctbrec.ui.FollowedTab;
import ctbrec.ui.TabProvider;
import ctbrec.ui.ThumbOverviewTab;
import javafx.scene.Scene;
@ -29,7 +28,7 @@ public class ChaturbateTabProvider extends TabProvider {
tabs.add(createTab("Male", BASE_URI + "/male-cams/"));
tabs.add(createTab("Couples", BASE_URI + "/couple-cams/"));
tabs.add(createTab("Trans", BASE_URI + "/trans-cams/"));
FollowedTab followedTab = new FollowedTab("Followed", BASE_URI + "/followed-cams/", chaturbate);
ChaturbateFollowedTab followedTab = new ChaturbateFollowedTab("Followed", BASE_URI + "/followed-cams/", chaturbate);
followedTab.setRecorder(recorder);
followedTab.setScene(scene);
tabs.add(followedTab);