SimpleSPostView.java :  » UnTagged » snaio » edu » uta » cse » snaio » core » model » post » Android Open Source

Android Open Source » UnTagged » snaio 
snaio » edu » uta » cse » snaio » core » model » post » SimpleSPostView.java
/*
Copyright (c) 2010, SNAIO team
All rights reserved.
 */
package edu.uta.cse.snaio.core.model.post;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * The Class SimpleSPostView.
 *
 * @author Tuan Nguyen - tnguyen@mavs.uta.edu
 */
public class SimpleSPostView extends SPostView {

  /** The text data. */
  protected PostTextView textData;
  
  /** The reply component. */
  private SReplyComponent replyComponent;
  
  protected IconImageView imgData;

  /**
   * Instantiates a new simple s post view.
   *
   * @param context the context
   * @param post the post
   */
  public SimpleSPostView(Context context, IPost post) {
    super(context, post);
    
    imgData = new IconImageView(context);
    
    textData = new PostTextView(context);
    setReplyComponent(new SReplyComponent(context, post));
    setOrientation(LinearLayout.VERTICAL);
    addView(imgData);
    addView(textData);
    addView(replyComponent);
  }

  /**
   * Gets the reply component.
   *
   * @return the replyComponent
   */
  public SReplyComponent getReplyComponent() {
    return replyComponent;
  }

  /**
   * Gets the text data.
   *
   * @return the textData
   */
  public TextView getTextData() {
    return textData;
  }

  /**
   * Sets the reply component.
   *
   * @param replyComponent the replyComponent to set
   */
  public void setReplyComponent(SReplyComponent replyComponent) {
    this.replyComponent = replyComponent;
  }

  /* (non-Javadoc)
   * @see edu.uta.cse.snaio.core.model.post.SPostView#update(edu.uta.cse.snaio.core.model.post.SPostView)
   */
  @Override
  public void update(SPostView postView) {
    super.update(postView);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.