Class AbstractPtPanel<M extends ProgCommandAwareBeanModel>

    • Field Detail

      • LOGGER

        protected final org.slf4j.Logger LOGGER
      • 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 Detail

    • Method Detail

      • getProgCommandAwareBeanModel

        public ProgCommandAwareBeanModel getProgCommandAwareBeanModel()
        Returns:
        the progCommandAwareBeanModel
      • setProgCommandAwareBeanModel

        public void setProgCommandAwareBeanModel​(M progCommandAwareBeanModel)
        Parameters:
        progCommandAwareBeanModel - the progCommandAwareBeanModel
      • 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()