Class OrdererBase

java.lang.Object
jfxtras.icalendarfx.content.OrdererBase
All Implemented Interfaces:
Orderer

public class OrdererBase extends Object implements Orderer
Maintains a sort order of VChild elements of a VParent Individual children are added automatically, list-based children are added through calling addChild method.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • childrenUnmodifiable

      public List<VChild> childrenUnmodifiable()
      Description copied from interface: Orderer
      List of children in proper order Orphaned children are automatically removed Non-ordered children are included
      Specified by:
      childrenUnmodifiable in interface Orderer
    • allUnorderedChildren

      private List<VChild> allUnorderedChildren(VParent parent, Map<Class<? extends VChild>,Method> childGetters2)
    • orderChild

      public void orderChild(VChild newChild)
      Description copied from interface: Orderer
      Add the next child to the list
      Specified by:
      orderChild in interface Orderer
    • removeOrphans

      private void removeOrphans(VChild newChild)
    • orderChild

      public void orderChild(int index, VChild newChild)
      Description copied from interface: Orderer
      Add the next child to the list
      Specified by:
      orderChild in interface Orderer
    • replaceChild

      public boolean replaceChild(VChild oldChild, VChild newChild)
      Description copied from interface: Orderer
      Replace oldChild with newChild in ordered list
      Specified by:
      replaceChild in interface Orderer
      Returns:
      true if success, false if failure
    • toString

      public String toString()
      Overrides:
      toString in class Object