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
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)