Class AbstractBlock
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.blockandconnector.model.impl.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 Summary
Fields Modifier and Type Field Description protected java.util.List<BlockListener>listeners
-
Constructor Summary
Constructors Constructor Description AbstractBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlockListener(BlockListener listener)The block should notify this change listener when it movesbooleanequals(java.lang.Object obj)protected voidfireBlockMoved()protected voidfireUIChanged()inthashCode()voidremoveBlockListener(BlockListener listener)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.designer.blockandconnector.model.Block
copy, getAnchorPoints, getDefaultDropAnchor, getId, getLocation, initUI, setLocation
-
-
-
-
Field Detail
-
listeners
protected final java.util.List<BlockListener> listeners
-
-
Method Detail
-
addBlockListener
public void addBlockListener(BlockListener listener)
Description copied from interface:BlockThe block should notify this change listener when it moves- Specified by:
addBlockListenerin interfaceBlock
-
removeBlockListener
public void removeBlockListener(BlockListener listener)
- Specified by:
removeBlockListenerin interfaceBlock
-
fireBlockMoved
protected void fireBlockMoved()
-
fireUIChanged
protected void fireUIChanged()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-