public abstract class

SCBaseDecorator

extends Object
implements IDecorator<T extends IController<?>>
java.lang.Object
   ↳ com.c2call.sdk.pub.gui.core.decorator.SCBaseDecorator<T extends com.c2call.sdk.pub.gui.core.controller.IController<?>>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

If an IDecorator sub-classes this base class then it gets a set of convenient methods to get/set item properies. Since these methods are all public and static you can still access them without sub-classing, but less convenient.

Summary

Public Constructors
SCBaseDecorator()
Public Methods
static String getText(TextView v)
static int getVisibility(View v)
static boolean isVisible(View v)
static void setBackgroundColor(View v, int color)
static void setBackgroundResource(View v, int rid)
static void setChecked(CompoundButton v, boolean checked)
static void setClickable(View v, boolean clickable)
static void setCompoundDrawables(TextView v, Drawable left, Drawable top, Drawable right, Drawable bottom)
void setEditable(TextView v, boolean editable)
static void setEnabled(View v, boolean enabled)
static void setImageBitmap(View v, Bitmap bitmap)
static void setImageResource(View v, int rid)
static void setText(View v, CharSequence s)
static void setTextColor(TextView v, int color)
static void setTextSize(TextView v, float size)
static void setVisibility(View v, boolean isVisible)
static void setVisibility(View v, int visibility)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.c2call.sdk.pub.gui.core.decorator.IDecorator

Public Constructors

public SCBaseDecorator ()

Public Methods

public static String getText (TextView v)

public static int getVisibility (View v)

public static boolean isVisible (View v)

public static void setBackgroundColor (View v, int color)

public static void setBackgroundResource (View v, int rid)

public static void setChecked (CompoundButton v, boolean checked)

public static void setClickable (View v, boolean clickable)

public static void setCompoundDrawables (TextView v, Drawable left, Drawable top, Drawable right, Drawable bottom)

public void setEditable (TextView v, boolean editable)

public static void setEnabled (View v, boolean enabled)

public static void setImageBitmap (View v, Bitmap bitmap)

public static void setImageResource (View v, int rid)

public static void setText (View v, CharSequence s)

public static void setTextColor (TextView v, int color)

public static void setTextSize (TextView v, float size)

public static void setVisibility (View v, boolean isVisible)

public static void setVisibility (View v, int visibility)