本文整理汇总了Java中javafx.scene.control.TabPane.TabClosingPolicy类的典型用法代码示例。如果您正苦于以下问题:Java TabClosingPolicy类的具体用法?Java TabClosingPolicy怎么用?Java TabClosingPolicy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TabClosingPolicy类属于javafx.scene.control.TabPane包,在下文中一共展示了TabClosingPolicy类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initComponents
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
private void initComponents() {
optionBox.setItems(model);
optionBox.getSelectionModel().selectedItemProperty().addListener((observableValue, oldValue, newValue) -> {
if (newValue != null) {
updateTabPane();
}
});
optionBox.setCellFactory(new Callback<ListView<PlugInModelInfo>, ListCell<PlugInModelInfo>>() {
@Override public ListCell<PlugInModelInfo> call(ListView<PlugInModelInfo> param) {
return new LauncherCell();
}
});
optionTabpane.setId("CompositeTabPane");
optionTabpane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
optionTabpane.getStyleClass().add(TabPane.STYLE_CLASS_FLOATING);
VBox.setVgrow(optionTabpane, Priority.ALWAYS);
}
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:18,代码来源:CompositeLayout.java
示例2: create_center
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
/** Erstellt ein Tabpane, das in drei Tabs ein leeres Test-, Code-, und Konsolenpane enthaelt
* Die Tabs koennen nicht geschlossen werden.
* @return gibt das ertellte Tabpane zurueck
*/
private TabPane create_center(){
TabPane menue = new TabPane();
menue.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
code_pane = new CodePane();
test_pane = new TestPane();
console_pane = new ConsolePane();
Tab code_tab = new Tab("Code");
Tab test_tab = new Tab("Tests");
Tab console_tab = new Tab("Konsole");
code_tab.setContent(code_pane);
test_tab.setContent(test_pane);
console_tab.setContent(console_pane);
code_tab.setContent(code_pane);
test_tab.setContent(test_pane);
console_tab.setContent(console_pane);
menue.getTabs().addAll(code_tab, test_tab, console_tab);
return menue;
}
开发者ID:ProPra16,项目名称:programmierpraktikum-abschlussprojekt-team-1,代码行数:23,代码来源:Gui.java
示例3: start
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public void start(final Stage primaryStage) throws Exception {
primaryStage.setMinHeight(400);
primaryStage.setMinWidth(600);
final BorderPane mainPane = new BorderPane();
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
controls = new GridPane();
mainPane.setLeft(controls);
mainPane.setCenter(tabPane);
initializeControls(primaryStage);
final Scene scene = new Scene(mainPane);
primaryStage.setTitle(getTitle());
primaryStage.setScene(scene);
primaryStage.show();
}
开发者ID:FTSRG,项目名称:theta,代码行数:22,代码来源:BaseGui.java
示例4: setupTabPane
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
private void setupTabPane() {
this.browserRootBorderPane.setCenter(this.browserTabPane);
this.browserTabPane.setTabClosingPolicy(TabClosingPolicy.ALL_TABS);
this.browserTabPane.getTabs().addListener((ListChangeListener<Tab>) change -> {
if (change.next() && change.wasAdded()) {
LOGGER.debug("Tab was added");
this.browserTabPane.getSelectionModel().select(change.getAddedSubList().get(0));
}
});
this.browserTabPane.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {
final BrowserTab oldTab = (BrowserTab) oldValue;
if (oldTab != null) {
this.searchTextField.setText("");
oldTab.resetActiveItems();
}
});
}
开发者ID:westerwave,项目名称:livestreamer_twitch_gui,代码行数:18,代码来源:BrowserController.java
示例5: createTabPane
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
private TabPane createTabPane() {
tabPane = new TabPane();
tabPane.setId("ConfigurationTabPane");
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
layouts = mpfConfigurationInfo.getProperties(this);
for (IPropertiesLayout layout : layouts) {
String name = layout.getName();
Tab tab = new Tab(name, layout.getContent());
tab.setId(name);
tab.setGraphic(layout.getIcon());
tabPane.getTabs().add(tab);
}
VBox.setVgrow(tabPane, Priority.ALWAYS);
return tabPane;
}
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:16,代码来源:MPFConfigurationStage.java
示例6: setupMain
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
/**
*
*/
private void setupMain()
{
tabs = new TabPane();
root.setCenter(tabs);
tabs.setTabClosingPolicy(TabClosingPolicy.ALL_TABS);
setupProjectsOverview();
}
开发者ID:Pingger,项目名称:Pinggers-GIT-SVN-Client,代码行数:11,代码来源:Overview.java
示例7: FilesView
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
/**
* Initializes the whole view.
*/
public FilesView() {
chatLogTextArea = new TextArea();
chatLogTextArea.setEditable(false);
clearLogsButton = new Button(Client.lang.getString("clear"));
loadLogsButton = new Button(Client.lang.getString("reload"));
final ButtonBar buttonBar = new ButtonBar();
buttonBar.getButtons().addAll(loadLogsButton, clearLogsButton);
final VBox chatLogsTabContent = new VBox(5.0, chatLogTextArea, buttonBar);
VBox.setVgrow(chatLogTextArea, Priority.ALWAYS);
chatLogsTab = new Tab(Client.lang.getString("chatlogs"), chatLogsTabContent);
rootPane = new TabPane(chatLogsTab);
rootPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
}
开发者ID:Bios-Marcel,项目名称:ServerBrowser,代码行数:23,代码来源:FilesView.java
示例8: initialize
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public void initialize(URL url, ResourceBundle rb) {
super.initialize(url, rb);
tabCount = 1;
imageTabPane.setTabClosingPolicy(TabClosingPolicy.SELECTED_TAB);
ChangeListener<Number> originalImageSizeChangeListener = new ChangeListener<Number>() {
@Override
public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
updateOriginalCanvas();
if (originalImageCropRectangle != null) {
canvasCropOriginX = originalImageCropRectangle.getMinX() * scaleFactor;
canvasCropOriginY = originalImageCropRectangle.getMinY() * scaleFactor;
canvasCropToX = canvasCropOriginX + originalImageCropRectangle.getWidth() * scaleFactor;
canvasCropToY = canvasCropOriginY + originalImageCropRectangle.getHeight() * scaleFactor;
Rectangle2D canvasCropRectangle = new Rectangle2D(
Math.floor(canvasCropOriginX + 0.5),
Math.floor(canvasCropOriginY + 0.5),
Math.floor(canvasCropToX - canvasCropOriginX + 0.5),
Math.floor(canvasCropToY - canvasCropOriginY + 0.5)
);
drawCropRectangle(canvasCropRectangle);
}
}
};
originalImagePane.heightProperty().addListener(originalImageSizeChangeListener);
originalImagePane.widthProperty().addListener(originalImageSizeChangeListener);
}
开发者ID:mrpolyonymous,项目名称:BrickifyFX,代码行数:30,代码来源:ImageCanvasController.java
示例9: createAnalysisPanel
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
private Control createAnalysisPanel() {
TabPane tabbedPanel = new TabPane();
tabbedPanel.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
projectBrowser = new ProjectBrowser(this);
tabbedPanel.getTabs().add(new Tab("Project", projectBrowser.getPane()));
PathImageDetailsPanel pathImageDetailsPanel = new PathImageDetailsPanel(this);
tabbedPanel.getTabs().add(new Tab("Image", pathImageDetailsPanel.getContainer()));
final PathAnnotationPanel panelAnnotations = new PathAnnotationPanel(this);
SplitPane splitAnnotations = new SplitPane();
splitAnnotations.setOrientation(Orientation.VERTICAL);
splitAnnotations.getItems().addAll(
panelAnnotations.getPane(),
new SelectedMeasurementTableView(this).getTable());
tabbedPanel.getTabs().add(new Tab("Annotations", splitAnnotations));
final PathObjectHierarchyView paneHierarchy = new PathObjectHierarchyView(this);
SplitPane splitHierarchy = new SplitPane();
splitHierarchy.setOrientation(Orientation.VERTICAL);
splitHierarchy.getItems().addAll(
paneHierarchy.getPane(),
new SelectedMeasurementTableView(this).getTable());
tabbedPanel.getTabs().add(new Tab("Hierarchy", splitHierarchy));
// Bind the split pane dividers to create a more consistent appearance
splitAnnotations.getDividers().get(0).positionProperty().bindBidirectional(
splitHierarchy.getDividers().get(0).positionProperty()
);
WorkflowPanel workflowPanel = new WorkflowPanel(this);
tabbedPanel.getTabs().add(new Tab("Workflow", workflowPanel.getPane()));
// PathObjectHierarchyPanel pathObjectHierarchyPanel = new PathObjectHierarchyPanel(this);
// tabbedPanel.getTabs().add(new Tab("Hierarchy", pathObjectHierarchyPanel.getPane()));
return tabbedPanel;
}
开发者ID:qupath,项目名称:qupath,代码行数:39,代码来源:QuPathGUI.java
示例10: JavaFXTabsetPanel
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
/**
* Creates a new instance of {@link JavaFXTabsetPanel} with a pre-defined
* {@link TabPane}.
*
* @param pTabPane the {@link TabPane}
*/
protected JavaFXTabsetPanel(TabPane pTabPane)
{
// The DndTabPane requires that it is wrapped in a Pane,
// that is needed for the animation/drag-marker to work.
// Wrapping a "normal" TabPane in a StackPane does nothing, neither
// good nor bad, so we simply wrap all out of simplicity reasons.
super(new StackPane());
tabPane = pTabPane;
if (tabPane instanceof DndTabPane)
{
((DndTabPane)tabPane).setOnTabDragged(this::onTabDragged);
FXTabPaneSkinRT40150 skin = new FXTabPaneSkinRT40150(tabPane);
DndTabPaneFactory.setup(FeedbackType.MARKER, resource, skin);
tabPane.setSkin(skin);
}
resource.getChildren().add(tabPane);
tabPlacement = PLACEMENT_TOP;
tabPane.getSelectionModel().selectedIndexProperty().addListener(this::onSelectionChanged);
tabPane.setTabClosingPolicy(TabClosingPolicy.ALL_TABS);
}
开发者ID:ivartanian,项目名称:JVx.javafx,代码行数:34,代码来源:JavaFXTabsetPanel.java
示例11: FXTabWindowManager
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
/**
* Creates a new instance of {@link FXTabWindowManager}.
*/
public FXTabWindowManager()
{
windowModalChangedHandler = this::onWindowModalChanged;
tabPane = new DndTabPane();
containerPane = new StackPane(tabPane);
FXTabPaneSkinRT40150 skin = new FXTabPaneSkinRT40150(tabPane);
DndTabPaneFactory.setup(FeedbackType.MARKER, containerPane, skin);
tabPane.setSkin(skin);
tabPane.setTabClosingPolicy(TabClosingPolicy.ALL_TABS);
windowsToTabs = new HashMap<>();
}
开发者ID:ivartanian,项目名称:JVx.javafx,代码行数:18,代码来源:FXTabWindowManager.java
示例12: BaseSettingsStage
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
/**
* Creates a new base settings stage.
* @param stage the owner
*/
public BaseSettingsStage(Stage stage)
{
//setup stage
this.initOwner(stage);
this.initModality(Modality.APPLICATION_MODAL);
this.setTitle("Settings");
this.setResizable(false);
this.setMinWidth(350);
this.getIcons().add(new Image("/images/icons/console.png"));
//root pane
BorderPane borderPane = new BorderPane();
//header box
HeaderBox headerBox = new HeaderBox("Settings", "Configure application-specific settings.");
borderPane.setTop(headerBox);
//tab pane
this.tabPane = new TabPane();
this.tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
borderPane.setCenter(this.tabPane);
//buttons box
ButtonsBox buttonsBox = new ButtonsBox(true, true);
buttonsBox.setOnOk(event -> this.confirm(true));
buttonsBox.setOnCancel(event -> this.confirm(false));
borderPane.setBottom(buttonsBox);
//show
this.setScene(new Scene(borderPane));
this.sizeToScene();
}
开发者ID:Contron,项目名称:Jootil,代码行数:37,代码来源:BaseSettingsStage.java
示例13: AquaTabPaneSkin
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
public AquaTabPaneSkin(TabPane tabPane) {
super(tabPane);
definePillPosition();
adjustBorders();
/**
* Tabs are not closeable in Aqua
*/
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
addInactiveState();
}
开发者ID:cis422s14team5,项目名称:WatchlistPro,代码行数:14,代码来源:AquaTabPaneSkin.java
示例14: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp.setId("loginviewbg");
list = new ListView<String>();
items = FXCollections.observableArrayList("Philippe Kr�ttli","Irina Deck","Javier Martinez Alvarez","Frithjof Hoppe");
list.setItems(items);
AllFields = new VBox(50);
AllFields.setAlignment(Pos.CENTER);
AllFields.setMaxWidth(300);
AllFields.setPadding(new Insets(20));
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
Tab tabDerive = new Tab();
tabDerive.setText("Derive");
HBox hbox = new HBox();
hbox.setPadding(new Insets(20, 0, 0, 0));
hbox.setStyle("-fx-font: 24 'System Regular'");
hbox.getChildren().add(new Label(tabDerive.getText()));
hbox.setAlignment(Pos.CENTER);
tabDerive.setContent(hbox);
Tab tabTeamwork = new Tab();
tabTeamwork.setText("Teamwork");
HBox hbox2 = new HBox();
hbox2.setPadding(new Insets(20, 0, 0, 0));
hbox2.setStyle("-fx-font: 24 'System Regular'");
hbox2.getChildren().add(new Label(tabTeamwork.getText()));
hbox2.setAlignment(Pos.CENTER);
tabTeamwork.setContent(hbox2);
tabPane.getTabs().addAll(tabDerive, tabTeamwork);
tabPane.getSelectionModel().getSelectedItem().setStyle("-fx-background-color:#a3a4a8");
tabPane.setOnMouseClicked(e -> {
for(Tab actTab:tabPane.getTabs())
{
actTab.setStyle("-fx-background-color:#f0f0f0");
}
tabPane.getSelectionModel().getSelectedItem().setStyle("-fx-background-color:#a3a4a8");
if(tabPane.getSelectionModel().getSelectedIndex()== 0)
{
btnContinue.setOnAction(ev -> getFXController().showView("deriveserverdoorview"));
} else
{
btnContinue.setOnAction(ev -> getFXController().showView("teamworkserverdoorview"));
}
});
SearchDMO = new HBox();
Bottom = new HBox();
txtDMO = new TextField();
txtDMO.setMinHeight(50);
txtDMO.setMinWidth(700);
txtDMO.setPromptText("Email-Adresse des Benutzers");
btnSearch = new AppButton("Suchen");
btnContinue = new AppButton("Weiter zum DMO");
back = new BackButton(getFXController(),"Zur�ck");
SearchDMO.getChildren().addAll(txtDMO,btnSearch);
Bottom.getChildren().addAll(back, btnContinue);
AllFields.getChildren().addAll(SearchDMO,list,Bottom);
bp.setTop(tabPane);
bp.setCenter(AllFields);
bp.setBottom(Bottom);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:79,代码来源:SaveDownloadstackForeignDMOView.java
示例15: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(740);
btnCreate.setMinWidth(740);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("dmodoorview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:61,代码来源:DMOStackView.java
示例16: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("saveuploadstackonserverdialogview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:SaveDownloadstackOwnDMODoorSelectionView.java
示例17: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("savedownloaddooronserverdialogview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:SaveDownloaddoorOwnDMOView.java
示例18: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(740);
btnCreate.setMinWidth(740);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("lernenselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:61,代码来源:DMODoorView.java
示例19: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("doorsavepathselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:SaveDownloadstackLocalView.java
示例20: constructContainer
import javafx.scene.control.TabPane.TabClosingPolicy; //导入依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("lernenselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:TeamworkServerDoorView.java
注:本文中的javafx.scene.control.TabPane.TabClosingPolicy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论