Package io.guise.framework.component
Class AbstractLabel.DefaultTransferable
java.lang.Object
io.guise.framework.component.transfer.AbstractTransferable<LabelComponent>
io.guise.framework.component.AbstractLabel.DefaultTransferable
- All Implemented Interfaces:
Transferable<LabelComponent>
- Enclosing class:
- AbstractLabel
protected static class AbstractLabel.DefaultTransferable
extends AbstractTransferable<LabelComponent>
The default transferable object for a label.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.globalmentor.net.MediaType[]
transfer
(com.globalmentor.net.MediaType contentType) Transfers data using the given content type.Methods inherited from class io.guise.framework.component.transfer.AbstractTransferable
canTransfer, getSource, transfer
-
Constructor Details
-
DefaultTransferable
Source constructor.- Parameters:
source
- The source of the transferable data.- Throws:
NullPointerException
- if the provided source isnull
.
-
-
Method Details
-
getContentTypes
public com.globalmentor.net.MediaType[] getContentTypes()This implementation returns the content type of the label.
- Returns:
- The content types available for this transfer.
-
transfer
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
.
-