// Path: android/YotaCast/yotaphone_titanium_sdk/gen/com/yotadevices/sdk/R.java
// public final class R {
// }


import com.yotadevices.sdk.R;
import android.app.PendingIntent;
import android.content.Context;
import android.widget.RemoteViews;
package com.yotadevices.sdk.template;



/**
 * Created by Alexei.Sazonov on 21.05.2014.
 */
public class TextAndButtonWidgetBuilder extends WidgetBuilder {
    private CharSequence mText;
    private CharSequence mButtonText;
    private PendingIntent mOnButtonClick;

    public CharSequence getText() {
        return mText;
    }

    public TextAndButtonWidgetBuilder setText(CharSequence mText) {
        this.mText = mText;
        return this;
    }

    @Override
    public RemoteViews apply(Context context) {
        RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.template_widget_text_and_button);
        remoteViews.setTextViewText(R.id.template_widget_text, mText);
        remoteViews.setTextViewText(R.id.template_widget_button, mButtonText);
// Path: android/YotaCast/yotaphone_titanium_sdk/gen/com/yotadevices/sdk/R.java
// public final class R {
// }


// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/template/TextAndButtonWidgetBuilder.java
import com.yotadevices.sdk.R;
import android.app.PendingIntent;
import android.content.Context;
import android.widget.RemoteViews;

package com.yotadevices.sdk.template;



/**
 * Created by Alexei.Sazonov on 21.05.2014.
 */
public class TextAndButtonWidgetBuilder extends WidgetBuilder {
    private CharSequence mText;
    private CharSequence mButtonText;
    private PendingIntent mOnButtonClick;

    public CharSequence getText() {
        return mText;
    }

    public TextAndButtonWidgetBuilder setText(CharSequence mText) {
        this.mText = mText;
        return this;
    }

    @Override
    public RemoteViews apply(Context context) {
        RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.template_widget_text_and_button);
        remoteViews.setTextViewText(R.id.template_widget_text, mText);
        remoteViews.setTextViewText(R.id.template_widget_button, mButtonText);
        remoteViews.setOnClickPendingIntent(R.id.template_widget_button, mOnButtonClick);