info.bioinfweb.treegraph.document.nodebranchdata
Class NodeNameAdapter
java.lang.Object
info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
info.bioinfweb.treegraph.document.nodebranchdata.TextElementDataAdapter
info.bioinfweb.treegraph.document.nodebranchdata.NodeNameAdapter
- All Implemented Interfaces:
- NodeBranchDataAdapter
public class NodeNameAdapter
- extends TextElementDataAdapter
- implements NodeBranchDataAdapter
Methods inherited from class info.bioinfweb.treegraph.document.nodebranchdata.TextElementDataAdapter |
decimalOnly, delete, getDecimal, getText, isDecimal, isEmpty, isNewColumn, isString, setDecimal, setText, setType |
sharedInstance
private static NodeNameAdapter sharedInstance
NodeNameAdapter
public NodeNameAdapter()
getSharedInstance
public static NodeNameAdapter getSharedInstance()
readOnly
public boolean readOnly()
- Specified by:
readOnly
in interface NodeBranchDataAdapter
getData
public TextElementData getData(Node node)
- Specified by:
getData
in class TextElementDataAdapter
assignData
public boolean assignData(Node node,
TextElementData data)
- Specified by:
assignData
in class TextElementDataAdapter
getDecimalFormat
public DecimalFormat getDecimalFormat(Node node)
- Specified by:
getDecimalFormat
in class TextElementDataAdapter
toString
public String toString()
- Description copied from interface:
NodeBranchDataAdapter
- A description of the adapter that is readable by the user should be returned here.
- Specified by:
toString
in interface NodeBranchDataAdapter
- Overrides:
toString
in class Object
createData
protected void createData(Node node)
- Description copied from class:
TextElementDataAdapter
- This method should create the data object if does not already exist.
- Specified by:
createData
in class TextElementDataAdapter
- Parameters:
node
- the node wich is assiciated with the data object
getDataElement
public Node 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: