DvQuantityWidget

public class DvQuantityWidget extends DatatypeWidget<DvQuantity>

This class represents a visual widget mapped on a DvQuantity datatype.

Fields

_input

protected EditText _input

The _input.

_labUnity

protected TextView _labUnity

The _lab unity.

_title

protected TextView _title

The _title.

_txtvalidity

protected TextView _txtvalidity

The _txtvalidity.

Constructors

DvQuantityWidget

public DvQuantityWidget(WidgetProvider provider, String name, String path, JSONObject attributes, int parentIndex)

Instantiates a new DvQuantityWidget

Parameters:
  • provider – the widget provider
  • name – the name of this widget
  • path – the path of the DvQuantity mapped on this widget
  • attributes – the attributes of the DvQuantity mapped on this widget
  • parentIndex – the parent index

Methods

onEhrDatatypeChanged

public void onEhrDatatypeChanged(DvQuantity datatype)

See also: it.crs4.most.ehrlib.datatypes.EhrDatatypeChangeListener.onEhrDatatypeChanged(it.crs4.most.ehrlib.datatypes.EhrDatatype)

replaceTooltip

protected void replaceTooltip(ToolTip tooltip)

See also: it.crs4.most.ehrlib.widgets.DatatypeWidget.replaceTooltip(com.nhaarman.supertooltips.ToolTip)

reset

public void reset()

See also: it.crs4.most.ehrlib.widgets.DatatypeWidget.reset()

save

public void save()

See also: it.crs4.most.ehrlib.widgets.DatatypeWidget.save()

updateLabelsContent

protected void updateLabelsContent()

See also: it.crs4.most.ehrlib.widgets.DatatypeWidget.updateLabelsContent()