Class SimplePortListPanel<S extends org.bidib.wizard.model.status.BidibStatus,P extends org.bidib.wizard.model.ports.Port<S>,L extends org.bidib.wizard.api.model.listener.PortListener<P>,M extends PortModelListener<P>>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.bidib.wizard.mvc.main.view.panel.SimplePortListPanel<S,P,L,M>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.bidib.wizard.api.model.listener.PortListenerProvider<P>, org.bidib.wizard.api.model.listener.PortListListener, ChangeLabelSupport
Direct Known Subclasses:
AnalogPortListPanel, FeedbackPortListPanel, FeedbackPositionListPanel

public abstract class SimplePortListPanel<S extends org.bidib.wizard.model.status.BidibStatus,P extends org.bidib.wizard.model.ports.Port<S>,L extends org.bidib.wizard.api.model.listener.PortListener<P>,M extends PortModelListener<P>> extends JPanel implements org.bidib.wizard.api.model.listener.PortListListener, ChangeLabelSupport, org.bidib.wizard.api.model.listener.PortListenerProvider<P>
See Also:
  • Field Details

    • LOGGER

      protected final org.slf4j.Logger LOGGER
    • tableModel

      protected SimplePortTableModel<S extends org.bidib.wizard.model.status.BidibStatus,P extends org.bidib.wizard.model.ports.Port<S>,M extends PortModelListener<P>> tableModel
    • table

      protected PortTable table
    • portListener

      protected L extends org.bidib.wizard.api.model.listener.PortListener<P> portListener
  • Constructor Details

  • Method Details

    • getTableModel

      protected SimplePortTableModel<S,P,M> getTableModel()
    • createTable

      protected void createTable(SimplePortTableModel<S,P,M> tableModel, String emptyTableText)
    • createPortTable

      protected PortTable createPortTable(SimplePortTableModel<S,P,M> tableModel, String emptyTableText)
    • setPortListener

      public void setPortListener(L listener)
    • getName

      public String getName()
      Overrides:
      getName in class Component
    • listChanged

      public void listChanged()
      Specified by:
      listChanged in interface org.bidib.wizard.api.model.listener.PortListListener
    • refreshPorts

      public void refreshPorts()
      Specified by:
      refreshPorts in interface org.bidib.wizard.api.model.listener.PortListListener
    • changeLabel

      public void changeLabel(org.bidib.wizard.common.script.node.types.TargetType portType)
      Specified by:
      changeLabel in interface ChangeLabelSupport
    • getPorts

      protected abstract List<P> getPorts()
      Get the list of ports.
      Returns:
      the list of ports
    • getPortListener

      public org.bidib.wizard.api.model.listener.PortListener<P> getPortListener()
      Specified by:
      getPortListener in interface org.bidib.wizard.api.model.listener.PortListenerProvider<S extends org.bidib.wizard.model.status.BidibStatus>