|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.service.instance.internal.AbstractInstanceService
public abstract class AbstractInstanceService
Notification handling for InstanceService
s that support
InstanceServiceListener
s
Field Summary |
---|
Fields inherited from interface eu.esdihumboldt.hale.ui.service.instance.InstanceService |
---|
ACTION_READ_SOURCEDATA |
Constructor Summary | |
---|---|
AbstractInstanceService(ProjectService projectService,
AlignmentService alignmentService)
Create an instance service. |
Method Summary | |
---|---|
void |
addListener(InstanceServiceListener listener)
Adds an instance service listener |
protected abstract void |
clearTransformedInstances()
Clear the transformed instances |
protected abstract void |
doRetransform()
Retransform all instances. |
protected AlignmentService |
getAlignmentService()
|
protected ProjectService |
getProjectService()
|
protected TransformationService |
getTransformationService()
|
boolean |
isTransformationEnabled()
Get if live transformation of source data is enabled. |
protected void |
notifyDatasetAboutToChange(DataSet type)
Notify listeners that a data set is about to be changed |
protected void |
notifyDatasetChanged(DataSet type)
Notify listeners that a data set has changed |
void |
notifyTransformationToggled(boolean enabled)
Called when the transformation has been enabled or disabled. |
void |
removeListener(InstanceServiceListener listener)
Removes an instance service listener |
protected void |
retransform()
Retransform all instances. |
void |
setTransformationEnabled(boolean enabled)
Set if live transformation of source data is enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.esdihumboldt.hale.ui.service.instance.InstanceService |
---|
addSourceInstances, clearInstances, getInstances, getInstanceTypes |
Methods inherited from interface eu.esdihumboldt.hale.common.instance.model.InstanceResolver |
---|
getInstance, getReference |
Constructor Detail |
---|
public AbstractInstanceService(ProjectService projectService, AlignmentService alignmentService)
projectService
- the project service. The instances will be cleared
when the project is cleaned.alignmentService
- the alignment serviceMethod Detail |
---|
public void setTransformationEnabled(boolean enabled)
InstanceService
setTransformationEnabled
in interface InstanceService
enabled
- if transformation is enabledInstanceService.setTransformationEnabled(boolean)
public boolean isTransformationEnabled()
InstanceService
isTransformationEnabled
in interface InstanceService
InstanceService.isTransformationEnabled()
protected final void retransform()
protected abstract void doRetransform()
protected abstract void clearTransformedInstances()
protected TransformationService getTransformationService()
protected AlignmentService getAlignmentService()
protected ProjectService getProjectService()
public void notifyTransformationToggled(boolean enabled)
enabled
- if the transformation is enabled nowprotected void notifyDatasetChanged(DataSet type)
type
- the data set type, null
if both sets have
changedprotected void notifyDatasetAboutToChange(DataSet type)
type
- the data set type, null
if both sets will changepublic void addListener(InstanceServiceListener listener)
InstanceService
addListener
in interface InstanceService
listener
- the listener to addpublic void removeListener(InstanceServiceListener listener)
InstanceService
removeListener
in interface InstanceService
listener
- the listener to remove
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |