FileDocCategorySizeDatePackage
LayoutResult.javaAPI DocAndroid 1.5 API3247Wed May 06 22:42:02 BST 2009com.android.layoutlib.bridge

LayoutResult

public final class LayoutResult extends Object implements com.android.layoutlib.api.ILayoutResult
Implementation of {@link ILayoutResult}

Fields Summary
private final ILayoutViewInfo
mRootView
private final BufferedImage
mImage
private final int
mSuccess
private final String
mErrorMessage
Constructors Summary
public LayoutResult(ILayoutViewInfo rootView, BufferedImage image)
Creates a {@link #SUCCESS} {@link ILayoutResult} with the specified params

param
rootView
param
image

        mSuccess = SUCCESS;
        mErrorMessage = null;
        mRootView = rootView;
        mImage = image;
    
public LayoutResult(int code, String message)
Creates a LayoutResult with a specific success code and associated message

param
code
param
message

        mSuccess = code;
        mErrorMessage = message;
        mRootView = null;
        mImage = null;
    
Methods Summary
public java.lang.StringgetErrorMessage()

        return mErrorMessage;
    
public java.awt.image.BufferedImagegetImage()

        return mImage;
    
public ILayoutViewInfogetRootView()

        return mRootView;
    
public intgetSuccess()

        return mSuccess;