Interface Perspective


  • public interface Perspective
    Define a group of components which are showed in the banner. Overview, Data Laboratory and Preview are perspectives.

    Create a new Perspective

    1. Create a new module and set Perspective API, and Lookup API as dependencies.
    2. Create a new implementation of perspective and fill methods.
    3. Add @ServiceProvider annotation to your class to be found by the system, like @ServiceProvider(service = Perspective.class, position = 500).
    4. Set the position to define the order of appearance, Overview is 100, Preview is 300.
    Author:
    Mathieu Bastian
    • Method Detail

      • getDisplayName

        String getDisplayName()
        Return the name to display in the user interface.
        Returns:
        the perspective display name
      • getName

        String getName()
        Return a unique identifier for this perspective.
        Returns:
        the name of the perspective
      • getIcon

        Icon getIcon()
        Return the icon of the perspective.
        Returns:
        the perspective's icon, or null