Package org.onosproject.ui
Interface UiExtensionService
-
public interface UiExtensionService
Service for registering user interface extensions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<UiExtension>
getExtensions()
Returns the list of registered user interface extensions.default java.util.List<UiGlyph>
getGlyphs()
Returns the list of registered user interface glyphs.LionBundle
getNavLionBundle()
Returns the navigation pane localization bundle.UiExtension
getViewExtension(java.lang.String viewId)
Returns the user interface extension that contributed the specified view.void
refreshModel()
Refreshes the backing model.void
register(UiExtension extension)
Registers the specified user interface extension.default void
register(UiGlyphFactory factory)
Registers the specified user interface glyph factory.void
unregister(UiExtension extension)
Unregisters the specified user interface extension.default void
unregister(UiGlyphFactory factory)
Unregisters the specified user interface glyph factory.
-
-
-
Method Detail
-
register
void register(UiExtension extension)
Registers the specified user interface extension.- Parameters:
extension
- UI extension to register
-
unregister
void unregister(UiExtension extension)
Unregisters the specified user interface extension.- Parameters:
extension
- UI extension to unregister
-
register
default void register(UiGlyphFactory factory)
Registers the specified user interface glyph factory.- Parameters:
factory
- UI glyph factory to register
-
unregister
default void unregister(UiGlyphFactory factory)
Unregisters the specified user interface glyph factory.- Parameters:
factory
- UI glyph factory to unregister
-
getExtensions
java.util.List<UiExtension> getExtensions()
Returns the list of registered user interface extensions.- Returns:
- list of extensions
-
getViewExtension
UiExtension getViewExtension(java.lang.String viewId)
Returns the user interface extension that contributed the specified view.- Parameters:
viewId
- view identifier- Returns:
- contributing user interface extension
-
getGlyphs
default java.util.List<UiGlyph> getGlyphs()
Returns the list of registered user interface glyphs.- Returns:
- list of glyphs
-
getNavLionBundle
LionBundle getNavLionBundle()
Returns the navigation pane localization bundle.- Returns:
- the navigation localization bundle
-
refreshModel
void refreshModel()
Refreshes the backing model.
-
-