Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## info.bioinfweb.treegraph.document.nodebranchdata
Class TextElementDataAdapter

    java.lang.Object
      info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
          info.bioinfweb.treegraph.document.nodebranchdata.TextElementDataAdapter

All Implemented Interfaces:
  NodeBranchDataAdapter

Direct Known Subclasses:
  AbstractIDElementAdapter, NodeNameAdapter

    public abstract class TextElementDataAdapter

extends AbstractNodeBranchDataAdapter
implements NodeBranchDataAdapter

This abstract class implements basic funktionalities for adapters that deal with data stored in a `TextElementData`-object.

Author:
  Ben Stöver

Constructor Summary
`TextElementDataAdapter()`

Method Summary
`abstract boolean` | `assignData(Node node, TextElementData data)`
`protected abstract void` | `createData(Node node)` This method should create the data object if does not already exist.
`boolean` | `decimalOnly()`
`void` | `delete(Node node)`
`abstract TextElementData` | `getData(Node node)`
`double` | `getDecimal(Node node)`
`abstract DecimalFormat` | `getDecimalFormat(Node node)`
`String` | `getText(Node node)`
`boolean` | `isDecimal(Node node)`
`boolean` | `isEmpty(Node node)`
`boolean` | `isNewColumn()`
`boolean` | `isString(Node node)`
`void` | `setDecimal(Node node, double value)`
`void` | `setText(Node node, String value)`
`void` | `setType(Node node, boolean decimal)`

Methods inherited from class info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
`equals`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface info.bioinfweb.treegraph.document.nodebranchdata.NodeBranchDataAdapter
`getDataElement, readOnly, toString`

Constructor Detail

### TextElementDataAdapter

    public TextElementDataAdapter()

Method Detail

### getData

    public abstract TextElementData getData(Node node)

### assignData

    public abstract boolean assignData(Node node,
                                       TextElementData data)

### getDecimalFormat

    public abstract DecimalFormat getDecimalFormat(Node node)

### createData

    protected abstract void createData(Node node)

  This method should create the data object if does not already exist.

  Parameters:
    `node` - - the node wich is assiciated with the data object

### decimalOnly

    public boolean decimalOnly()

  Specified by:
    `decimalOnly` in interface `NodeBranchDataAdapter`

### isNewColumn

    public boolean isNewColumn()

  Specified by:
    `isNewColumn` 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`

### 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`

### 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`

### setType

    public void setType(Node node,
                        boolean decimal)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD