org.lobobrowser.clientlet
Interface ComponentContent

All Known Implementing Classes:
AbstractComponentContent, SimpleComponentContent

public interface ComponentContent

Content set by a Clientlet. To ensure backward compatibility, it is recommended that AbstractComponentContent be extended instead of implementing this interface whenever possible.

See Also:
ClientletContext.setResultingContent(ComponentContent)

Method Summary
 void addNotify()
          Called after the content has been added to a container for display.
 boolean canCopy()
          Determines whether it's possible to copy content to the clipboard.
 boolean copy()
          Copies content to the clipboard.
 java.awt.Component getComponent()
           
 java.lang.Object getContentObject()
          Gets an implementation-dependent object that represents the content.
 java.lang.String getDescription()
           
 java.lang.String getMimeType()
          Gets a mime-type that can be said to be associated with the object returned by getContentObject().
 java.lang.String getSourceCode()
          Gets the source code associated with the content.
 java.lang.String getTitle()
           
 void removeNotify()
          Called after the content has been removed from the display container.
 void setProperty(java.lang.String name, java.lang.Object value)
          Sets a property of the content.
 

Method Detail

getComponent

java.awt.Component getComponent()

getTitle

java.lang.String getTitle()

getDescription

java.lang.String getDescription()

canCopy

boolean canCopy()
Determines whether it's possible to copy content to the clipboard. This method can be used by the platform to determine if a menu item should be enabled.


copy

boolean copy()
Copies content to the clipboard.

Returns:
True if the operation succeeded.

getSourceCode

java.lang.String getSourceCode()
Gets the source code associated with the content.


addNotify

void addNotify()
Called after the content has been added to a container for display.


removeNotify

void removeNotify()
Called after the content has been removed from the display container. This method may be used to dispose associated resources.


getContentObject

java.lang.Object getContentObject()
Gets an implementation-dependent object that represents the content. For example, if the content is HTML, the object returned by this method may be of type HTMLDocument.


getMimeType

java.lang.String getMimeType()
Gets a mime-type that can be said to be associated with the object returned by getContentObject(). This may differ from the mime-type of the response that produced the content, and it may also be null.


setProperty

void setProperty(java.lang.String name,
                 java.lang.Object value)
Sets a property of the content. Property names are implementation-dependent.

Parameters:
name -
value -


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]