Class FixedInstantEditorLabelsRenderer.FixedLabelProvider

    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canHandle​(java.lang.String editorType)
      Method used to determine if label provider is able to convert the value of underlying editor.
      java.lang.String getLabel​(java.lang.String editorType, java.lang.Object value)
      Method converting passed value to its string representation
      int getOrder()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FixedLabelProvider

        public FixedLabelProvider​(EditorContext<java.lang.Object> editorContext)
    • Method Detail

      • canHandle

        public boolean canHandle​(java.lang.String editorType)
        Description copied from interface: InstantEditorLabelProvider
        Method used to determine if label provider is able to convert the value of underlying editor. When deciding which label provider should be used, the first returning true from this method is choosen.
        Specified by:
        canHandle in interface InstantEditorLabelProvider
        Parameters:
        editorType - type of underlying editor as returned by Editor.getType()
        Returns:
        if this label provider is able to convert underlying editor's value
      • getLabel

        public java.lang.String getLabel​(java.lang.String editorType,
                                         java.lang.Object value)
        Description copied from interface: InstantEditorLabelProvider
        Method converting passed value to its string representation
        Specified by:
        getLabel in interface InstantEditorLabelProvider
        Parameters:
        editorType - type of underlying editor as returned by Editor.getType()
        value - underlying editor's value to convert
        Returns:
        string representation of value
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered