public void setBlock(int idx) { model.setBlock(idx); lines.setBlock(idx); lines.setRowCount(this.getRowCount()); onTableChanged(true); }
Object[] getValues(Long rid) { return model.getValues(rid); }
public Object[] getFlatValues(int row) { return model.getFlatValues(row); }
Object[] getValues(int row) { return model.getValues(row); }
public void addRow(Object[] rowdata, boolean newrow) { model.addRow(rowdata, newrow); lines.setRowCount(this.getRowCount()); }
private void endTag(TagWriter writer) throws IOException { closingPolicy.endTag(writer, tagName); }
public void setFlatValueAt(Object aValue, int row, int col) { model.setFlatValueAt(aValue, row, col); }
public Object getFlatValueAt(int row, int col) { return model.getFlatValueAt(row, col); }
public ContentChanges getChanges() { return model.getChanges(); }
public int getBlock() { return model.getBlock(); }
public int getBlockCount() { return model.getBlockCount(); }
public void insertRow(int row) { model.insertRow(row); lines.setRowCount(this.getRowCount()); onTableChanged(true); }
public void addColumn(String text, int type) { model.addColumn(text, type); }
public int getFlatRow() { return model.toFlatRow(getRow()); }
public int getColumnCount() { return model.getColumnCount(); }
public int getFlatRowCount() { return model.getFlatRowCount(); }
public int getColumnIndex(String name) { return model.getColumnIndex(name); }
public void resetFlatValueAt(int row, int col) { model.resetFlatValueAt(row, col); }
public String getColumnName(int idx) { return model.getColumnName(idx); }
public void resetCellValue() { model.resetValueAt(data.getSelectedRow(), data.getSelectedColumn()); data.tableChanged(new TableModelEvent(data.getModel(), data.getSelectedRow())); }
public int getColumnType(int idx) { return model.getColumnType(idx); }
@Override public void start(Stage stage) throws Exception { this.mainBorderPane = new BorderPane(); FlowPane toolbar = new FlowPane(); Button btnClear = new Button("Clear"); btnClear.setOnAction( event -> { root.getChildren().clear(); }); Button btnLoadFtof = new Button("FTOF"); btnLoadFtof.setOnAction( event -> { loadDetector("FTOF"); }); toolbar.getChildren().add(btnClear); toolbar.getChildren().add(btnLoadFtof); SplitPane splitPane = new SplitPane(); StackPane treePane = new StackPane(); root = new Group(); BorderPane pane = new BorderPane(); treeView = new TreeView<String>(); treePane.getChildren().add(treeView); this.content = new ContentModel(800, 800, 200); this.content.setContent(root); content.getSubScene().heightProperty().bind(pane.heightProperty()); content.getSubScene().widthProperty().bind(pane.widthProperty()); pane.setCenter(content.getSubScene()); mainBorderPane.setTop(toolbar); splitPane.getItems().addAll(treePane, pane); splitPane.setDividerPositions(0.2); // this.addDetector("FTOF"); // this.test(); this.testFTOF(); // this.testDC(); // this.testBST(); // final Scene scene = new Scene(pane, 880, 880, true); this.mainBorderPane.setCenter(splitPane); HBox statusPane = new HBox(); ColorPicker colorPicker = new ColorPicker(); colorPicker.setOnAction( new EventHandler() { @Override public void handle(Event event) { content.setBackgroundColor(colorPicker.getValue()); } }); statusPane.getChildren().add(colorPicker); this.mainBorderPane.setBottom(statusPane); final Scene scene = new Scene(mainBorderPane, 1280, 880, true); scene.setFill(Color.ALICEBLUE); stage.setTitle("CLAS12 Geometry Viewer - JavaFX3D"); stage.setScene(scene); stage.show(); }
public boolean isReadOnly() { return model.isReadOnly(); }