info.bioinfweb.treegraph.document.nodebranchdata
Class UniqueNameAdapter
java.lang.Object
info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
info.bioinfweb.treegraph.document.nodebranchdata.UniqueNameAdapter
- All Implemented Interfaces:
- NodeBranchDataAdapter
public class UniqueNameAdapter
- extends AbstractNodeBranchDataAdapter
- implements NodeBranchDataAdapter
sharedInstance
private static UniqueNameAdapter sharedInstance
UniqueNameAdapter
public UniqueNameAdapter()
getSharedInstance
public static UniqueNameAdapter getSharedInstance()
readOnly
public boolean readOnly()
- Specified by:
readOnly in interface NodeBranchDataAdapter
decimalOnly
public boolean decimalOnly()
- Specified by:
decimalOnly in interface NodeBranchDataAdapter
isNewColumn
public boolean isNewColumn()
- Specified by:
isNewColumn in interface NodeBranchDataAdapter
isDecimal
public boolean isDecimal(Node node)
- Specified by:
isDecimal in interface NodeBranchDataAdapter
isEmpty
public boolean isEmpty(Node node)
- Specified by:
isEmpty in interface NodeBranchDataAdapter
isString
public boolean isString(Node node)
- Specified by:
isString in interface NodeBranchDataAdapter
delete
public void delete(Node node)
- Specified by:
delete in interface NodeBranchDataAdapter
getDecimal
public double getDecimal(Node node)
- Specified by:
getDecimal in interface NodeBranchDataAdapter
getText
public String getText(Node node)
- Specified by:
getText in interface NodeBranchDataAdapter
setDecimal
public void setDecimal(Node node,
double value)
- Specified by:
setDecimal in interface NodeBranchDataAdapter
setText
public void setText(Node node,
String value)
- Specified by:
setText in interface NodeBranchDataAdapter
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:
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