org.apache.pivot.wtk
Interface ImageView.ImageBindMapping

Enclosing class:
ImageView

public static interface ImageView.ImageBindMapping

Translates between image and context data during data binding.


Nested Class Summary
static class ImageView.ImageBindMapping.Type
          Defines the supported load type mappings.
 
Method Summary
 ImageView.ImageBindMapping.Type getType()
          Returns the load type supported by this mapping.
 Image toImage(Object value)
          Converts a value from the bind context to an image representation during a Component.load(Object) operation.
 String toImageName(Object value)
          Converts a value from the bind context to an image resource name during a Component.load(Object) operation.
 URL toImageURL(Object value)
          Converts a value from the bind context to an image location during a Component.load(Object) operation.
 Object valueOf(Image image)
          Converts a text string to a value to be stored in the bind context during a Component.store(Object) operation.
 

Method Detail

getType

ImageView.ImageBindMapping.Type getType()
Returns the load type supported by this mapping.


toImage

Image toImage(Object value)
Converts a value from the bind context to an image representation during a Component.load(Object) operation.

Parameters:
value -

toImageURL

URL toImageURL(Object value)
Converts a value from the bind context to an image location during a Component.load(Object) operation.

Parameters:
value -

toImageName

String toImageName(Object value)
Converts a value from the bind context to an image resource name during a Component.load(Object) operation.

Parameters:
value -

valueOf

Object valueOf(Image image)
Converts a text string to a value to be stored in the bind context during a Component.store(Object) operation.

Parameters:
image -