InnerArchetypeWidget

public class InnerArchetypeWidget extends DatatypeWidget<InnerArchetype>

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

Fields

myToolTipView

protected ToolTipView myToolTipView

Constructors

InnerArchetypeWidget

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

Instantiate a new InnerArchetypeWidget

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

Methods

onEhrDatatypeChanged

public void onEhrDatatypeChanged(InnerArchetype datatype)

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

replaceTooltip

protected void replaceTooltip(ToolTip 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()

setOntology

public void setOntology(JSONObject ontology, String language)

Sets the ontology.

Parameters:
  • ontology – the new ontology

updateLabelsContent

protected void updateLabelsContent()