|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.ClipboardManager
The ClipboardManager provides clipboard access and manages ActionConverter objects.
Usually, an application has only one ClipboardManager, which can be accessed
by calling the static method Application.getClipboardManager().
| Constructor Summary | |
ClipboardManager()
Creates a new ClipboardManager, which uses the system's default clipboard for data exchange. |
|
| Method Summary | |
Action |
getContent()
Gets the content of the clipboard. |
boolean |
isClipboardEmpty()
Returns true if the clipboard is empty. |
boolean |
isReady()
Returns true if this ClipboardManager is "ready". |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
|
void |
registerAllConverters(ActionConverter[] converters)
Registers all converts in the given array. |
void |
registerConverter(ActionConverter converter)
Registers an ActionConverter to be used with this ClipboardManager. |
void |
setContent(Action content)
Sets the content of the clipboard. |
protected Action |
toAction(Transferable transferable)
|
protected Transferable |
toTransferable(Action action)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClipboardManager()
Application.getClipboardManager().
| Method Detail |
public void registerConverter(ActionConverter converter)
converter - the converter to be registeredpublic void registerAllConverters(ActionConverter[] converters)
converters - the converts to be registered.
public void setContent(Action content)
throws ClipboardConversionException
content - the content to be set.
ClipboardConversionException
public Action getContent()
throws ClipboardConversionException
ClipboardConversionExceptionpublic boolean isClipboardEmpty()
protected Transferable toTransferable(Action action)
protected Action toAction(Transferable transferable)
public boolean isReady()
ActionConverter has been registered.
public void lostOwnership(Clipboard clipboard,
Transferable contents)
lostOwnership in interface ClipboardOwner
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||