JavaFX Sequence Declaration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    JavaFX Sequence Declaration

    Hi all,
    I have only just started teaching myself JavaFX, and I am struggling with a few concepts. Does anyone know how to declare a class as a sequence? I had "object holders" which were simply classes which extended ArrayLists. These had custom functions, which is why I need them in JavaFX. For example in Java:
    Code:
    public class MyObjectHolder extends ArrayList<MyObject> {
    
        public MyObjectHolder() {
        }
    
        public void addObject(String name, Integer value) {
            this.add(new MyObject(name, value));
        }...
    Obviously ArrayLists have been replaced with sequences, but now what?

    Thanks for any help you can offer.
Working...