protected Node getContentNode() { Node taskView = getTaskView(); if (SettingsUtil.loadSettings().isShowStatistics()) { LOGGER.debug("Statistics enabled in settings"); statisticsView = new VBox(20); // wrap statistics in scrollpane ScrollPane scrollPane = new ScrollPane(statisticsView); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); scrollPane.setFitToWidth(true); scrollPane.setPadding(new Insets(7)); // both statistics and task view present // show both in a split pane SplitPane splitPane = new SplitPane(); splitPane.setOrientation(Orientation.HORIZONTAL); splitPane.setDividerPosition(0, 0.8); splitPane.getItems().addAll(taskView, scrollPane); return splitPane; } else { LOGGER.debug("Statistics disabled in settings"); return taskView; } }
@Override public void start(Stage stage) throws Exception { stage.setTitle("Script Creator"); // Center events = new VBox(); eventsScrollPane = new ScrollPane(); eventsScrollPane.setVbarPolicy(ScrollBarPolicy.ALWAYS); eventsScrollPane.setContent(events); // Left VBox left = new VBox(); Button record = new Button("Record"), add = new Button("Add"); CheckBox recordWheel = new CheckBox("Wheel"), recordMouseMovements = new CheckBox("Movement"), recordTime = new CheckBox("Time"); add.setOnAction(e -> events.getChildren().add(new EditableLabel())); left.getChildren().addAll(add, record, recordWheel, recordTime, recordMouseMovements); // Bottom // Container BorderPane mainLayout = new BorderPane(); mainLayout.setCenter(eventsScrollPane); mainLayout.setLeft(left); main = new Scene(mainLayout, 300, 250); stage.setScene(main); stage.show(); }
private ScrollPane createMatchingUsersPane() { ScrollPane matchingUsersPane = new ScrollPane(); matchingUsersPane.setMaxHeight(200); matchingUsersPane.setMinHeight(200); matchingUsersPane.setContent(matchingUsersBox); return matchingUsersPane; }
// https://docs.oracle.com/javafx/2/ui_controls/table-view.htm @SuppressWarnings("unchecked") public DataPanel(final String string) { super(string); tableView = new ScrollPane(); tableView.setPrefSize(Region.USE_COMPUTED_SIZE, Region.USE_COMPUTED_SIZE); tableView.setMaxSize(Region.USE_COMPUTED_SIZE, Region.USE_COMPUTED_SIZE); // set(MsstGuiPckg.getInstance().getGuiPreferredSize().propertyDataPanelWithHeight(), // MsstGuiPckg.getInstance().getGuiPreferredSize().propertyDataPanelWithWidth()); elementName = new TableColumn<>("element-name"); elementValue = new TableColumn<>("element-value"); elementName.setCellValueFactory(new PropertyValueFactory<TableEntry, String>("elementName")); elementValue.setCellValueFactory(new PropertyValueFactory<TableEntry, String>("elementValue")); dataTable = new TableView<TableEntry>(); dataTable.getColumns().addAll(elementName, elementValue); dataTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY); dataTable.setPrefHeight( MsstGuiPckg.getInstance().getGuiPreferredSize().propertyDataPanelWithHeight()); dataTable.setPrefWidth( MsstGuiPckg.getInstance().getGuiPreferredSize().propertyDataPanelWithWidth()); dataTable.setEditable(true); tableView.setContent(dataTable); ; tableView.setFitToHeight(true); tableView.setFitToWidth(true); setContent(tableView); }
public CFBamJavaFXUInt32TypeAddPane( ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamUInt32TypeObj argFocus) { super(); final String S_ProcName = "construct-schema-focus"; if (formManager == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 1, "formManager"); } cfFormManager = formManager; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 2, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. javafxSchema = argSchema; setJavaFXFocus(argFocus); attrPane = argSchema.getUInt32TypeFactory().newAttrPane(cfFormManager, argFocus); attrScrollPane = new ScrollPane(attrPane); attrScrollPane.setFitToWidth(true); attrScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER); attrScrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED); attrScrollPane.setContent(attrPane); setOrientation(Orientation.VERTICAL); getItems().add(attrScrollPane); }
@Override protected void layoutChildren() { final Insets insets = getInsets(); scrollPane.relocate(insets.getLeft(), insets.getTop()); scrollPane.resize( getWidth() - insets.getLeft() - insets.getRight(), getHeight() - insets.getTop() - insets.getBottom()); }
@Test public void launchApplication() throws Exception { WaitForAsyncUtils.waitForFxEvents(); ScrollPane scrollPane = (ScrollPane) scene.lookup("#historyScrollPane"); Parent container = scrollPane.getParent(); // ScrollPane below a VBox causes the accordion not to scroll correctly Assert.assertFalse("ScrollPane inside VBox", (container instanceof VBox) ? true : false); }
public void displayPane() throws IOException { addStationsToCB(); paneTop.getColumnConstraints().add(new ColumnConstraints(60)); paneTop.getColumnConstraints().add(new ColumnConstraints(200)); paneTop.getColumnConstraints().add(new ColumnConstraints(100)); paneBot.getColumnConstraints().add(new ColumnConstraints(60)); paneBot.getColumnConstraints().add(new ColumnConstraints(200)); paneBot.getColumnConstraints().add(new ColumnConstraints(100)); paneCenter.getColumnConstraints().add(new ColumnConstraints(300)); paneTop.setPadding(new Insets(10, 10, 10, 10)); paneTop.setAlignment(Pos.CENTER); paneTop.setHgap(5); paneTop.setVgap(5); paneBot.setPadding(new Insets(10, 10, 10, 10)); paneBot.setAlignment(Pos.CENTER); paneBot.setHgap(5); paneBot.setVgap(5); paneTop.add(new Label("Station :"), 0, 0); paneTop.add(cbStations, 1, 0); paneTop.add(btOpen, 2, 0); paneBot.add(new Label("Quantity :"), 0, 0); paneBot.add(cbQuantity, 1, 0); paneBot.add(btShow, 2, 0); paneTop.setHalignment(btOpen, HPos.RIGHT); paneBot.setHalignment(btShow, HPos.RIGHT); paneCenter.setHgap(5); paneCenter.setVgap(5); paneCenter.setAlignment(Pos.CENTER); sp.setContent(paneCenter); sp.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS); bp.setMargin(sp, new Insets(20, 50, 40, 50)); bp.setTop(paneTop); bp.setCenter(sp); bp.setBottom(paneBot); btOpen.setOnAction( e -> { try { open(); } catch (IOException er) { er.printStackTrace(); } }); btShow.setOnAction(e -> showGraph()); }
public ChartsResultsBroker(Tab tabChartsBrokerResults) { this.tabChartsBrokerResults = tabChartsBrokerResults; scpAllPage = new ScrollPane(); scpAllPage.getStyleClass().add("bg-general-container"); vbxAllPage = new VBox(); vbxAllPage.setPadding(new Insets(10, 10, 10, 10)); vbxAllPage.setSpacing(10); scpAllPage.setContent(vbxAllPage); tabChartsBrokerResults.setContent(scpAllPage); }
@Override public VetoableObjectSelectionView<HeroTemplate> addObjectSelectionList() { ListSelectionView<HeroTemplate> view = new ListSelectionView<>(); ScrollPane scrollPane = new ScrollPane(); scrollPane.setHbarPolicy(NEVER); scrollPane.setVbarPolicy(AS_NEEDED); scrollPane.setContent(view.getNode()); component.add(scrollPane, new CC().grow().push()); return view; }
/* Place relevant data findings to screen */ private static void addScrollData() { scrollSocial.setMaxSize(370, 100); scrollMedical.setMaxSize(370, 100); scrollHistory.setMaxSize(370, 100); Label mh = new Label("MEDICAL HISTORY BY RECENT: "); mh.setStyle("-fx-font: 15px Futura;" + "-fx-text-fill: #ff0080;" + "-fx-font-weight: bold;"); // Social histories input Text medText = new Text(); medText.setStyle("-fx-font: 12px Futura;" + "-fx-text-fill: #ff0080;"); medText.setText( "\t- " + "9/17/2015 | Emergency | Northern Hospital | Peterson MD, Marc\n" + "\t- " + "5/21/2015 | Emergency | Western Hospital | Bermann MD, Jason\n" + "\t- " + "11/4/2014 | Emergency | Northern Hospital | Middleton MD, Lisa\n" + "\t- " + "7/19/2014 | Emergency | Southern Hospital | Johnson MD, Alex\n" + "\t- " + "3/9/2014 | Emergency | Western Hospital | Walton MD, Jonathan\n" + "\t- " + "10/18/2013 | Emergency | Eastern Hospital | Campbell MD, Ivan\n" + "\t- " + "4/5/2013 | Emergency | Southern Hospital | Thomas MD, Judy \n" + "\t- " + "12/23/2012 | Emergency | Western Hospital | Johnson MD, Alex\n"); medScroll.getChildren().addAll(medText); Label sh = new Label("SOCIAL HISTORY: "); sh.setStyle("-fx-font: 15px Futura;" + "-fx-text-fill: #ff0080;" + "-fx-font-weight: bold;"); // Social histories input Text socialText = new Text(); socialText.setStyle("-fx-font: 12px Futura;" + "-fx-text-fill: #ff0080;"); socialText.setText( "\t- " + "Eats in fast food outlets\n" + "\t- " + "Ex-smoker\n" + "\t- " + "Uninsured medical expenses\n" + "\t- " + "Independent housing, lives alone\n" + "\t- " + "Does not drive a car\n" + "\t- " + "Employed in paid casual work\n" + "\t- " + "Widower\n"); soScroll.getChildren().addAll(socialText); }
public ReceiptDisplay() { mScrollPane = new ScrollPane(); mScrollPane.setStyle( "-fx-border-color:gray;-fx-border-width:25;" + "-fx-background-color:gray;"); mScrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); mScrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); mImage = new Image("foggitops/resources/DefaultPic.jpg"); mImageView = new ImageView(); fitToScreen(); mScrollPane.setContent(mImageView); }
public void addImageTab(Path imagePath) { TabPane previewTabPane = controller.getPreviewTabPane(); ImageTab tab = new ImageTab(); tab.setPath(imagePath); tab.setText(imagePath.getFileName().toString()); if (previewTabPane.getTabs().contains(tab)) { previewTabPane.getSelectionModel().select(tab); return; } Image image = new Image(IOHelper.pathToUrl(imagePath)); ImageView imageView = new ImageView(image); imageView.setPreserveRatio(true); imageView.setFitWidth(previewTabPane.getWidth()); previewTabPane .widthProperty() .addListener( (observable, oldValue, newValue) -> { imageView.setFitWidth(previewTabPane.getWidth()); }); Tooltip tip = new Tooltip(imagePath.toString()); Tooltip.install(tab.getGraphic(), tip); ScrollPane scrollPane = new ScrollPane(); scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); scrollPane.setContent(imageView); scrollPane.addEventFilter( ScrollEvent.SCROLL, e -> { if (e.isControlDown() && e.getDeltaY() > 0) { // zoom in imageView.setFitWidth(imageView.getFitWidth() + 16.0); } else if (e.isControlDown() && e.getDeltaY() < 0) { // zoom out imageView.setFitWidth(imageView.getFitWidth() - 16.0); } }); tab.setContent(scrollPane); TabPane tabPane = previewTabPane; tabPane.getTabs().add(tab); tabPane.getSelectionModel().select(tab); }
protected PastCommandsAbstract( GUIManager guiManager, Scene scene, ResourceBundle resource, String label) { myScene = scene; myResource = resource; myGuiManager = guiManager; addLabel(label); myScroller.setPrefHeight(scene.getHeight() * 4 / 5); myScroller.setContent(myVbox); myScroller.setVbarPolicy(ScrollBarPolicy.ALWAYS); myScroller.setHbarPolicy(ScrollBarPolicy.ALWAYS); setPrefWidth(scene.getWidth() / 7); getChildren().add(myScroller); getChildren().add(myVbox); }
/** Creates the album playback view. */ private void display() { scrollPos = 0; songScroller = new ScrollPane(); songScroller.setMinWidth(PaneUtil.WIDTH - GoogleUINaviController.COVER_SIZE - 10); songScroller.setStyle("-fx-background-color:transparent;"); songScroller.setVbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); songBox = new VBox(6); songBox.setPadding(new Insets(3, 2, 2, 2)); int track = 1; for (Song song : album.getSongs()) { HBox trackBox = new HBox(); trackBox.setId(String.valueOf(song.getMID())); trackBox.setAlignment(Pos.BASELINE_LEFT); trackBox.setPadding(new Insets(2, 5, 2, 5)); if (track == 1) { trackBox.setStyle(STYLE_ACTIVE); lastSongSelection = trackBox; } else { trackBox.setStyle(STYLE_INACTIVE); } BorderPane innerTrackBox = new BorderPane(); HBox posBox = new HBox(5); posBox.setMinWidth(40); posBox.getChildren().add(createTrackText(track + ".")); innerTrackBox.setLeft(posBox); HBox nameBox = new HBox(5); nameBox.setMinWidth(385); String name = song.getName(); if (name.endsWith(".mp3")) { name = name.substring(0, name.length() - 4); } nameBox.getChildren().add(createTrackText(" " + name)); innerTrackBox.setCenter(nameBox); innerTrackBox.setRight(createTrackText(song.getDuration())); trackBox.getChildren().add(innerTrackBox); songBox.getChildren().add(trackBox); track++; } songScroller.setOpacity(0); songScroller.setContent(songBox); albumNode.getChildren().add(songScroller); }
/** DEFAULT. */ public CafePricingDialog() { this.priceMap = new HashMap<>(); this.primaryStage = new Stage(); this.root = new Group(); this.scrollPane = new ScrollPane(); this.scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); this.scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); this.scene = new Scene(scrollPane, 0x190, 0x1f4, Color.LIGHTGREY); makeDialog(fp); fp.setMinSize(380, 480); fp.setAlignment(Pos.TOP_CENTER); bp.setTop(logoChildBP); bp.setCenter(labelChildBP); bp.setBottom(fp); root.getChildren().add(bp); scrollPane.setContent(root); // -------------------------------------------- this.primaryStage.setTitle(TITLE); this.primaryStage.setScene(scene); this.primaryStage.setResizable(false); this.primaryStage.show(); }
/* Place relevant data findings to screen */ private static void initScrollData() { scrollSocial.setMaxSize(370, 100); scrollMedical.setMaxSize(370, 100); scrollHistory.setMaxSize(370, 100); Label mh = new Label("MEDICAL HISTORY BY RECENT: "); mh.setStyle("-fx-font: 15px Futura;" + "-fx-text-fill: #ff0080;" + "-fx-font-weight: bold;"); medScroll.getChildren().addAll(mh); Label sh = new Label("SOCIAL HISTORY: "); sh.setStyle("-fx-font: 15px Futura;" + "-fx-text-fill: #ff0080;" + "-fx-font-weight: bold;"); soScroll.getChildren().addAll(sh); }
private void sceneDidChange() { assert this.scrollPane != null; if (scrollPane.getScene() != null) { assert scalingGroup.isVisible() == false; // Here we'd like to layout the user scene graph immediately // i.e. invoke: // 1) layoutContent() // to relayout user scene graph // 2) adjustWorkspace() // to size the content workspace // // However invoking layoutContent() from here (scene change listener) // does not work very well (see RT-32326). // // So we do these two steps in runLater(). // Until they are done, scalingGroup is kept invisible to avoid // visual artifacts. After the two steps are done, we turn the // visible by calling revealScalingGroup(). Platform.runLater( () -> { layoutContent(true /* applyCSS */); adjustWorkspace(); revealScalingGroup(); }); } else { assert scalingGroup.isVisible(); scalingGroup.setVisible(false); } }
public void setAutoResize3DContent(boolean autoResize3DContent) { this.autoResize3DContent = autoResize3DContent; if ((scrollPane != null) && (scrollPane.getScene() != null)) { adjustWorkspace(); } }
@Override public void nativeMousePressed(NativeMouseEvent e) { Platform.runLater( () -> { events.getChildren().add(new EventLabel("Pressed: " + e.getButton())); eventsScrollPane.setVvalue(1.0); }); }
@Override public void nativeMouseWheelMoved(NativeMouseWheelEvent e) { // say("Scrolled: " + e.getWheelRotation()); Platform.runLater( () -> { events.getChildren().add(new EventLabel("Scrolled: " + e.getWheelRotation())); eventsScrollPane.setVvalue(1.0); }); }
@Override public void nativeMouseReleased(NativeMouseEvent e) { // say("released: " + e.getPoint()); Platform.runLater( () -> { events.getChildren().add(new EventLabel("Released: " + e.getButton())); eventsScrollPane.setVvalue(1.0); }); }
@Override protected ScrollPane createObjectsLayer() { objectsLayer = new ResourceGanttPlanObjectsLayer(controller); // Запихиваем слой объектов в скролл пэйн ScrollPane verticalScrollPane = new ScrollPane(objectsLayer); verticalScrollPane.setFitToWidth(true); verticalScrollPane .getStylesheets() .add( this.getClass() .getResource("/css/scrollpane.css") .toExternalForm()); // делаем вертикальный скроллпэйн прозрачным // Синхронизируем вертикальный скролл слоя объектов cо скроллом таблицы задач verticalScrollPane .vvalueProperty() .bindBidirectional(controller.resourceVerticalScrollValueProperty()); return verticalScrollPane; }
@FXML private void customersButtonClicked(ActionEvent event) { configureButtons(); customersButton.setGraphic(customersSelectedIMV); // Clear old content contentPane.getChildren().clear(); titleLabel.setText("Customer Information"); ScrollPane scrollPane = new ScrollPane(); contentPane.getChildren().add(scrollPane); VBox box = new VBox(); box.setSpacing(10); box.setAlignment(Pos.TOP_CENTER); box.setPrefWidth(900); // set up for ALL CUSTOMERS Text cHeader = new Text("All Customers"); cHeader.setFont(new Font("System", 24)); ObservableList<Customer> data = FXCollections.observableArrayList(operation.getAllCustomers()); TableView cTable = new TableView(); TableColumn cfnCol = new TableColumn("First Name"); cfnCol.setCellValueFactory(new PropertyValueFactory<>("firstName")); TableColumn clnCol = new TableColumn("Last Name"); clnCol.setCellValueFactory(new PropertyValueFactory<>("lastName")); TableColumn cEmailCol = new TableColumn("Email"); cEmailCol.setCellValueFactory(new PropertyValueFactory<>("email")); TableColumn cUpdatedAtCol = new TableColumn("Updated At"); cUpdatedAtCol.setCellValueFactory(new PropertyValueFactory<>("updatedAt")); TableColumn cDiscountCol = new TableColumn("Discount"); cDiscountCol.setCellValueFactory(new PropertyValueFactory<>("discount")); cTable.getColumns().addAll(cfnCol, clnCol, cEmailCol, cUpdatedAtCol, cDiscountCol); cTable.setItems(data); cTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY); box.getChildren().addAll(cHeader, cTable); scrollPane.setContent(box); }
public void initializeWebView(double width, double height) { WebView browser = new WebView(); String start = "file://"; String workingDir = start + System.getProperty("user.dir"); String url = workingDir + "/src/resources/commands.html"; browser.getEngine().load(url); browser.setPrefSize(width, height); myScrollPane.setContent(browser); myPane.getChildren().add(myScrollPane); }
private CharacterGridButton createGridButton( CharacterButtonDto dto, Selector<CharacterIdentifier> characterSelector) { CharacterGridButton characterGridButton = new CharacterGridButton(); characterGridButton.initContent(dto, characterSelector); characterGridButton.setToggleGroup(toggleGroup); buttonsByIdentifier.put(dto.identifier, characterGridButton); gridPane.getChildren().add(0, characterGridButton.getNode()); scrollPane.setVvalue(0); return characterGridButton; }
private void initBindings() { // zorgen dat de content van de scrollpane de juiste brete aanhoud quizPane.prefWidthProperty().bind(questionScroll.widthProperty().add(-5)); // wrappings zetten openQuestionText.wrappingWidthProperty().bind(openQuestionVbox.widthProperty().add(-20)); multipleChoiceText.wrappingWidthProperty().bind(multipleChoiseVbox.widthProperty().add(-20)); imageQuestionText.wrappingWidthProperty().bind(imageQuestionVbox.widthProperty().add(-20)); questionListener = new ListChangeListener<QuestionSubmit>() { @Override public void onChanged( javafx.collections.ListChangeListener.Change<? extends QuestionSubmit> c) { for (QuestionSubmit s : c.getList()) { if (!questionForPane.values().contains(s)) { TitledPane p = new TitledPane(s.getQuestion(), new AnchorPane()); questionAccordion.getPanes().add(p); questionForPane.put(p, s); } } } }; questionAccordion .expandedPaneProperty() .addListener( new ChangeListener<TitledPane>() { @Override public void changed( ObservableValue<? extends TitledPane> observable, TitledPane oldValue, TitledPane newValue) { if (oldValue != null) { ((AnchorPane) oldValue.getContent()).getChildren().clear(); } if (newValue != null) { createQuestionFor(newValue); } } }); currentPlayingRound.addListener( new ChangeListener<RoundSubmit>() { @Override public void changed( ObservableValue<? extends RoundSubmit> observable, RoundSubmit oldValue, RoundSubmit newValue) { removeRound(oldValue); setRound(newValue); } }); quizPane.visibleProperty().bind(currentPlayingRound.isNotNull()); }
/** * Create a scroll pane of one of the databases * * @param type A string of either SQLInterface.TABITEM or SQLInterface.TABPERSON used to determine * which database to print. * @return A scroll pane showing the database chosen in the parameter or the person database by * default. * @throws IOException */ public static ScrollPane printDatabase(String type) throws IOException { TextArea textArea; switch (type) { case (SQLInterface.TABITEM): textArea = new TextArea(itemDatabase.getDatabase().toString()); break; case (SQLInterface.TABPERSON): textArea = new TextArea(personDatabase.getDatabase().toString()); break; default: textArea = new TextArea(personDatabase.getDatabase().toString()); break; } textArea.setEditable(false); // stop the user being able to edit this and thinking it will save. ScrollPane scrollPane = new ScrollPane(textArea); textArea.setWrapText(true); scrollPane.setHvalue(600); scrollPane.setVvalue(800); return scrollPane; }
private static void showAdvancedSearch(Application app) { WorkbenchView view = new WorkbenchView(); FormLayout formLayout = new FormLayout(); formLayout.addHeader("Advanced Search"); formLayout.addField("Name"); formLayout.addActions(new Action("Save"), new Action("Cancel")); ScrollPane scrollPane = new ScrollPane(); scrollPane.setContent(formLayout); scrollPane.setFitToWidth(true); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); view.setCenterNode(scrollPane); app.setWorkbench(view); app.clearGlobalActions(); }
public CFDbTestJavaFXNmTokenTypeViewEditForm( ICFFormManager formManager, ICFDbTestJavaFXSchema argSchema, ICFDbTestNmTokenTypeObj argFocus, ICFFormClosedCallback closeCallback, boolean cameFromAdd) { super(); final String S_ProcName = "construct-schema-focus"; if (formManager == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 1, "formManager"); } cfFormManager = formManager; formClosedCallback = closeCallback; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 2, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. javafxSchema = argSchema; javaFXFocus = argFocus; if ((argFocus != null) && (!argFocus.getIsNew())) { argFocus = (ICFDbTestNmTokenTypeObj) argFocus.read(true); javaFXFocus = argFocus; } javafxViewEditPane = argSchema.getNmTokenTypeFactory().newViewEditPane(cfFormManager, argFocus); if (cameFromAdd) { dataChanged = true; } scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getHBoxMenu()); setTop(scrollMenu); setCenter(javafxViewEditPane); }