Interface IConverterLocator

All Superinterfaces:
IClusterable, Serializable
All Known Implementing Classes:
AbstractCheckSelector, AbstractChoice, AbstractErrorPage, AbstractItem, AbstractLink, AbstractOutputTransformerContainer, AbstractPageableView, AbstractRepeater, AbstractSingleSelectChoice, AbstractSubmitLink, AbstractTextComponent, AccessDeniedPage, AjaxButton, AjaxCheckBox, AjaxFallbackButton, AjaxFallbackLink, AjaxLink, AjaxPagingNavigation, AjaxPagingNavigationIncrementLink, AjaxPagingNavigationLink, AjaxPagingNavigator, AjaxSubmitLink, Audio, AutoLabelResolver.AutoLabel, AutoLinkResolver.AutolinkBookmarkablePageLink, Body, BookmarkablePageLink, Border, Border.BorderBodyContainer, BorderPanel, BrowserInfoForm, BrowserInfoPage, Button, Check, CheckBox, CheckBoxMultipleChoice, CheckboxMultipleChoiceSelector, CheckBoxSelector, CheckGroup, CheckGroupSelector, ClientSideImageMap, Component, ComponentFeedbackPanel, ContextImage, ConverterLocator, DataView, DataViewBase, DownloadLink, DropDownChoice, EmailTextField, EmptyPanel, Enclosure, EnclosureContainer, EnumLabel, ExceptionErrorPage, ExternalImage, ExternalLink, ExternalSource, FeedbackPanel, FencedFeedbackPanel, FileUploadField, Form, FormComponent, FormComponentFeedbackBorder, FormComponentFeedbackIndicator, FormComponentLabel, FormComponentPanel, Fragment, GenericPanel, GenericWebMarkupContainer, GenericWebPage, GridView, HeaderPartContainer, HeaderResponseContainer, HiddenField, HtmlHeaderContainer, HtmlHeaderItemsContainer, Image, ImageButton, Include, InlineEnclosure, InlineFrame, InlineImage, InternalErrorPage, Item, Label, LabeledWebMarkupContainer, Link, ListChoice, ListItem, ListMultipleChoice, ListView, Loop, LoopItem, MarkupContainer, MediaComponent, MockHomePage, MultiFileUploadField, MultiLineLabel, NonCachingImage, NoopOutputTransformerContainer, NumberTextField, OddEvenItem, OddEvenListItem, Page, PageableListView, PageExpiredErrorPage, PageView, PagingNavigation, PagingNavigationIncrementLink, PagingNavigationLink, PagingNavigator, Panel, PasswordTextField, Picture, PopupCloseLink, PopupCloseLink.ClosePopupPage, PropertyListView, Radio, RadioChoice, RadioGroup, RangeTextField, RedirectPage, RefreshingView, RepeatingView, RequiredTextField, ResourceLink, SimpleFormComponentLabel, Source, Source, StatelessForm, StatelessLink, SubmitLink, TextArea, TextField, Track, TransparentWebMarkupContainer, UrlTextField, Video, WebComponent, WebMarkupContainer, WebPage, XsltOutputTransformerContainer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Locates the proper converter instance for a given type. Classes that implement this interface must return the right converter for the given class type. Instances are created by IConverterLocator, which can be configured using Application.newConverterLocator().
Author:
jcompagner The converter object type
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <C> IConverter<C>
    Returns the Converter for the class that is given.
  • Method Details

    • getConverter

      <C> IConverter<C> getConverter(Class<C> type)
      Returns the Converter for the class that is given.
      Type Parameters:
      C - The object to convert from and to String
      Parameters:
      type -
      Returns:
      The converter for the given type.