test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
45
.config/Code/User/History/-48864ad4/1T69.java
Normal file
45
.config/Code/User/History/-48864ad4/1T69.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
24
.config/Code/User/History/-48864ad4/2tWV.java
Normal file
24
.config/Code/User/History/-48864ad4/2tWV.java
Normal file
|
@ -0,0 +1,24 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
}
|
72
.config/Code/User/History/-48864ad4/4d4W.java
Normal file
72
.config/Code/User/History/-48864ad4/4d4W.java
Normal file
|
@ -0,0 +1,72 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
30
.config/Code/User/History/-48864ad4/7G0S.java
Normal file
30
.config/Code/User/History/-48864ad4/7G0S.java
Normal file
|
@ -0,0 +1,30 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
70
.config/Code/User/History/-48864ad4/8ehd.java
Normal file
70
.config/Code/User/History/-48864ad4/8ehd.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
21
.config/Code/User/History/-48864ad4/9FDx.java
Normal file
21
.config/Code/User/History/-48864ad4/9FDx.java
Normal file
|
@ -0,0 +1,21 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<? extends Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
}
|
||||
}
|
41
.config/Code/User/History/-48864ad4/BMFq.java
Normal file
41
.config/Code/User/History/-48864ad4/BMFq.java
Normal file
|
@ -0,0 +1,41 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
61
.config/Code/User/History/-48864ad4/Bb0I.java
Normal file
61
.config/Code/User/History/-48864ad4/Bb0I.java
Normal file
|
@ -0,0 +1,61 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
71
.config/Code/User/History/-48864ad4/CAPe.java
Normal file
71
.config/Code/User/History/-48864ad4/CAPe.java
Normal file
|
@ -0,0 +1,71 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().removeAll(tabButton, stackPane);
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
73
.config/Code/User/History/-48864ad4/CvOP.java
Normal file
73
.config/Code/User/History/-48864ad4/CvOP.java
Normal file
|
@ -0,0 +1,73 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().remove(stackPane);
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
pt.setOnFinished(e -> {
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().remove(tabButton);
|
||||
});
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
53
.config/Code/User/History/-48864ad4/DDs4.java
Normal file
53
.config/Code/User/History/-48864ad4/DDs4.java
Normal file
|
@ -0,0 +1,53 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
67
.config/Code/User/History/-48864ad4/EkaD.java
Normal file
67
.config/Code/User/History/-48864ad4/EkaD.java
Normal file
|
@ -0,0 +1,67 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
55
.config/Code/User/History/-48864ad4/FGNd.java
Normal file
55
.config/Code/User/History/-48864ad4/FGNd.java
Normal file
|
@ -0,0 +1,55 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
70
.config/Code/User/History/-48864ad4/FXcv.java
Normal file
70
.config/Code/User/History/-48864ad4/FXcv.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
19
.config/Code/User/History/-48864ad4/FbvZ.java
Normal file
19
.config/Code/User/History/-48864ad4/FbvZ.java
Normal file
|
@ -0,0 +1,19 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<? extends Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
}
|
||||
}
|
70
.config/Code/User/History/-48864ad4/FfUc.java
Normal file
70
.config/Code/User/History/-48864ad4/FfUc.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.jb;
|
||||
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
31
.config/Code/User/History/-48864ad4/HHjr.java
Normal file
31
.config/Code/User/History/-48864ad4/HHjr.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
58
.config/Code/User/History/-48864ad4/HkKP.java
Normal file
58
.config/Code/User/History/-48864ad4/HkKP.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-2)*155 + 5);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
31
.config/Code/User/History/-48864ad4/JCZF.java
Normal file
31
.config/Code/User/History/-48864ad4/JCZF.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
66
.config/Code/User/History/-48864ad4/L8wK.java
Normal file
66
.config/Code/User/History/-48864ad4/L8wK.java
Normal file
|
@ -0,0 +1,66 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
70
.config/Code/User/History/-48864ad4/LI90.java
Normal file
70
.config/Code/User/History/-48864ad4/LI90.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
StackPane(this.tabButton.getScene().getRoot())
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
32
.config/Code/User/History/-48864ad4/NZ9l.java
Normal file
32
.config/Code/User/History/-48864ad4/NZ9l.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX(Main.getNoOfTabs()*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
73
.config/Code/User/History/-48864ad4/QYrU.java
Normal file
73
.config/Code/User/History/-48864ad4/QYrU.java
Normal file
|
@ -0,0 +1,73 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((JBrowse.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().remove(stackPane);
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
pt.setOnFinished(e -> {
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().remove(tabButton);
|
||||
});
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
24
.config/Code/User/History/-48864ad4/RPut.java
Normal file
24
.config/Code/User/History/-48864ad4/RPut.java
Normal file
|
@ -0,0 +1,24 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<? extends Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
}
|
31
.config/Code/User/History/-48864ad4/RWHp.java
Normal file
31
.config/Code/User/History/-48864ad4/RWHp.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
25
.config/Code/User/History/-48864ad4/RsHU.java
Normal file
25
.config/Code/User/History/-48864ad4/RsHU.java
Normal file
|
@ -0,0 +1,25 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
}
|
57
.config/Code/User/History/-48864ad4/RyFM.java
Normal file
57
.config/Code/User/History/-48864ad4/RyFM.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 - 75);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
58
.config/Code/User/History/-48864ad4/SPcj.java
Normal file
58
.config/Code/User/History/-48864ad4/SPcj.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 - 75);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
72
.config/Code/User/History/-48864ad4/SwUs.java
Normal file
72
.config/Code/User/History/-48864ad4/SwUs.java
Normal file
|
@ -0,0 +1,72 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
pt.setOnFinished(e -> {
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().removeAll(tabButton, stackPane);
|
||||
});
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
57
.config/Code/User/History/-48864ad4/T1oq.java
Normal file
57
.config/Code/User/History/-48864ad4/T1oq.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 );
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
36
.config/Code/User/History/-48864ad4/V2vy.java
Normal file
36
.config/Code/User/History/-48864ad4/V2vy.java
Normal file
|
@ -0,0 +1,36 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
74
.config/Code/User/History/-48864ad4/VG7U.java
Normal file
74
.config/Code/User/History/-48864ad4/VG7U.java
Normal file
|
@ -0,0 +1,74 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
58
.config/Code/User/History/-48864ad4/XvrC.java
Normal file
58
.config/Code/User/History/-48864ad4/XvrC.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
64
.config/Code/User/History/-48864ad4/ZpTL.java
Normal file
64
.config/Code/User/History/-48864ad4/ZpTL.java
Normal file
|
@ -0,0 +1,64 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
|
||||
}
|
||||
public void shrink(){
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
57
.config/Code/User/History/-48864ad4/aT7s.java
Normal file
57
.config/Code/User/History/-48864ad4/aT7s.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 75);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
38
.config/Code/User/History/-48864ad4/bVec.java
Normal file
38
.config/Code/User/History/-48864ad4/bVec.java
Normal file
|
@ -0,0 +1,38 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
69
.config/Code/User/History/-48864ad4/cphL.java
Normal file
69
.config/Code/User/History/-48864ad4/cphL.java
Normal file
|
@ -0,0 +1,69 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
57
.config/Code/User/History/-48864ad4/eAW0.java
Normal file
57
.config/Code/User/History/-48864ad4/eAW0.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
1
.config/Code/User/History/-48864ad4/entries.json
Normal file
1
.config/Code/User/History/-48864ad4/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/JBrowse/jbrowse/src/main/java/com/jb/BrowserTab.java","entries":[{"id":"FbvZ.java","timestamp":1713519059159},{"id":"9FDx.java","source":"Import 'ArrayList' (java.util)","timestamp":1713519067939},{"id":"RPut.java","timestamp":1713519084801},{"id":"2tWV.java","timestamp":1713519106060},{"id":"RsHU.java","timestamp":1713519127142},{"id":"n2Xe.java","timestamp":1713519177097},{"id":"7G0S.java","timestamp":1713519363443},{"id":"JCZF.java","timestamp":1713519560955},{"id":"RWHp.java","timestamp":1713520166833},{"id":"HHjr.java","timestamp":1713522347531},{"id":"NZ9l.java","timestamp":1713522395128},{"id":"uEB8.java","timestamp":1713522432745},{"id":"V2vy.java","timestamp":1713522463775},{"id":"bVec.java","timestamp":1713522475021},{"id":"mjCp.java","timestamp":1713522498471},{"id":"BMFq.java","timestamp":1713522536598},{"id":"v2JS.java","timestamp":1713522695095},{"id":"qniF.java","timestamp":1713523510803},{"id":"1T69.java","timestamp":1713523702798},{"id":"DDs4.java","timestamp":1713523779812},{"id":"tq5S.java","timestamp":1713523790072},{"id":"FGNd.java","timestamp":1713523803074},{"id":"pOex.java","timestamp":1713523828332},{"id":"HkKP.java","timestamp":1713523854684},{"id":"XvrC.java","timestamp":1713523871563},{"id":"SPcj.java","timestamp":1713523901821},{"id":"nOdn.java","timestamp":1713523931922},{"id":"RyFM.java","timestamp":1713525895800},{"id":"T1oq.java","timestamp":1713526138292},{"id":"eAW0.java","timestamp":1713526154228},{"id":"aT7s.java","timestamp":1713526166115},{"id":"v5dB.java","timestamp":1713526192767},{"id":"Bb0I.java","timestamp":1713526476912},{"id":"ZpTL.java","timestamp":1713526487035},{"id":"jvJ9.java","timestamp":1713526519020},{"id":"EkaD.java","timestamp":1713526542836},{"id":"8ehd.java","timestamp":1713526569856},{"id":"VG7U.java","timestamp":1713586033803},{"id":"4d4W.java","timestamp":1713783204189},{"id":"L8wK.java","timestamp":1713783218246},{"id":"nzFl.java","timestamp":1713783233376},{"id":"FfUc.java","timestamp":1713783652398},{"id":"cphL.java","timestamp":1713789709546},{"id":"FXcv.java","timestamp":1713789956228},{"id":"LI90.java","timestamp":1713790022013},{"id":"qzl3.java","timestamp":1713790081346},{"id":"CAPe.java","timestamp":1713790115347},{"id":"SwUs.java","timestamp":1713790135138},{"id":"CvOP.java","timestamp":1713790356754},{"id":"QYrU.java","source":"Workspace Edit","timestamp":1713790430870}]}
|
68
.config/Code/User/History/-48864ad4/jvJ9.java
Normal file
68
.config/Code/User/History/-48864ad4/jvJ9.java
Normal file
|
@ -0,0 +1,68 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
|
||||
}
|
||||
public void shrink(){
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
40
.config/Code/User/History/-48864ad4/mjCp.java
Normal file
40
.config/Code/User/History/-48864ad4/mjCp.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
27
.config/Code/User/History/-48864ad4/n2Xe.java
Normal file
27
.config/Code/User/History/-48864ad4/n2Xe.java
Normal file
|
@ -0,0 +1,27 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
stackPane.setTranslateY(70);
|
||||
stackPane.setStyle("-fx-background-color: black;");
|
||||
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
57
.config/Code/User/History/-48864ad4/nOdn.java
Normal file
57
.config/Code/User/History/-48864ad4/nOdn.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 - 75);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
72
.config/Code/User/History/-48864ad4/nzFl.java
Normal file
72
.config/Code/User/History/-48864ad4/nzFl.java
Normal file
|
@ -0,0 +1,72 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
58
.config/Code/User/History/-48864ad4/pOex.java
Normal file
58
.config/Code/User/History/-48864ad4/pOex.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
45
.config/Code/User/History/-48864ad4/qniF.java
Normal file
45
.config/Code/User/History/-48864ad4/qniF.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
70
.config/Code/User/History/-48864ad4/qzl3.java
Normal file
70
.config/Code/User/History/-48864ad4/qzl3.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.jb;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private TranslateTransition tt;
|
||||
private ScaleTransition st;
|
||||
private ParallelTransition pt;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
st = new ScaleTransition(new Duration(250), tabButton);
|
||||
pt = new ParallelTransition(tt, st);
|
||||
grow();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
}
|
||||
|
||||
public void bringToFront(){
|
||||
stackPane.toFront();
|
||||
}
|
||||
|
||||
public void grow(){
|
||||
tt.setByX(75);
|
||||
st.setByX(1);
|
||||
pt.play();
|
||||
}
|
||||
public void shrink(){
|
||||
tt.setByX(-75);
|
||||
st.setByX(-1);
|
||||
pt.play();
|
||||
((StackPane)this.tabButton.getScene().getRoot()).getChildren().removeAll(tabButton, stackPane);
|
||||
}
|
||||
|
||||
public TabButton getTabButton(){
|
||||
return tabButton;
|
||||
}
|
||||
|
||||
public StackPane getStackPane(){
|
||||
return stackPane;
|
||||
}
|
||||
|
||||
}
|
54
.config/Code/User/History/-48864ad4/tq5S.java
Normal file
54
.config/Code/User/History/-48864ad4/tq5S.java
Normal file
|
@ -0,0 +1,54 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.transform.Translate;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
32
.config/Code/User/History/-48864ad4/uEB8.java
Normal file
32
.config/Code/User/History/-48864ad4/uEB8.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(stackPane);
|
||||
nodes.add(tabButton);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
41
.config/Code/User/History/-48864ad4/v2JS.java
Normal file
41
.config/Code/User/History/-48864ad4/v2JS.java
Normal file
|
@ -0,0 +1,41 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton();
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
57
.config/Code/User/History/-48864ad4/v5dB.java
Normal file
57
.config/Code/User/History/-48864ad4/v5dB.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.jb;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.animation.ParallelTransition;
|
||||
import javafx.animation.ScaleTransition;
|
||||
import javafx.animation.TranslateTransition;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import javafx.scene.web.WebView;
|
||||
import javafx.util.Duration;
|
||||
|
||||
public class BrowserTab{
|
||||
|
||||
private TabButton tabButton;
|
||||
private StackPane stackPane;
|
||||
private WebView webView;
|
||||
private WebEngine webEngine;
|
||||
|
||||
private ArrayList<Node> nodes;
|
||||
|
||||
public BrowserTab(){
|
||||
tabButton = new TabButton(this);
|
||||
stackPane = new StackPane();
|
||||
webView = new WebView();
|
||||
webEngine = webView.getEngine();
|
||||
|
||||
webEngine.load("https://google.com");
|
||||
stackPane.getChildren().add(webView);
|
||||
|
||||
stackPane.setId("tab-pane");
|
||||
tabButton.setTranslateX((Main.getNoOfTabs()-1)*155 + 5 + 80);
|
||||
tabButton.setScaleX(0);
|
||||
|
||||
TranslateTransition tt = new TranslateTransition(new Duration(250), tabButton);
|
||||
tt.setByX(75);
|
||||
ScaleTransition st = new ScaleTransition(new Duration(250), tabButton);
|
||||
st.setByX(1);
|
||||
ParallelTransition pt = new ParallelTransition(tt, st);
|
||||
pt.play();
|
||||
|
||||
StackPane.setAlignment(stackPane, Pos.TOP_LEFT);
|
||||
StackPane.setAlignment(tabButton, Pos.TOP_LEFT);
|
||||
|
||||
nodes = new ArrayList<>();
|
||||
nodes.add(tabButton);
|
||||
nodes.add(stackPane);
|
||||
|
||||
}
|
||||
|
||||
public ArrayList<Node> getNodes(){
|
||||
return nodes;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue