public class FileBatchInputProvider extends AbstractHandlerPlugin<BatchInput> implements BatchInputProvider<File>
Constructor and Description |
---|
FileBatchInputProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvide(ModuleItem<?> item)
Check if a given
ModuleItem can be populated by this input provider. |
String |
getTargetWidgetStyle(ModuleItem<?> item) |
void |
populateInput(Module module,
ModuleItem<?> moduleItem,
File inputObject) |
boolean |
supports(BatchInput input)
Gets whether this object is compatible with the given data object.
|
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public boolean supports(BatchInput input)
Typed
By default, this method will return true
iff the data is assignable
to the associated type given by Typed.getType()
. But individual
implementations may have other requirements beyond class assignability.
supports
in interface Typed<BatchInput>
supports
in class AbstractTypedPlugin<BatchInput>
public boolean canProvide(ModuleItem<?> item)
BatchInputProvider
ModuleItem
can be populated by this input provider.
Implementations should make sure to not only match the type of objects, but
also respect possible widget style settings, such as files, directories,
image files only, etc.canProvide
in interface BatchInputProvider<File>
item
- the input item that needs to be populatedpublic void populateInput(Module module, ModuleItem<?> moduleItem, File inputObject)
populateInput
in interface BatchInputProvider<File>
public String getTargetWidgetStyle(ModuleItem<?> item)
getTargetWidgetStyle
in interface BatchInputProvider<File>
Copyright © 2015–2022 SciJava. All rights reserved.