Пример #1
0
  private static SimpleIntegerProperty createIntegerProperty(
      final String name, final int defaultValue) {
    final SimpleIntegerProperty property =
        new SimpleIntegerProperty(null, name, p.getInt(name, defaultValue));
    property.addListener(integerChangeListener);

    return property;
  }
Пример #2
0
  public String toString() {

    String disponibilite = new String(" ");
    if (nombreStock.get() <= -1) disponibilite = disponibilite + "    (Aucun ingrédients trouvé)";
    else {
      if (nombreStock.get() == 0) disponibilite = disponibilite + "   (RUPTURE DE STOCK)";
      else {
        if (nombreStock.get() < 30) disponibilite = disponibilite + "   (" + getNombreStock() + ")";
        else disponibilite = disponibilite + "   (30+)";
      }
    }
    return nom.get() + disponibilite;
  }
  public DrawerLayout() {
    AnchorPane.setTopAnchor(toggleLayer, 0d);
    AnchorPane.setRightAnchor(toggleLayer, 0d);
    AnchorPane.setBottomAnchor(toggleLayer, 0d);
    AnchorPane.setLeftAnchor(toggleLayer, 0d);
    toggleLayer.setBackground(
        new Background(new BackgroundFill(Color.BLACK, new CornerRadii(0d), new Insets(0))));
    toggleLayer.setOpacity(0);
    toggleLayer.setVisible(false);

    toggleLayer.setOnMouseClicked(
        evt -> {
          if (evt.getButton().equals(MouseButton.PRIMARY)) {
            if (drawerOpened) {
              closeDrawer();
            }
          }
        });

    tableScreen.bind(widthProperty().lessThan(responsiveWidth).or(responsiveWidth.isEqualTo(0)));
    tableScreen.addListener(
        (observable, oldValue, newValue) -> {
          responsiveBehavior(newValue);
        });
  }
Пример #4
0
 public void setId(int i) {
   id.set(i);
 }
Пример #5
0
 public void setAmount(int amnt) {
   amount.set(amnt);
 }
Пример #6
0
 public void setIdCocinero(Integer idcoc) {
   idcocinero.set(idcoc);
 }
Пример #7
0
 public Integer getId() {
   return idempleado.get();
 }
Пример #8
0
 public int getId() {
   return id.get();
 }
 public boolean isForceNarrow() {
   return responsiveWidth.getValue() == 0;
 }
 public int getResponsiveWidth() {
   return responsiveWidth.getValue();
 }
Пример #11
0
 public void setNombreStock(int nb) {
   nombreStock.set(nb);
 }
Пример #12
0
 public void setNombreVendu(String str) {
   nombreVendu.set(Integer.parseInt(str));
 }
Пример #13
0
 public void setNombreVendu(int nb) {
   nombreVendu.set(nb);
 }
Пример #14
0
 public int getNombreBufferVente() {
   return nombreBufferVente.get();
 }
Пример #15
0
 public String getNombreStock() {
   return Integer.toString(nombreStock.get());
 }
Пример #16
0
 public String getNombreVendu() {
   return Integer.toString(nombreVendu.get());
 }
Пример #17
0
 public void setIdEmpleado(Integer idepp) {
   idempleado.set(idepp);
 }
 public int getID() {
   return mID.get();
 }
 public void setID(int pID) {
   mID.set(pID);
 }
Пример #20
0
 public void setNombreStock(String str) {
   nombreStock.set(Integer.parseInt(str));
 }
 public void setForceNarrow(boolean forceNarrow) {
   responsiveWidth.setValue(forceNarrow ? 0 : 800);
 }
Пример #22
0
 public void setNombreBufferVente(int nb) {
   nombreBufferVente.set(nb);
 }
Пример #23
0
 public boolean testStock() {
   return nombreStock.get() > 0;
 }
Пример #24
0
///////////////////////////////////////////////////////////////////////////////
Пример #25
0
 public Integer getCode() {
   return code.get();
 }
Пример #26
0
 public int getAmount() {
   return amount.get();
 }
Пример #27
0
 public void setId(Integer id) {
   idempleado.set(id);
 }
Пример #28
0
 public Integer getIdCocinero() {
   return idcocinero.get();
 }