本文整理匯總了Java中insidefx.undecorator.UndecoratorScene.setClassicDecoration方法的典型用法代碼示例。如果您正苦於以下問題:Java UndecoratorScene.setClassicDecoration方法的具體用法?Java UndecoratorScene.setClassicDecoration怎麽用?Java UndecoratorScene.setClassicDecoration使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類insidefx.undecorator.UndecoratorScene
的用法示例。
在下文中一共展示了UndecoratorScene.setClassicDecoration方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: quickEntry
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
@FXML
public void quickEntry(ActionEvent e) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/retrospector/fxml/quickentry/QuickEntry.fxml"));
Parent root = (Parent) fxmlLoader.load();
Stage stage = new Stage();
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(stage, (Region) root);
stage.setScene(undecoratorScene);
QuickEntryController qec = fxmlLoader.getController();
qec.setup(currentTab);
stage.setTitle("Quick Entry");
stage.show();
} catch (Exception ex) {
System.out.println("Quick Entry Failed: "+ex.getMessage());
}
}
示例2: preferences
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
@FXML
public void preferences(ActionEvent e) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/retrospector/fxml/preferences/Preferences.fxml"));
Parent root = (Parent) fxmlLoader.load();
Stage stage = new Stage();
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(stage, (Region) root);
stage.setScene(undecoratorScene);
PreferencesController qec = fxmlLoader.getController();
stage.setTitle("Preferences");
stage.show();
} catch (Exception ex) {
System.out.println("Preferences Failed: "+ex.getMessage());
}
}
示例3: showMainStage
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
private void showMainStage(Parent root) {
mainStage = new Stage();
// mainStage = new Stage(StageStyle.UNDECORATED);
// Scene scene = new Scene(root, 1300, 800);
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(mainStage, (Region) root);
mainStage.setScene(undecoratorScene);
mainStage.setTitle("Retrospector");
mainStage.getIcons().add(new Image(Retrospector.class.getResourceAsStream( LOGO_IMAGE )));
mainStage.show();
}
示例4: start
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
@Override
public void start(Stage primaryStage) {
WebView web = new WebView();
// web.getEngine().load(getClass().getResource("web/materialtable.css").toExternalForm());
String webContent = new PumpkinEater(
"Search Cheatsheet",
new String[]{
"Symbol",
"Name",
"Example",
"Explanation"
},
new String[]{":","and","lord:rings","contains 'lord' and 'rings'"},
new String[]{"|","or","Marvel|DC","contains 'marvel' or 'dc'"},
new String[]{"!","not","!rebecca black","contains no 'rebecca black'"},
new String[]{"`","cmd","[See Below]","[See Below]"},
new String[]{"`T","title","`T~civil war","title contains 'civil war'"},
new String[]{"`C","creator","`C=BBC","creator equals 'bbc'"},
new String[]{"`S","season","`S=1","season equals '1'"},
new String[]{"`E","episode","`E~13","episode contains '13'"},
new String[]{"`A","category","`A~Book","category contains 'book'"},
new String[]{"`U","user","`U~Adam","reviewed by a user 'Adam'"},
new String[]{"`D","date","`D>10-21-2017","reviewed after 21 Oct 2017"},
new String[]{"`#","rating","`#>7","rated high than a 7"},
new String[]{"Example","-->","batman|superman:`A=Movie:!vs","contains 'batman' or 'superman',<br>category equals 'movie' and<br>contains no 'vs'"},
new String[]{"Example","-->","sherlock:doyle:baskervilles","contains 'sherlock',<br>contains 'doyle' and<br>contains 'baskervilles'"}
).getHtml();
web.getEngine().loadContent(webContent);
StackPane root = new StackPane(web);
root.setPrefHeight(500);
root.setPrefWidth(800);
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(primaryStage, (Region) root);
primaryStage.setScene(undecoratorScene);
primaryStage.setTitle("Search Cheatsheet");
primaryStage.show();
}
示例5: server
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
@FXML
public void server(ActionEvent e) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/retrospector/fxml/server/ServerTab.fxml"));
Parent root = (Parent) fxmlLoader.load();
Stage stage = new Stage();
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(stage, (Region) root);
stage.setScene(undecoratorScene);
stage.setTitle("Server");
stage.show();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
示例6: performanceTest
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
@FXML
private void performanceTest(ActionEvent event) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/retrospector/fxml/dumpster/PerformanceTester.fxml"));
Parent root = (Parent) fxmlLoader.load();
Stage stage = new Stage();
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(stage, (Region) root);
stage.setScene(undecoratorScene);
stage.setTitle("Performance Test");
stage.show();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
示例7: about
import insidefx.undecorator.UndecoratorScene; //導入方法依賴的package包/類
@FXML
public void about(ActionEvent e) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/retrospector/fxml/about/About.fxml"));
Parent root = (Parent) fxmlLoader.load();
Stage stage = new Stage();
UndecoratorScene.setClassicDecoration();
UndecoratorScene undecoratorScene = new UndecoratorScene(stage, (Region) root);
stage.setScene(undecoratorScene);
stage.setTitle("About");
stage.show();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}