< prev index next >

modules/javafx.fxml/src/test/java/test/com/sun/javafx/fxml/builder/ClassWithReadOnlyCollection.java

Print this page
rev 10430 : 8178989: Missing copyright headers for some files
Reviewed-by:

























   1 package test.com.sun.javafx.fxml.builder;
   2 
   3 import com.sun.javafx.collections.TrackableObservableList;
   4 import javafx.beans.NamedArg;
   5 import javafx.collections.ListChangeListener;
   6 import javafx.collections.ObservableList;
   7 
   8 import java.util.ArrayList;
   9 import java.util.Arrays;
  10 import java.util.List;
  11 
  12 /**
  13  * Created by msladecek on 22.7.14.
  14  */
  15 public class ClassWithReadOnlyCollection {
  16     public double a;
  17     ObservableList<Integer> propertyList = new TrackableObservableList<Integer>() {
  18         @Override
  19         protected void onChanged(ListChangeListener.Change<Integer> c) {}
  20     };
  21 
  22     public ClassWithReadOnlyCollection() {
  23 
  24     }
  25 
  26     public ClassWithReadOnlyCollection(@NamedArg("a") double a) {
  27         this.a = a;
  28     }
  29 
  30     public List<Integer> getPropertyList() {
  31         return propertyList;
  32     }
  33 }
   1 /*
   2  * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package test.com.sun.javafx.fxml.builder;
  27 
  28 import com.sun.javafx.collections.TrackableObservableList;
  29 import javafx.beans.NamedArg;
  30 import javafx.collections.ListChangeListener;
  31 import javafx.collections.ObservableList;
  32 
  33 import java.util.ArrayList;
  34 import java.util.Arrays;
  35 import java.util.List;
  36 



  37 public class ClassWithReadOnlyCollection {
  38     public double a;
  39     ObservableList<Integer> propertyList = new TrackableObservableList<Integer>() {
  40         @Override
  41         protected void onChanged(ListChangeListener.Change<Integer> c) {}
  42     };
  43 
  44     public ClassWithReadOnlyCollection() {
  45 
  46     }
  47 
  48     public ClassWithReadOnlyCollection(@NamedArg("a") double a) {
  49         this.a = a;
  50     }
  51 
  52     public List<Integer> getPropertyList() {
  53         return propertyList;
  54     }
  55 }
< prev index next >