Home | History | Annotate | Download | only in xmladapters

Lines Matching defs:transformation

103  * <a href="#xml-cursor-adapter-bind-data-types">transformation</a> classes.
123 * <a href="#xml-cursor-adapter-bind-data-transformation">data transformations</a> can
139 * <a href="#xml-cursor-adapter-bind-data-transformation">data transformations</a> children
165 * <a name="xml-cursor-adapter-bind-transformation"></a>
167 * <p>When defining a data binding you can specify an optional transformation by using one
179 * <a name="xml-cursor-adapter-bind-transformation-map" />
191 * <a name="xml-cursor-adapter-bind-transformation-transform"></a>
196 * <li><code>android:withExpression</code>: The transformation expression. The expression is
198 * transformation each column name is replaced by its value. All columns must have been
268 * <p>A binder is provided with a cursor transformation which may or may not be used
269 * to transform the value retrieved from the cursor. The transformation is guaranteed
270 * to never be null so it's always safe to apply the transformation.</p>
286 * <p>The transformation associated with this binder. This transformation is never
298 * @param transformation The transformation associated with this binder. This
299 * transformation may or may not be applied by the binder and is guaranteed
302 public CursorBinder(Context context, CursorTransformation transformation) {
304 mTransformation = transformation;
311 * cursor transformation.</p>
337 * <p>The context associated with this transformation.</p>
342 * <p>Creates a new Cursor transformation.</p>
344 * @param context The context associated with this transformation.
351 * <p>Transforms the specified Cursor column into a String. The transformation
353 * as the identity transformation) or manipulate the content. For instance,
354 * a transformation can perform text substitutions or concatenate other
725 CursorTransformation transformation = mIdentity;
742 transformation = findTransformation();
744 if (!(transformation instanceof MapTransformation)) {
745 transformation = new MapTransformation(context);
747 findMap(((MapTransformation) transformation), isDrawable);
755 return new StringBinder(context, transformation);
757 return new TagBinder(context, transformation);
759 return new ImageBinder(context, transformation);
761 return new ImageUriBinder(context, transformation);
763 return new DrawableBinder(context, transformation);
765 return createBinder(type, transformation);
769 private CursorBinder createBinder(String type, CursorTransformation transformation) {
777 return (CursorBinder) c.newInstance(mContext, transformation);
799 private void findMap(MapTransformation transformation, boolean drawable) {
819 transformation.addStringMapping(from, to);
827 transformation.addResourceMapping(from, to);
835 CursorTransformation transformation = null;
843 transformation = createExpressionTransformation(expression);
849 transformation = (CursorTransformation) c.newInstance(mContext);
871 if (transformation == null) {
877 return transformation;
995 * Identity transformation, returns the content of the specified column as a String,
996 * without performing any manipulation. This is used when no transformation is specified.
1010 * An expression transformation is a simple template based replacement utility.
1111 * A map transformation offers a simple mapping between specified String values
1155 public StringBinder(Context context, CursorTransformation transformation) {
1156 super(context, transformation);
1174 public ImageBinder(Context context, CursorTransformation transformation) {
1175 super(context, transformation);
1191 public TagBinder(Context context, CursorTransformation transformation) {
1192 super(context, transformation);
1207 public ImageUriBinder(Context context, CursorTransformation transformation) {
1208 super(context, transformation);
1226 public DrawableBinder(Context context, CursorTransformation transformation) {
1227 super(context, transformation);