| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nokia.mid.ui.BrowserAdapter
public abstract class BrowserAdapter
Abstract adapter class for receiving BrowserItem events
| Field Summary | |
|---|---|
| protected  BrowserItem | item | 
| Constructor Summary | |
|---|---|
| BrowserAdapter(BrowserItem item)Creates a new BrowserAdapter and sets it as the listener of the BrowserItem | |
| Method Summary | |
|---|---|
|  void | onConfirmDialog(java.lang.String message,
                java.lang.String leftText,
                java.lang.String rightText)This function will be called when the browser widget needs to display a confirm dialog By default confirmDialogDone(true) is called | 
|  void | onFileSelectDialog()This function will be called when the browser widget needs to display a file select dialog By default fileSelectDialogDone("") is called | 
|  void | onHttpStatusCode(int statusCode)This method is called when an http status code is received Codes: 1 - no error happened 2 - error happened, but don't care Other http error codes like 100, 101, 201, 202, etc. | 
|  void | onItemSelected(java.lang.String name,
               int dataSize,
               java.lang.String mimeType)This function will be called when the user tries to interact with an item It passes in the properties of the item, currently it works with images only and the image can be saved by calling saveSelectedImage on the BrowserItem | 
|  void | onNoteDialog(java.lang.String message)This function will be called when the browser widget needs to display a note dialog By default noteDialogDone will be called | 
|  void | onPageChanged()This method is called when the browser has loaded a new page It is not necessarily called at the same time as onProgressEnd. | 
|  void | onPageInteraction()This method is called when the user interacts with the page | 
|  void | onProgressChanged(int progress)This method is called to inform about page loading progress | 
|  void | onProgressEnd()This method is called when the browser is finished loading the page | 
|  void | onProgressStart()This method is called when the browser starts downloading | 
|  void | onSecurityChanged(boolean securePage)This method is called when moving into or away from secure page | 
|  void | onSelectListDialog(java.lang.String title,
                   boolean multiSelect,
                   int[] idList,
                   boolean[] selectedList,
                   java.lang.String[] textList)This function will be called when the browser widget needs to display a select list dialog By default selectListDialogDone(null) is called | 
|  void | onUploadEnd()This method is called when the browser has finished uploading data | 
|  void | onUploadStart()This method is called when the browser is uploading data like when posting form data | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected BrowserItem item
| Constructor Detail | 
|---|
public BrowserAdapter(BrowserItem item)
item - the item this adapter is associated with| Method Detail | 
|---|
public void onProgressStart()
onProgressStart in interface BrowserListenerpublic void onProgressChanged(int progress)
onProgressChanged in interface BrowserListenerprogress - the progress in %public void onProgressEnd()
onProgressEnd in interface BrowserListenerpublic void onUploadStart()
onUploadStart in interface BrowserListenerpublic void onUploadEnd()
onUploadEnd in interface BrowserListenerpublic void onSecurityChanged(boolean securePage)
onSecurityChanged in interface BrowserListenersecurePage - true if the current page is a secure page, false if not.public void onPageChanged()
onPageChanged in interface BrowserListenerpublic void onPageInteraction()
onPageInteraction in interface BrowserListenerpublic void onHttpStatusCode(int statusCode)
onHttpStatusCode in interface BrowserListenerstatusCode - the http status code of the requestpublic void onNoteDialog(java.lang.String message)
onNoteDialog in interface BrowserListenermessage - the message to be displayed
public void onConfirmDialog(java.lang.String message,
                            java.lang.String leftText,
                            java.lang.String rightText)
onConfirmDialog in interface BrowserListenermessage - to be displayedleftText - the left button's text to be displayedrightText - the right button's text to be displayedpublic void onFileSelectDialog()
onFileSelectDialog in interface BrowserListener
public void onSelectListDialog(java.lang.String title,
                               boolean multiSelect,
                               int[] idList,
                               boolean[] selectedList,
                               java.lang.String[] textList)
onSelectListDialog in interface BrowserListenertitle - the title of the dialogmultiSelect - if multiple items can be selectedidList - the ids of the itemsselectedList - the statuses of the items weather they are selectedtextList - the texts of the items
public void onItemSelected(java.lang.String name,
                           int dataSize,
                           java.lang.String mimeType)
onItemSelected in interface BrowserListenername - the name of the item filedataSize - the size of the itemmimeType - the Mime-Type of the item| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||