org.lobobrowser.clientlet
Class SimpleComponentContent

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

public class SimpleComponentContent
extends AbstractComponentContent


Constructor Summary
SimpleComponentContent(java.awt.Component component)
           
SimpleComponentContent(java.awt.Component component, java.lang.String title, java.lang.String sourceCode)
           
 
Method Summary
 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.String getSourceCode()
          Gets the source code associated with the content.
 java.lang.String getTitle()
           
 
Methods inherited from class org.lobobrowser.clientlet.AbstractComponentContent
addNotify, getContentObject, getDescription, getMimeType, removeNotify, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleComponentContent

public SimpleComponentContent(java.awt.Component component,
                              java.lang.String title,
                              java.lang.String sourceCode)

SimpleComponentContent

public SimpleComponentContent(java.awt.Component component)
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
Overrides:
canCopy in class AbstractComponentContent

copy

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

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

getComponent

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

getSourceCode

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

Specified by:
getSourceCode in interface ComponentContent
Specified by:
getSourceCode in class AbstractComponentContent

getTitle

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


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