private static SimpleStringProperty createStringProperty( final String name, final String defaultValue) { final SimpleStringProperty property = new SimpleStringProperty(null, name, p.get(name, defaultValue)); property.addListener(stringChangeListener); return property; }
public SimpleStringProperty GetSSPOrderedMeals() { sspOrderedMeals.set(""); String hilf = new String(""); for (MealAndQuantity maq : orderedMeals) { hilf = hilf + maq.quantity + "X " + maq.meal.getMealName().get() + "\n"; } sspOrderedMeals.set(hilf); return sspOrderedMeals; }
@Override public String toString() { return "[firstName=" + firstName.get() + ", lastName=" + lastName.get() + ", title=" + title.get() + ", speciality=" + specialty.get() + ", salary=" + salary + "]"; }
@Override public ArrayList<String> getValues() { ArrayList<String> values = new ArrayList<>(); values.add(idcarte.get()); values.add(titlu.get()); values.add(descriere.get()); values.add(ideditura.get()); values.add(anaparitie.get()); values.add(editie.get()); values.add(idcolectie.get()); values.add(iddomeniu.get()); values.add(stoc.get()); values.add(pret.get()); return values; }
public SimpleStringProperty GetSSPPrice() { price = 0; for (MealAndQuantity maq : orderedMeals) { price = price + maq.meal.getMealPriceAsDouble() * maq.quantity; } sspPrice.set(Double.toString(price)); return sspPrice; }
private boolean isRnaSequence() { char[] sequenceArray = sequence.getValue().toCharArray(); boolean isRNA = sequenceArray.length > 0; // true if length is longer than 0 if (isRNA) { for (char c : sequenceArray) { if (!(isRNA = isRNABase(c))) break; } } return isRNA; }
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; }
private boolean isMatchingDotBracket() { // if(sequence == null || dotBracket == null) { return false; } // if(sequence.get().length() != dotBracket.get().length()) {return false;} int openBrackets = 0; for (char c : dotBracket.getValue().toCharArray()) { switch (c) { case '(': openBrackets++; break; case ')': openBrackets--; break; default: break; } } return (openBrackets == 0); }
public String getDateFrom() { return dateFrom.get(); }
public String getEmployeeLastName() { return employeeLastName.get(); }
public String getClient() { return client.get(); }
public String getDateTo() { return dateTo.get(); }
public String getNotes() { return notes.get(); }
public String getSpecialty() { return specialty.get(); }
public String getPrenomE() { return prenomE.get(); }
public String getOresuplimentare() { return oresuplimentare.get(); }
public void setNombre(String fName) { nombre.set(fName); }
public String getTypeE() { return typeE.get(); }
public String toListView() { return title.get() + " " + firstName.get() + " " + lastName.get(); }
public String getThemeE() { return themeE.get(); }
public String getNiveauE() { return niveauE.get(); }
public String getFiliereE() { return filiereE.get(); }
public String getLastName() { return lastName.get(); }
public String getTelf() { return telefono.get(); }
public String getTitle() { return title.get(); }
public void setTelf(String telf) { telefono.set(telf); }
/** * returns extracts and returns a copy of the reference-to-String value stored in <i>name * SimpleStringProperty</i>; safe to return because <i>String</i> is immutable */ public String getName() { return name.get(); }
public String getNomE() { return nomE.get(); }
public String getFirstName() { return firstName.get(); }
public String getNombre() { return nombre.get(); }