Package io.guise.framework.component
Class TextControl.DefaultTransferable
- java.lang.Object
-
- io.guise.framework.component.transfer.AbstractTransferable<TextControl<?>>
-
- io.guise.framework.component.TextControl.DefaultTransferable
-
- All Implemented Interfaces:
Transferable<TextControl<?>>
- Enclosing class:
- TextControl<V>
protected static class TextControl.DefaultTransferable extends AbstractTransferable<TextControl<?>>
The default transferable object for a text control.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description DefaultTransferable(TextControl<?> source)
Source constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.globalmentor.net.ContentType[]
getContentTypes()
java.lang.Object
transfer(com.globalmentor.net.ContentType contentType)
Transfers data using the given content type.-
Methods inherited from class io.guise.framework.component.transfer.AbstractTransferable
canTransfer, getSource, transfer
-
-
-
-
Constructor Detail
-
DefaultTransferable
public DefaultTransferable(TextControl<?> source)
Source constructor.- Parameters:
source
- The source of the transferable data.- Throws:
java.lang.NullPointerException
- if the provided source isnull
.
-
-
Method Detail
-
getContentTypes
public com.globalmentor.net.ContentType[] getContentTypes()
This implementation returns the
text/plain
content type.- Returns:
- The content types available for this transfer.
-
transfer
public java.lang.Object transfer(com.globalmentor.net.ContentType contentType)
Description copied from interface:Transferable
Transfers data using the given content type.- Parameters:
contentType
- The type of data expected.- Returns:
- The transferred data, which may be
null
.
-
-