Interface ComponentFactory<T extends Component>


public interface ComponentFactory<T extends Component>
The ComponentFactory is used to create instances of the Component type T.
Author:
Paul Austin
  • Method Summary

    Modifier and Type
    Method
    Description
    Create an instance of the component.
    Get the icon for the component.
    Get the display name of the component.
    Get the tool-tip for the component.
  • Method Details

    • createComponent

      T createComponent()
      Create an instance of the component.
      Returns:
      The new component instance.
    • getName

      String getName()
      Get the display name of the component. Used in the UI as a Frame or menu title.
      Returns:
      The name.
    • getIcon

      Icon getIcon()
      Get the icon for the component.
      Returns:
      The icon.
    • getToolTip

      String getToolTip()
      Get the tool-tip for the component.
      Returns:
      The tool-tip.