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 void
addBlockListener(BlockListener listener)
The block should notify this change listener when it movesboolean
equals(java.lang.Object obj)
protected void
fireBlockMoved()
protected void
fireUIChanged()
int
hashCode()
void
removeBlockListener(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:Block
The block should notify this change listener when it moves- Specified by:
addBlockListener
in interfaceBlock
-
removeBlockListener
public void removeBlockListener(BlockListener listener)
- Specified by:
removeBlockListener
in interfaceBlock
-
fireBlockMoved
protected void fireBlockMoved()
-
fireUIChanged
protected void fireUIChanged()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-