org.scijava.plugin
Interface WrapperPlugin<D>
- Type Parameters:
D
- Data type wrapped by the plugin.
- All Superinterfaces:
- Comparable<Prioritized>, Contextual, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin, Typed<D>, TypedPlugin<D>
- All Known Subinterfaces:
- ButtonWidget<U>, ChoiceWidget<U>, ColorWidget<U>, DateWidget<U>, FileWidget<U>, InputWidget<T,W>, MessageWidget<U>, NumberWidget<U>, ObjectWidget<U>, TextWidget<U>, ToggleWidget<U>
- All Known Implementing Classes:
- AbstractInputWidget, AbstractUIInputWidget, AbstractWrapperPlugin
public interface WrapperPlugin<D>
- extends TypedPlugin<D>
A plugin with a special "has-a" relationship (i.e., composition rather than
inheritance) with a single data object of a particular type.
For a concrete example, see org.scijava.widget.InputWidget
.
- Author:
- Curtis Rueden
Method Summary |
D |
get()
Gets the data object currently associated with this plugin. |
void |
set(D data)
Associates the given data object with this plugin. |
set
void set(D data)
- Associates the given data object with this plugin. It must be a compatible
object (i.e.,
Typed.supports(T)
must return true).
- Parameters:
data
- The data object to associate with the plugin.
- Throws:
IllegalArgumentException
- if the data object is not compatible.
get
D get()
- Gets the data object currently associated with this plugin.
Copyright © 2009–2014 SciJava. All rights reserved.