Class AbstractPtPanel<M extends ProgCommandAwareBeanModel>

java.lang.Object
org.bidib.wizard.mvc.pt.view.panel.AbstractPtPanel<M>
All Implemented Interfaces:
PtResultListener
Direct Known Subclasses:
AddressPanel, DirectAccessPanel, RailcomPanel

public abstract class AbstractPtPanel<M extends ProgCommandAwareBeanModel> extends Object implements PtResultListener
  • Field Details

    • LOGGER

      protected final org.slf4j.Logger LOGGER
    • cvProgrammerModel

      protected final PtProgrammerModel cvProgrammerModel
    • ptResultProxyModel

      protected final PtResultProxyModel ptResultProxyModel
    • readButton

      protected final JButton readButton
    • writeButton

      protected final JButton writeButton
    • readButtonEnabled

      protected com.jgoodies.binding.value.ValueModel readButtonEnabled
    • writeButtonEnabled

      protected com.jgoodies.binding.value.ValueModel writeButtonEnabled
    • currentOperationModel

      protected com.jgoodies.binding.value.ValueModel currentOperationModel
    • currentOperationLabel

      protected JLabel currentOperationLabel
    • progOperationUnknownIcon

      protected ImageIcon progOperationUnknownIcon
    • progOperationEmptyIcon

      protected ImageIcon progOperationEmptyIcon
    • activeTab

      protected boolean activeTab
  • Constructor Details

  • Method Details

    • getProgCommandAwareBeanModel

      public ProgCommandAwareBeanModel getProgCommandAwareBeanModel()
      Returns:
      the progCommandAwareBeanModel
    • setProgCommandAwareBeanModel

      public void setProgCommandAwareBeanModel(M progCommandAwareBeanModel)
      Parameters:
      progCommandAwareBeanModel - the progCommandAwareBeanModel
    • addPtRequestListener

      public void addPtRequestListener(PtRequestListener l)
    • getPtRequestListeners

      protected List<PtRequestListener> getPtRequestListeners()
    • setActive

      public void setActive(boolean active)
      Description copied from interface: PtResultListener
      Sets the listener active or inactive.
      Specified by:
      setActive in interface PtResultListener
      Parameters:
      active - the active flag
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface PtResultListener
      Returns:
      listener is active
    • createWorkerPanel

      protected abstract void createWorkerPanel(com.jgoodies.forms.builder.FormBuilder builder, int[] rowHolder)
    • createPanel

      public JPanel createPanel()
    • doBindButtons

      protected void doBindButtons()
    • triggerValidation

      protected void triggerValidation()
    • getValidationResultModel

      protected com.jgoodies.validation.ValidationResultModel getValidationResultModel()
    • addLogText

      public void addLogText(String logLine, Object... args)
      Description copied from interface: PtResultListener
      Add a new line to the logger area.
      Specified by:
      addLogText in interface PtResultListener
      Parameters:
      logLine - the message to log. Use {} as placeholders for args.
      args - the args
    • getCurrentOperation

      protected abstract Object getCurrentOperation()
    • signalCommandStationProgStateChanged

      public void signalCommandStationProgStateChanged(org.bidib.jbidibc.messages.enums.CommandStationProgState commandStationProgState)
      Description copied from interface: PtResultListener
      Signals that the command station prog state has changed.
      Specified by:
      signalCommandStationProgStateChanged in interface PtResultListener
      Parameters:
      commandStationProgState - the new command station prog state
    • sendRequest

      protected void sendRequest(org.bidib.jbidibc.messages.enums.PtOperation operation, int cvNumber, int cvValue)
    • disableInputElements

      protected void disableInputElements()
    • enableInputElements

      protected void enableInputElements()
    • fireNextCommand

      protected void fireNextCommand()