org.lobobrowser.clientlet
Class SimpleComponentContent
java.lang.Object
org.lobobrowser.clientlet.AbstractComponentContent
org.lobobrowser.clientlet.SimpleComponentContent
- All Implemented Interfaces:
- ComponentContent
public class SimpleComponentContent
- extends AbstractComponentContent
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleComponentContent
public SimpleComponentContent(java.awt.Component component,
java.lang.String title,
java.lang.String sourceCode)
SimpleComponentContent
public SimpleComponentContent(java.awt.Component component)
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
Copyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]