List of usage examples for javafx.beans.property SimpleBooleanProperty SimpleBooleanProperty
public SimpleBooleanProperty(boolean initialValue)
From source file:benedict.zhang.addon.soundmanager.controller.SoundManagerConfigureController.java
/** * Initializes the controller class./*from ww w. ja v a 2 s .c o m*/ */ @Override public void initialize(URL url, ResourceBundle rb) { // TODO currentMode = new SimpleStringProperty(); sound = new Sound(); oriSound = new Sound(); isUpdatingOrSaving = new SimpleBooleanProperty(false); this.setMode(null); initDataBinding(); currentMode.addListener(new ViewModeChangeListener(this)); }
From source file:de.pro.dbw.file.dream.api.DreamModel.java
private void initialize() { markAsChangedProperty = new SimpleBooleanProperty(Boolean.FALSE); }
From source file:herudi.controller.microMarketController.java
/** * Initializes the controller class./* w w w . ja va 2 s . c o m*/ * @param url * @param rb */ @Override public void initialize(URL url, ResourceBundle rb) { Platform.runLater(() -> { ApplicationContext ctx = config.getInstance().getApplicationContext(); crud = ctx.getBean(interMicro.class); listData = FXCollections.observableArrayList(); status = 0; config2.setModelColumn(colAreaLength, "areaLength"); config2.setModelColumn(colAreaWidth, "areaWidth"); config2.setModelColumn(colRadius, "radius"); config2.setModelColumn(colZip, "zipCode"); colAction.setCellValueFactory( new Callback<TableColumn.CellDataFeatures<Object, Boolean>, ObservableValue<Boolean>>() { @Override public ObservableValue<Boolean> call(TableColumn.CellDataFeatures<Object, Boolean> p) { return new SimpleBooleanProperty(p.getValue() != null); } }); colAction.setCellFactory(new Callback<TableColumn<Object, Boolean>, TableCell<Object, Boolean>>() { @Override public TableCell<Object, Boolean> call(TableColumn<Object, Boolean> p) { return new ButtonCell(tableData); } }); selectWithService(); }); // TODO }
From source file:org.sleuthkit.autopsy.imageanalyzer.datamodel.DrawableFile.java
protected DrawableFile(T file, Boolean analyzed) { /* @TODO: the two 'new Integer(0).shortValue()' values and null are * placeholders because the super constructor expects values i can't get * easily at the moment. I assume this is related to why ReadContentInputStream can't read from DrawableFiles.*/ super(file.getSleuthkitCase(), file.getId(), file.getAttrType(), file.getAttrId(), file.getName(), file.getType(), file.getMetaAddr(), (int) file.getMetaSeq(), file.getDirType(), file.getMetaType(), null, new Integer(0).shortValue(), file.getSize(), file.getCtime(), file.getCrtime(), file.getAtime(), file.getMtime(), new Integer(0).shortValue(), file.getUid(), file.getGid(), file.getMd5Hash(), file.getKnown(), file.getParentPath()); this.analyzed = new SimpleBooleanProperty(analyzed); this.file = file; }
From source file:herudi.controller.productController.java
/** * Initializes the controller class./*from ww w. ja v a 2 s.co m*/ * @param url * @param rb */ @Override public void initialize(URL url, ResourceBundle rb) { Platform.runLater(() -> { ApplicationContext ctx = config.getInstance().getApplicationContext(); crud = ctx.getBean(interProduct.class); listData = FXCollections.observableArrayList(); status = 0; available = ""; config2.setModelColumn(colAvailable, "available"); config2.setModelColumn(colDescription, "description"); config2.setModelColumn(colManufacturerIid, "manufacturerId"); config2.setModelColumn(colMarkup, "markup"); config2.setModelColumn(colProductCode, "productCode"); config2.setModelColumn(colProductId, "productId"); config2.setModelColumn(colPurchaseCost, "formatCost"); config2.setModelColumn(colQuantityOnHand, "quantityOnHand"); colAction.setCellValueFactory( new Callback<TableColumn.CellDataFeatures<Object, Boolean>, ObservableValue<Boolean>>() { @Override public ObservableValue<Boolean> call(TableColumn.CellDataFeatures<Object, Boolean> p) { return new SimpleBooleanProperty(p.getValue() != null); } }); colAction.setCellFactory(new Callback<TableColumn<Object, Boolean>, TableCell<Object, Boolean>>() { @Override public TableCell<Object, Boolean> call(TableColumn<Object, Boolean> p) { return new ButtonCell(tableData); } }); selectWithService(); displayManufacturer(); displayProductCode(); }); // TODO }
From source file:herudi.controller.customerController.java
/** * Initializes the controller class./*from w w w. j a v a 2 s. c om*/ * @param url * @param rb */ @Override public void initialize(URL url, ResourceBundle rb) { Platform.runLater(() -> { ApplicationContext ctx = config.getInstance().getApplicationContext(); crud = ctx.getBean(interCustomer.class); listData = FXCollections.observableArrayList(); status = 0; config2.setModelColumn(colAdderss1, "addressline1"); config2.setModelColumn(colAddress2, "addressline2"); config2.setModelColumn(colCity, "city"); config2.setModelColumn(colCreditLimit, "creditLimit"); config2.setModelColumn(colCustomerId, "customerId"); config2.setModelColumn(colDiscountCode, "discountCode"); config2.setModelColumn(colEmail, "email"); config2.setModelColumn(colFax, "fax"); config2.setModelColumn(colName, "name"); config2.setModelColumn(colPhone, "phone"); config2.setModelColumn(colState, "state"); config2.setModelColumn(colZip, "zip"); colAction.setCellValueFactory( new Callback<TableColumn.CellDataFeatures<Object, Boolean>, ObservableValue<Boolean>>() { @Override public ObservableValue<Boolean> call(TableColumn.CellDataFeatures<Object, Boolean> p) { return new SimpleBooleanProperty(p.getValue() != null); } }); colAction.setCellFactory(new Callback<TableColumn<Object, Boolean>, TableCell<Object, Boolean>>() { @Override public TableCell<Object, Boolean> call(TableColumn<Object, Boolean> p) { return new ButtonCell(tableData); } }); selectWithService(); displayDiscountCode(); displayZip(); }); // TODO }
From source file:org.sleuthkit.autopsy.imagegallery.datamodel.DrawableFile.java
protected DrawableFile(T file, Boolean analyzed) { /* @TODO: the two 'new Integer(0).shortValue()' values and null are * placeholders because the super constructor expects values i can't get * easily at the moment. I assume this is related to why * ReadContentInputStream can't read from DrawableFiles. */ super(file.getSleuthkitCase(), file.getId(), file.getAttrType(), file.getAttrId(), file.getName(), file.getType(), file.getMetaAddr(), (int) file.getMetaSeq(), file.getDirType(), file.getMetaType(), null, new Integer(0).shortValue(), file.getSize(), file.getCtime(), file.getCrtime(), file.getAtime(), file.getMtime(), new Integer(0).shortValue(), file.getUid(), file.getGid(), file.getMd5Hash(), file.getKnown(), file.getParentPath()); this.analyzed = new SimpleBooleanProperty(analyzed); this.file = file; }
From source file:org.noroomattheinn.visibletesla.AppContext.java
AppContext(Application app, Stage stage) { this.app = app; this.stage = stage; this.persistentState = Preferences.userNodeForPackage(this.getClass()); this.inactivityModeListener = null; this.inactivityState = new SimpleObjectProperty<>(InactivityType.Awake); this.shuttingDown = new SimpleBooleanProperty(false); this.lastKnownChargeState = new SimpleObjectProperty<>(); this.lastKnownDrivingState = new SimpleObjectProperty<>(); this.lastKnownGUIState = new SimpleObjectProperty<>(); this.lastKnownHVACState = new SimpleObjectProperty<>(); this.lastKnownSnapshotState = new SimpleObjectProperty<>(); this.lastKnownVehicleState = new SimpleObjectProperty<>(); this.schedulerActivityReport = new SimpleObjectProperty<>(); this.simulatedUnits = new SimpleObjectProperty<>(); this.simulatedWheels = new SimpleObjectProperty<>(); this.simulatedColor = new SimpleObjectProperty<>(); this.simulatedRoof = new SimpleObjectProperty<>(); this.prefs = new Prefs(this); appFilesFolder = ensureAppFilesFolder(); establishProxy();// w w w . ja v a 2s. c om }
From source file:mesclasses.view.JourneeController.java
/** * Initializes the controller class./*from w ww. jav a2s.co m*/ */ @Override public void initialize(URL url, ResourceBundle rb) { LogUtil.logStart(); name = "Journee Ctrl"; super.initialize(url, rb); LOG.debug("Initialisation de " + name); initTabs(); Btns.makeLeft(previousDayBtn); Btns.makeRight(nextDayBtn); Btns.makeLeft(seanceSelect.getBtnLeft()); Btns.makeRight(seanceSelect.getBtnRight()); Btns.makeAdd(addCoursBtn); Btns.makeDelete(remCoursBtn); Btns.tooltip(previousDayBtn, "Jour prcdent"); Btns.tooltip(nextDayBtn, "Jour suivant"); Btns.tooltip(seanceSelect.getBtnLeft(), "Sance prcdente"); Btns.tooltip(seanceSelect.getBtnRight(), "Sance suivante"); Btns.tooltip(addCoursBtn, "Ajouter une sance ponctuelle"); Btns.tooltip(remCoursBtn, "Supprimer la sance ponctuelle"); Btns.tooltip(switchNonActifsBtn, "active/dsactive l'affichage des lves inactifs"); Btns.tooltip(rapportsBtn, "Ouvre la page des rapports trimestriels pour la classe"); Btns.tooltip(punitionsBtn, "Ouvre le suivi des punitions, devoirs et mots pour la classe"); Btns.tooltip(postItBtn, "ouvre le postIt de la classe"); Btns.tooltip(ramasserBtn, "ouvre la fentre des actions faire pour la classe"); currentDate.setDayCellFactory(new TunedDayCellFactory().setAllowSundays(false)); currentDate.setConverter(NodeUtil.DATE_WITH_DAY_NAME); currentDate.valueProperty().addListener(dateListener); displayNonActifs = new SimpleBooleanProperty(false); switchNonActifsBtn.setText("Afficher inactifs"); displayNonActifs.addListener((observable, oldValue, newValue) -> { LOG.debug("Switch actifs/inactifs"); switchNonActifsBtn.setText(displayNonActifs.get() ? "Masquer inactifs" : "Afficher inactifs"); refreshGrid(); }); seanceSelect.addChangeListener((ob, o, n) -> { LOG.debug("seanceSelect changed --> reloading"); loadCurrentSeance(); }); // activation du bouton remCours si besoin rapportsBtn.disableProperty().bind(Bindings.isNull(seanceSelect.valueProperty())); punitionsBtn.disableProperty().bind(Bindings.isNull(seanceSelect.valueProperty())); postItBtn.disableProperty().bind(Bindings.isNull(seanceSelect.valueProperty())); // on ne change que la date, le listener sur currentDate se charge du reste LocalDate today = LocalDate.now(); if (today.getDayOfWeek().equals(DayOfWeek.SUNDAY)) { today = today.minusDays(1); } LOG.debug("Initializing with today's date"); currentDate.setValue(today); LogUtil.logEnd(); }
From source file:com.adobe.ags.curly.controller.ActionRunner.java
private String getURL() throws URISyntaxException { StringBuilder urlBuilder = new StringBuilder(); String URI = URL.contains("?") ? URL.substring(0, URL.indexOf('?')) : URL; URI = URI.replaceAll("\\s", "%20"); urlBuilder.append(URI);/*from w w w . ja v a2 s .c o m*/ final BooleanProperty hasQueryString = new SimpleBooleanProperty(URL.contains("?")); getVariables.forEach((key, values) -> { if (values != null) { values.forEach(value -> { try { urlBuilder.append(hasQueryString.get() ? "&" : "?").append(URLEncoder.encode(key, UTF8)) .append("=").append(URLEncoder.encode(value != null ? value : "", UTF8)); hasQueryString.set(false); } catch (UnsupportedEncodingException ex) { Logger.getLogger(ActionRunner.class.getName()).log(Level.SEVERE, null, ex); } }); } }); return urlBuilder.toString(); }