treebolic
Interface IContext

All Known Implementing Classes:
Application, Context, Controller, Treebolic

public interface IContext

Context interface (to be implemented by the application/applet/window that is hosting the widget

Author:
Bernard Bou

Method Summary
 java.net.URL getBase()
          Get base URL
 java.net.URL getHtmlDocumentBase()
          Get embedding HTML document base URL
 java.awt.Image getImage(java.net.URL thisURL)
          Get image
 java.net.URL getImagesBase()
          Get images base URL
 java.lang.String getParameter(java.lang.String thisName)
          Get parameter
 boolean linkTo(java.lang.String thisLinkUrl, java.lang.String thisLinkTarget)
          Navigate to link
 void showStatus(java.lang.String thisString)
          Show status
 

Method Detail

getBase

java.net.URL getBase()
Get base URL

Returns:
base url

getImagesBase

java.net.URL getImagesBase()
Get images base URL

Returns:
images base url

getHtmlDocumentBase

java.net.URL getHtmlDocumentBase()
Get embedding HTML document base URL

Returns:
base url

getParameter

java.lang.String getParameter(java.lang.String thisName)
Get parameter

Parameters:
thisName - parameter name
Returns:
parameter value

getImage

java.awt.Image getImage(java.net.URL thisURL)
Get image

Parameters:
thisURL - url
Returns:
image

linkTo

boolean linkTo(java.lang.String thisLinkUrl,
               java.lang.String thisLinkTarget)
Navigate to link

Parameters:
thisLinkUrl - link url
thisLinkTarget - link target
Returns:
true if the context handles the link, false means the current provider will re-init () with the link as source

showStatus

void showStatus(java.lang.String thisString)
Show status

Parameters:
thisString - message