FileDocCategorySizeDatePackage
AddNewBookmark.javaAPI DocAndroid 1.5 API2207Wed May 06 22:42:42 BST 2009com.android.browser

AddNewBookmark

public class AddNewBookmark extends android.widget.LinearLayout
Custom layout for an item representing a bookmark in the browser.

Fields Summary
private android.widget.TextView
mTextView
private android.widget.TextView
mUrlText
private android.widget.ImageView
mImageView
Constructors Summary
AddNewBookmark(android.content.Context context)
Instantiate a bookmark item, including a default favicon.

param
context The application context for the item.

        super(context);

        setWillNotDraw(false);
        LayoutInflater factory = LayoutInflater.from(context);
        factory.inflate(R.layout.add_new_bookmark, this);
        mTextView = (TextView) findViewById(R.id.title);
        mUrlText = (TextView) findViewById(R.id.url);
        mImageView = (ImageView) findViewById(R.id.favicon);
    
Methods Summary
voidcopyTo(com.android.browser.AddNewBookmark item)
Copy this BookmarkItem to item.

param
item BookmarkItem to receive the info from this BookmarkItem.

        item.mTextView.setText(mTextView.getText());
        item.mUrlText.setText(mUrlText.getText());
        item.mImageView.setImageDrawable(mImageView.getDrawable());
    
voidsetUrl(java.lang.String url)
Set the new url for the bookmark item.

param
url The new url for the bookmark item.

        mUrlText.setText(url);