예제 #1
0
파일: Options.java 프로젝트: laeubi/jgnash
  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();
 }