当前位置: 首页>>代码示例>>Java>>正文


Java VBox.setId方法代码示例

本文整理汇总了Java中javafx.scene.layout.VBox.setId方法的典型用法代码示例。如果您正苦于以下问题:Java VBox.setId方法的具体用法?Java VBox.setId怎么用?Java VBox.setId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.layout.VBox的用法示例。


在下文中一共展示了VBox.setId方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MainMenu

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
public MainMenu(Stage primaryStage, UsersModel usersModel){	
	this.primaryStage = primaryStage;
	this.usersModel = usersModel;
	BorderPane root = new BorderPane();
	VBox buttons = new VBox();
	buttons.setId("vbox");
	buttons.setAlignment(Pos.CENTER);
	buttons.getChildren().addAll(
			backgroundImage(),
			playGame, 
			authorGame, 
			socialCenter);

	playGame.setId("main-button");
	authorGame.setId("main-button");
	socialCenter.setId("main-button");
	root.setCenter(buttons);		

	initHandlers();
	scene = new Scene(root, App.WIDTH, App.HEIGHT);
	scene.getStylesheets().setAll(CSS_LOCATION);
	primaryStage.setScene(scene);
}
 
开发者ID:LtubSalad,项目名称:voogasalad-ltub,代码行数:24,代码来源:MainMenu.java

示例2: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox root = new VBox();
    root.setStyle("-fx-background-color:black");
    root.getStyleClass().add("about-stage");
    root.setId("aboutStage");
    root.getChildren().addAll(FXUIUtils.getImage("marathon-splash"), infoBox, buttonBar);
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:9,代码来源:AboutStage.java

示例3: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox root = new VBox();
    root.setId("MarathonInputStage");
    root.getStyleClass().add("marathon-input");

    VBox container = new VBox();
    FormPane inputFieldform = new FormPane("marathon-input-form", 2);
    inputFieldform.addFormField(getInputFiledLabelText(), inputField);
    container.getChildren().addAll(inputFieldform, errorMsgLabel);
    root.getChildren().addAll(container, buttonBar);
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:13,代码来源:MarathonInputStage.java

示例4: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox root = new VBox();
    root.getStyleClass().add("fixture-selection");
    root.setId("fixtureSelection");
    root.getChildren().addAll(fixtureList, buttonBar);
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:8,代码来源:FixtureSelection.java

示例5: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox content = new VBox();
    content.getStyleClass().add("credits-stage");
    content.setId("creditsStage");
    content.getChildren().addAll(webView, buttonBar);
    return content;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:8,代码来源:CreditsStage.java

示例6: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox content = new VBox();
    content.setId("FixtureStage");
    content.getStyleClass().add("fixture");
    FormPane form = new FormPane("fixture-form", 2);
    //@formatter:off
    form.addFormField("Name: ", nameField)
        .addFormField("Description: ", descriptionArea)
        .addFormField("Resuse Fixture: ", reuseField);
    //@formatter:on
    content.getChildren().addAll(form, applicationLayout.getContent(), buttonBar);
    fixtureStageInfo.setProperties();
    return content;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:15,代码来源:FixtureStage.java

示例7: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox root = new VBox();
    root.setId("FileSelectionStage");
    root.getStyleClass().add("file-selection");
    root.getChildren().addAll(createBrowserField(), createButtonBar());
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:8,代码来源:FileSelectionStage.java

示例8: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox content = new VBox();
    content.setId("ProjectSelectionParent");
    content.getStyleClass().add("project-selection");
    content.getChildren().addAll(projectInfotable, buttonBar);
    return content;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:8,代码来源:ProjectSelection.java

示例9: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox root = new VBox();
    root.setId("MPFConfigurationParent");
    root.getStyleClass().add("mpf-configuration");
    root.getChildren().addAll(createTabPane(), createButtonBar());
    setProperties(mpfConfigurationInfo.getUserProperties());
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:9,代码来源:MPFConfigurationStage.java

示例10: getContent

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override public Node getContent() {
    VBox content = new VBox();
    content.setId("CompositeLayout");
    content.getStyleClass().add("composite-layout");

    FormPane form = new FormPane("composite-layout-form", 2);
    form.addFormField(getOptionFieldName(), optionBox);

    content.getChildren().addAll(form, optionTabpane);
    return content;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:12,代码来源:CompositeLayout.java

示例11: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox content = new VBox();
    content.getStyleClass().add("blurb-stage");
    content.setId("blurbStage");
    content.getChildren().addAll(webView, buttonBar);
    return content;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:8,代码来源:Blurb.java

示例12: getContentPane

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox root = new VBox();
    root.setStyle("-fx-background-color:black");
    root.setId("marathonITESplashScreen");
    root.getStyleClass().add("marathonite-splash-screen");
    root.getChildren().addAll(FXUIUtils.getImage("marathon-splash"), createInfo());
    Timeline timeline = new Timeline(new KeyFrame(SPLASH_DISPLAY_TIME, (e) -> {
        dispose();
    }));
    timeline.play();
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:13,代码来源:MarathonSplashScreen.java

示例13: createGamePoster

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
public Node createGamePoster (IGame game) {
    VBox vBox = new VBox();
    vBox.setId(myBundle.getString("poster"));
    vBox.getChildren()
            .add(createImage(game));
    vBox.getChildren().add(createLabel(game.getGameInformation().getNameProperty().get()));
    vBox.getChildren().add(createLabel(game.getGameInformation().getAuthorProperty().get()));
    return vBox;
}
 
开发者ID:tomrom95,项目名称:GameAuthoringEnvironment,代码行数:10,代码来源:GamePosterFactory.java

示例14: createVerticalButtonBar

import javafx.scene.layout.VBox; //导入方法依赖的package包/类
private VBox createVerticalButtonBar() {
    VBox vBox = new VBox();
    vBox.setId("VerticalButtonBar");
    if (isTraversalNeeded()) {
        upButton = FXUIUtils.createButton("up", "Move selection up", true, "Up");
        setButtonState(upButton, false);
        upButton.setOnAction(new UpDownHandler(classPathListView, true));
        upButton.setMaxWidth(Double.MAX_VALUE);
        downButton = FXUIUtils.createButton("down", "Move selection down", true, "Down");
        setButtonState(downButton, false);
        downButton.setOnAction(new UpDownHandler(classPathListView, false));
        downButton.setMaxWidth(Double.MAX_VALUE);
        vBox.getChildren().addAll(upButton, downButton);
    }

    if (isAddArchivesNeeded()) {
        addJarsButton = FXUIUtils.createButton("addjar", "Add JAR/ZIP files to class path", true, "Add Archives...");
        addJarsButton.setOnAction(new BrowseActionHandler(
                new FileSelectionInfo("Select Zip/Jar files", "Java Archives", new String[] { "*.jar", "*.zip" },
                        "Add Zip/Jar files to the application classpath", FXUIUtils.getIcon("addjar"))));
        vBox.getChildren().add(addJarsButton);
    }

    if (isAddFoldersNeeded()) {
        addFoldersButton = FXUIUtils.createButton("addfolder", "Add folders to class path", true, "Add Folders...");
        addFoldersButton.setOnAction(new BrowseActionHandler(new FileSelectionInfo("Select Folders", null, null,
                "Add class files from folders to classpath", FXUIUtils.getIcon("addfolder"))));
        addFoldersButton.setMaxWidth(Double.MAX_VALUE);
        vBox.getChildren().add(addFoldersButton);
    }

    deleteButton = FXUIUtils.createButton("remove", "Delete selection", true, "Remove");
    setButtonState(deleteButton, false);
    deleteButton.setOnAction((e) -> {
        ObservableList<ClassPathElement> selectedItems = classPathListView.getSelectionModel().getSelectedItems();
        if (selectedItems != null) {
            classPathListItems.removeAll(selectedItems);
            boolean enable = classPathListItems.size() != 0;
            setButtonState(deleteButton, enable);
            setButtonState(upButton, enable);
            setButtonState(downButton, enable);
            classPathListView.getSelectionModel().select(-1);
        }
    });
    deleteButton.setMaxWidth(Double.MAX_VALUE);
    vBox.getChildren().addAll(deleteButton);
    return vBox;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:49,代码来源:ListLayout.java


注:本文中的javafx.scene.layout.VBox.setId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。