Interface ComponentFactory

All Known Implementing Classes:
AlignmentComponentFactory, SyllabificationComponentFactory, TranscriptionSelectorComponentFactory

public interface ComponentFactory
  • Method Details

    • createComponent

      JComponent createComponent(AttributeSet attrs)
      Create a component for the given attributes
      Parameters:
      attrs -
      Returns:
      component
    • getComponent

      JComponent getComponent()
      Return the previously created component (if any)
      Returns:
      component
    • requestFocusStart

      void requestFocusStart()
      Focus the 'beginning' of the component
    • requestFocusEnd

      void requestFocusEnd()
      Focus the 'end' of the component
    • requestFocusAtOffset

      void requestFocusAtOffset(int offset)
      Request focus of specific offset, meaning of offset would be determined by the component. If not possible should focus beginning/end of component as appropriate.
      Parameters:
      offset -