Class AbstractBlock

  • All Implemented Interfaces:
    Block
    Direct Known Subclasses:
    PropertySetBlock

    public abstract class AbstractBlock
    extends java.lang.Object
    implements Block
    Abstract implementation takes care of the bookkeeping required for event handling. Also implements hashcode and equals using the UUID from getId()
    • Field Detail

      • listeners

        protected final java.util.List<BlockListener> listeners
    • Constructor Detail

      • AbstractBlock

        public AbstractBlock()
    • Method Detail

      • addBlockListener

        public void addBlockListener​(BlockListener listener)
        Description copied from interface: Block
        The block should notify this change listener when it moves
        Specified by:
        addBlockListener in interface Block
      • fireBlockMoved

        protected void fireBlockMoved()
      • fireUIChanged

        protected void fireUIChanged()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object