Search in sources :

Example 1 with MatchModePropertyEditor

use of eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor in project cdmlib by cybertaxonomy.

the class TaxonListController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(DefinedTermBaseList.class, new TermBaseListPropertyEditor<NamedArea>(termService));
    binder.registerCustomEditor(MatchMode.class, new MatchModePropertyEditor());
    binder.registerCustomEditor(Rank.class, new RankPropertyEditor());
    binder.registerCustomEditor(PresenceAbsenceTerm.class, new TermBasePropertyEditor<PresenceAbsenceTerm>(termService));
}
Also used : MatchModePropertyEditor(eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor) PresenceAbsenceTerm(eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm) NamedArea(eu.etaxonomy.cdm.model.location.NamedArea) RankPropertyEditor(eu.etaxonomy.cdm.remote.editor.RankPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 2 with MatchModePropertyEditor

use of eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor in project cdmlib by cybertaxonomy.

the class TaxonPortalController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(NamedArea.class, new NamedAreaPropertyEditor());
    binder.registerCustomEditor(MatchMode.class, new MatchModePropertyEditor());
    binder.registerCustomEditor(Class.class, new CdmTypePropertyEditor());
    binder.registerCustomEditor(UuidList.class, new UUIDListPropertyEditor());
    binder.registerCustomEditor(DefinedTermBaseList.class, new TermBaseListPropertyEditor<>(termService));
}
Also used : NamedAreaPropertyEditor(eu.etaxonomy.cdm.remote.editor.NamedAreaPropertyEditor) MatchModePropertyEditor(eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor) CdmTypePropertyEditor(eu.etaxonomy.cdm.remote.editor.CdmTypePropertyEditor) UUIDListPropertyEditor(eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 3 with MatchModePropertyEditor

use of eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor in project cdmlib by cybertaxonomy.

the class AbstractIdentifiableController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(MatchMode.class, new MatchModePropertyEditor());
}
Also used : MatchModePropertyEditor(eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 4 with MatchModePropertyEditor

use of eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor in project cdmlib by cybertaxonomy.

the class AbstractIdentifiableListController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(MatchMode.class, new MatchModePropertyEditor());
}
Also used : MatchModePropertyEditor(eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Aggregations

MatchModePropertyEditor (eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor)4 InitBinder (org.springframework.web.bind.annotation.InitBinder)4 PresenceAbsenceTerm (eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm)1 NamedArea (eu.etaxonomy.cdm.model.location.NamedArea)1 CdmTypePropertyEditor (eu.etaxonomy.cdm.remote.editor.CdmTypePropertyEditor)1 NamedAreaPropertyEditor (eu.etaxonomy.cdm.remote.editor.NamedAreaPropertyEditor)1 RankPropertyEditor (eu.etaxonomy.cdm.remote.editor.RankPropertyEditor)1 UUIDListPropertyEditor (eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor)1