Example usage for javafx.beans.property SimpleLongProperty SimpleLongProperty

List of usage examples for javafx.beans.property SimpleLongProperty SimpleLongProperty

Introduction

In this page you can find the example usage for javafx.beans.property SimpleLongProperty SimpleLongProperty.

Prototype

public SimpleLongProperty(Object bean, String name, long initialValue) 

Source Link

Document

The constructor of LongProperty

Usage

From source file:Main.java

public static void main(String[] args) {
    IntegerProperty i = new SimpleIntegerProperty(null, "i", 1024);
    LongProperty l = new SimpleLongProperty(null, "l", 0L);

    System.out.println("i.get() = " + i.get());
    System.out.println("l.get() = " + l.get());

    l.bind(i);/*w ww.  j  a  v a2 s .  com*/

    i.set(2048);

    System.out.println("i.get() = " + i.get());
    System.out.println("l.get() = " + l.get());

    l.unbind();
    System.out.println("Unbound l to i, f to l, d to f.");

    i.bind(l);
    System.out.println("Bound f to d, l to f, i to l.");

    System.out.println("Calling d.set(10000000000L).");
    i.set(100);

    System.out.println("l.get() = " + l.get());
    System.out.println("i.get() = " + i.get());
}

From source file:de.pro.dbw.file.reflection.api.ReflectionCommentModel.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, REFLECTION_COMMENT_MODEL__COLUMN_NAME__ID, _id);
    }//w  ww. ja v  a  2 s  .com
    return idProperty;
}

From source file:com.github.naoghuman.abclist.model.Link.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, LINK__COLUMN_NAME__ID, _id);
    }/*from w w w .j  a va 2s. c o m*/

    return idProperty;
}

From source file:com.github.naoghuman.cm.model.category.CategoryModel.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, COLUMN_NAME__ID, _id);
    }//from   ww w.  j  a v a2  s .  c o  m
    return idProperty;
}

From source file:de.pro.dbw.file.tipofthenight.api.TipOfTheNightModel.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, TIP_OF_THE_NIGHT_MODEL__COLUMN_NAME__ID, _id);
    }//from www .j  a  va  2 s . c o m
    return idProperty;
}

From source file:com.github.naoghuman.abclist.model.Topic.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, TOPIC__COLUMN_NAME__ID, _id);
    }/*  w w w.j a  va2  s  . c  o m*/

    return idProperty;
}

From source file:com.github.naoghuman.abclist.model.LinkMapping.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, LINK_MAPPING__COLUMN_NAME__ID, _id);
    }//from w ww .  j a v  a2 s.  c om

    return idProperty;
}

From source file:com.github.naoghuman.abclist.model.Term.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, TERM__COLUMN_NAME__ID, _id);
    }/*from   w  w  w  .  ja  v  a  2 s . c o m*/

    return idProperty;
}

From source file:com.github.naoghuman.abclist.model.Exercise.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, EXERCISE__COLUMN_NAME__ID, _id);
    }/*from w  w  w.  ja  va2s  .  co  m*/

    return idProperty;
}

From source file:com.github.naoghuman.abclist.model.ExerciseTerm.java

public LongProperty idProperty() {
    if (idProperty == null) {
        idProperty = new SimpleLongProperty(this, EXERCISE_TERM__COLUMN_NAME__ID, _id);
    }// w w  w. j av  a  2 s.  c  o  m

    return idProperty;
}