Home /
Development /
Documentation /
2.0.44 /
AbstractIDElementAdapter
info.bioinfweb.treegraph.document.nodebranchdata
Class AbstractIDElementAdapter
java.lang.Object
info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
info.bioinfweb.treegraph.document.nodebranchdata.TextElementDataAdapter
info.bioinfweb.treegraph.document.nodebranchdata.AbstractIDElementAdapter
- All Implemented Interfaces:
- IDElementAdapter, NodeBranchDataAdapter
- Direct Known Subclasses:
- HiddenDataAdapter, TextLabelAdapter
public abstract class AbstractIDElementAdapter
- extends TextElementDataAdapter
- implements IDElementAdapter
Node data adapters that need to store an ID can be inherited from this abstract class.
- Author:
- Ben Stöver
Methods inherited from class info.bioinfweb.treegraph.document.nodebranchdata.TextElementDataAdapter |
assignData, createData, decimalOnly, delete, getData, getDecimal, getDecimalFormat, getText, isDecimal, isEmpty, isString, setDecimal, setText, setType |
id
protected String id
AbstractIDElementAdapter
public AbstractIDElementAdapter(String id)
readOnly
public boolean readOnly()
- Specified by:
readOnly
in interface NodeBranchDataAdapter
isNewColumn
public boolean isNewColumn()
- Specified by:
isNewColumn
in interface NodeBranchDataAdapter
- Overrides:
isNewColumn
in class TextElementDataAdapter
getID
public String getID()
- Specified by:
getID
in interface IDElementAdapter
setID
public void setID(String id)
- Description copied from interface:
IDElementAdapter
- Sets the ID used to access the returned data.
- Specified by:
setID
in interface IDElementAdapter
getDataElement
public ConcretePaintableElement getDataElement(Node node)
- Description copied from interface:
NodeBranchDataAdapter
- This method should return the tree element which contains the data which is edited
with the implementation of the respective adapter.
- Specified by:
getDataElement
in interface NodeBranchDataAdapter
- Returns:
equals
public boolean equals(Object other)
- Returns
true
if the specified object is an instance of the same class and has the same
ID.
- Overrides:
equals
in class AbstractNodeBranchDataAdapter
- See Also:
Object.equals(java.lang.Object)