public abstract class ImageDialog
extends java.lang.Object
implements android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnCancelListener
Modifier and Type | Field and Description |
---|---|
protected android.graphics.Bitmap |
_bmp |
protected android.content.DialogInterface.OnClickListener |
_cancelClick |
protected android.content.Context |
_context |
protected boolean |
_created |
protected android.app.AlertDialog |
_dialog |
protected int |
_height |
protected android.widget.ImageView |
_imgView |
protected java.io.File |
_inFile |
protected android.widget.ProgressBar |
_loader |
protected boolean |
_loadingImg |
protected java.lang.Runnable |
_onCancel |
protected android.view.View |
_root |
protected android.widget.TextView |
_title |
protected android.os.Handler |
_viewHandler |
protected int |
_width |
Constructor and Description |
---|
ImageDialog(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginSetup() |
protected void |
cleanup() |
void |
dispose() |
protected abstract android.content.Context |
getLayoutContext() |
protected abstract int |
getLayoutId() |
protected abstract java.lang.String |
getTitle() |
protected void |
initView() |
protected android.graphics.Bitmap |
loadBitmap() |
protected abstract void |
loadFinished() |
void |
onCancel(android.content.DialogInterface dialog) |
void |
onDismiss(android.content.DialogInterface dialog) |
protected void |
onViewCreated() |
void |
setOnCancelListener(java.lang.Runnable r) |
void |
setTitle(int resId) |
void |
setTitle(java.lang.String title) |
protected void |
setupDialogButtons(android.app.AlertDialog.Builder adb)
Set dialog buttons text and actions
|
void |
setupImage(android.graphics.Bitmap bmp) |
void |
setupImage(java.io.File inFile) |
protected void |
setupView() |
void |
show() |
protected final android.content.Context _context
protected android.view.View _root
protected android.widget.TextView _title
protected android.widget.ImageView _imgView
protected android.widget.ProgressBar _loader
protected android.graphics.Bitmap _bmp
protected java.io.File _inFile
protected int _width
protected int _height
protected boolean _loadingImg
protected boolean _created
protected android.os.Handler _viewHandler
protected java.lang.Runnable _onCancel
protected android.app.AlertDialog _dialog
protected final android.content.DialogInterface.OnClickListener _cancelClick
protected void initView()
protected void setupView()
public void show()
protected void onViewCreated()
public void onCancel(android.content.DialogInterface dialog)
onCancel
in interface android.content.DialogInterface.OnCancelListener
public void onDismiss(android.content.DialogInterface dialog)
onDismiss
in interface android.content.DialogInterface.OnDismissListener
public void dispose()
protected void setupDialogButtons(android.app.AlertDialog.Builder adb)
adb
- Dialog builderpublic void setOnCancelListener(java.lang.Runnable r)
protected abstract java.lang.String getTitle()
protected abstract int getLayoutId()
protected abstract android.content.Context getLayoutContext()
protected abstract void loadFinished()
protected android.graphics.Bitmap loadBitmap()
public void setTitle(int resId)
public void setTitle(java.lang.String title)
public void setupImage(android.graphics.Bitmap bmp)
public void setupImage(java.io.File inFile)
protected void beginSetup()
protected void cleanup()