Class ViewInfo

java.lang.Object
ro.sync.exml.workspace.api.standalone.ViewInfo

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class ViewInfo extends Object
Information about a view.
Since:
11.2
  • Constructor Details

    • ViewInfo

      public ViewInfo(String viewID, JComponent component, String title, Icon icon)
      Constructor
      Parameters:
      viewID - The unique view ID
      component - The component which will be placed inside
      title - Title for the view
      icon - The view's icon
  • Method Details

    • getViewID

      public String getViewID()
      Gets the ID of the view.
      Returns:
      The ID of the view.
    • getComponent

      public JComponent getComponent()
      Get the current component this view will display
      Returns:
      Returns the component.
    • getTitle

      public String getTitle()
      Get the view title
      Returns:
      Returns the title.
    • setComponent

      public void setComponent(JComponent component)
      Set a new component to be displayed in the view
      Parameters:
      component - The component to set.
    • setTitle

      public void setTitle(String title)
      Set a new view title.
      Parameters:
      title - The title to set.
    • getIcon

      public Icon getIcon()
      Get the current view icon
      Returns:
      Returns the icon.
    • setIcon

      public void setIcon(Icon icon)
      Set the current view icon
      Parameters:
      icon - The icon to set.
    • isCustomized

      public boolean isCustomized()
      Check if the view information has been customized.
      Returns:
      true if the view information has been customized.