Package org.onosproject.ui
Class UiExtension
- java.lang.Object
- 
- org.onosproject.ui.UiExtension
 
- 
 public final class UiExtension extends Object Immutable representation of a user interface extension.Note that the UiExtension.Builderclass is used to create a user interface extension instance, and that these instances are immutable.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUiExtension.BuilderUI Extension Builder.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamcss()Returns input stream containing CSS inclusion statements.InputStreamjs()Returns input stream containing JavaScript inclusion statements.List<LionBundle>lionBundles()Returns the list of localization bundles that this extension is contributing.UiMessageHandlerFactorymessageHandlerFactory()Returns message handler factory, if one was defined.InputStreamresource(String viewId, String path)Returns input stream containing specified view-specific resource.UiTopo2OverlayFactorytopo2OverlayFactory()Returns the topology-2 overlay factory, if one was defined.UiTopoMapFactorytopoMapFactory()Returns the topology map factory, if one was defined.UiTopoOverlayFactorytopoOverlayFactory()Returns the topology overlay factory, if one was defined.List<UiView>views()Returns list of user interface views contributed by this extension.
 
- 
- 
- 
Method Detail- 
csspublic InputStream css() Returns input stream containing CSS inclusion statements.- Returns:
- CSS inclusion statements
 
 - 
jspublic InputStream js() Returns input stream containing JavaScript inclusion statements.- Returns:
- JavaScript inclusion statements
 
 - 
viewspublic List<UiView> views() Returns list of user interface views contributed by this extension.- Returns:
- contributed view descriptors
 
 - 
lionBundlespublic List<LionBundle> lionBundles() Returns the list of localization bundles that this extension is contributing.- Returns:
- contributed localization bundles
 
 - 
resourcepublic InputStream resource(String viewId, String path) Returns input stream containing specified view-specific resource.- Parameters:
- viewId- view identifier
- path- resource path, relative to the view directory
- Returns:
- resource input stream
 
 - 
messageHandlerFactorypublic UiMessageHandlerFactory messageHandlerFactory() Returns message handler factory, if one was defined.- Returns:
- message handler factory
 
 - 
topoOverlayFactorypublic UiTopoOverlayFactory topoOverlayFactory() Returns the topology overlay factory, if one was defined.- Returns:
- topology overlay factory
 
 - 
topo2OverlayFactorypublic UiTopo2OverlayFactory topo2OverlayFactory() Returns the topology-2 overlay factory, if one was defined.- Returns:
- topology-2 overlay factory
 
 - 
topoMapFactorypublic UiTopoMapFactory topoMapFactory() Returns the topology map factory, if one was defined.- Returns:
- topology map factory
 
 
- 
 
-