2018-05-02 05:21:44 +03:00
|
|
|
package mplayer4anime.About;
|
|
|
|
|
|
|
|
import javafx.application.HostServices;
|
|
|
|
import javafx.fxml.FXML;
|
2018-11-25 18:13:09 +03:00
|
|
|
import javafx.fxml.Initializable;
|
2018-05-02 05:21:44 +03:00
|
|
|
import javafx.scene.control.Button;
|
2018-11-25 18:13:09 +03:00
|
|
|
import javafx.scene.control.TextArea;
|
2018-05-02 05:21:44 +03:00
|
|
|
import javafx.stage.Stage;
|
|
|
|
|
2018-11-25 18:13:09 +03:00
|
|
|
import java.net.URL;
|
|
|
|
import java.util.ResourceBundle;
|
2018-05-02 05:21:44 +03:00
|
|
|
|
2018-11-25 18:13:09 +03:00
|
|
|
|
|
|
|
public class AboutController implements Initializable {
|
2018-05-02 05:21:44 +03:00
|
|
|
|
|
|
|
private HostServices hostServices;
|
|
|
|
|
2018-11-25 18:13:09 +03:00
|
|
|
void setHostServices(HostServices hs){
|
2018-05-02 05:21:44 +03:00
|
|
|
this.hostServices = hs;
|
|
|
|
}
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
private Button buttonOk;
|
2018-11-25 18:13:09 +03:00
|
|
|
@FXML
|
|
|
|
private TextArea GSONLicense;
|
2018-05-02 05:21:44 +03:00
|
|
|
|
|
|
|
@FXML
|
|
|
|
private void buttonClickOk(){
|
|
|
|
Stage thisStage = (Stage) buttonOk.getScene().getWindow();
|
|
|
|
thisStage.close();
|
|
|
|
}
|
|
|
|
@FXML
|
|
|
|
private void gitHubUrl(){
|
|
|
|
try {
|
|
|
|
hostServices.showDocument("https://github.com/developersu/mplayer4anime");
|
|
|
|
} catch (Exception e){
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@FXML
|
|
|
|
private void bloggerUrl(){
|
|
|
|
try {
|
2018-11-28 07:10:35 +03:00
|
|
|
hostServices.showDocument("https://developersu.blogspot.com/search/label/mplayer4anime");
|
2018-05-02 05:21:44 +03:00
|
|
|
} catch (Exception e){
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
2018-11-25 18:13:09 +03:00
|
|
|
@FXML
|
|
|
|
private void libGSON(){
|
|
|
|
try {
|
|
|
|
hostServices.showDocument("https://github.com/google/gson");
|
|
|
|
} catch (Exception e){
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
2018-11-28 07:10:35 +03:00
|
|
|
@FXML
|
|
|
|
private void iconsMaterial(){
|
|
|
|
try {
|
|
|
|
hostServices.showDocument("https://materialdesignicons.com/");
|
|
|
|
} catch (Exception e){
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//TODO note icons meaterial design
|
2018-05-02 05:21:44 +03:00
|
|
|
|
2018-11-25 18:13:09 +03:00
|
|
|
@Override
|
|
|
|
public void initialize(URL url, ResourceBundle resourceBundle) {
|
|
|
|
GSONLicense.setText("Copyright 2008 Google Inc.\n" +
|
|
|
|
"\n" +
|
|
|
|
"Licensed under the Apache License, Version 2.0 (the \"License\");\n" +
|
|
|
|
"you may not use this file except in compliance with the License.\n" +
|
|
|
|
"You may obtain a copy of the License at\n" +
|
|
|
|
"\n" +
|
|
|
|
" http://www.apache.org/licenses/LICENSE-2.0\n" +
|
|
|
|
"\n" +
|
|
|
|
"Unless required by applicable law or agreed to in writing, software\n" +
|
|
|
|
"distributed under the License is distributed on an \"AS IS\" BASIS,\n" +
|
|
|
|
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
|
|
|
|
"See the License for the specific language governing permissions and\n" +
|
|
|
|
"limitations under the License.");
|
|
|
|
}
|
2018-05-02 05:21:44 +03:00
|
|
|
}
|