org.lobobrowser.clientlet
Class AbstractComponentContent

java.lang.Object
  extended by org.lobobrowser.clientlet.AbstractComponentContent
All Implemented Interfaces:
ComponentContent
Direct Known Subclasses:
SimpleComponentContent

public abstract class AbstractComponentContent
extends java.lang.Object
implements ComponentContent

Abstract implementation of ComponentContent. It is recommended that ComponentContent implementations extend this class for forward compatibility.


Constructor Summary
AbstractComponentContent()
           
 
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.
abstract  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 ComponentContent.getContentObject().
abstract  java.lang.String getSourceCode()
          Gets the source code associated with the content.
abstract  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractComponentContent

public AbstractComponentContent()
Method Detail

canCopy

public boolean canCopy()
Description copied from interface: ComponentContent
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.

Specified by:
canCopy in interface ComponentContent

copy

public boolean copy()
Description copied from interface: ComponentContent
Copies content to the clipboard.

Specified by:
copy in interface ComponentContent
Returns:
True if the operation succeeded.

getComponent

public abstract java.awt.Component getComponent()
Specified by:
getComponent in interface ComponentContent

getSourceCode

public abstract java.lang.String getSourceCode()
Description copied from interface: ComponentContent
Gets the source code associated with the content.

Specified by:
getSourceCode in interface ComponentContent

getTitle

public abstract java.lang.String getTitle()
Specified by:
getTitle in interface ComponentContent

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ComponentContent

addNotify

public void addNotify()
Description copied from interface: ComponentContent
Called after the content has been added to a container for display.

Specified by:
addNotify in interface ComponentContent

removeNotify

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

Specified by:
removeNotify in interface ComponentContent

getContentObject

public java.lang.Object getContentObject()
Description copied from interface: ComponentContent
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.

Specified by:
getContentObject in interface ComponentContent

getMimeType

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

Specified by:
getMimeType in interface ComponentContent

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Description copied from interface: ComponentContent
Sets a property of the content. Property names are implementation-dependent.

Specified by:
setProperty in interface ComponentContent


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