org.scijava.widget
Class DefaultWidgetService

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.service.AbstractService
              extended by org.scijava.plugin.AbstractPTService<PT>
                  extended by org.scijava.plugin.AbstractTypedService<DT,PT>
                      extended by org.scijava.plugin.AbstractWrapperService<WidgetModel,InputWidget<?,?>>
                          extended by org.scijava.widget.DefaultWidgetService
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, PTService<InputWidget<?,?>>, RichPlugin, SciJavaPlugin, TypedService<WidgetModel,InputWidget<?,?>>, WrapperService<WidgetModel,InputWidget<?,?>>, Prioritized, SciJavaService, Service, Typed<WidgetModel>, WidgetService

public class DefaultWidgetService
extends AbstractWrapperService<WidgetModel,InputWidget<?,?>>
implements WidgetService

Default service for managing available InputWidgets.

Author:
Curtis Rueden

Constructor Summary
DefaultWidgetService()
           
 
Method Summary
 InputWidget<?,?> create(WidgetModel model)
          Creates a new plugin instance wrapping the given associated data object.
 Class<InputWidget<?,?>> getPluginType()
          Gets the type of plugins managed by this service.
 Class<WidgetModel> getType()
          Gets the type associated with the object.
 
Methods inherited from class org.scijava.plugin.AbstractWrapperService
initialize, supports
 
Methods inherited from class org.scijava.plugin.AbstractPTService
getPlugins, getPluginService
 
Methods inherited from class org.scijava.service.AbstractService
dispose, getContext, registerEventHandlers, setContext, toString
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority
 
Methods inherited from class org.scijava.AbstractContextual
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService
 
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 
Methods inherited from interface org.scijava.Typed
supports
 

Constructor Detail

DefaultWidgetService

public DefaultWidgetService()
Method Detail

create

public InputWidget<?,?> create(WidgetModel model)
Description copied from interface: WrapperService
Creates a new plugin instance wrapping the given associated data object.

Specified by:
create in interface WrapperService<WidgetModel,InputWidget<?,?>>
Specified by:
create in interface WidgetService
Overrides:
create in class AbstractWrapperService<WidgetModel,InputWidget<?,?>>

getPluginType

public Class<InputWidget<?,?>> getPluginType()
Description copied from interface: PTService
Gets the type of plugins managed by this service.

Specified by:
getPluginType in interface PTService<InputWidget<?,?>>

getType

public Class<WidgetModel> getType()
Description copied from interface: Typed
Gets the type associated with the object.

Specified by:
getType in interface Typed<WidgetModel>


Copyright © 2009–2014 SciJava. All rights reserved.