
package uk.co.wingpath.modbusgui;

import javax.swing.*;
import uk.co.wingpath.gui.*;
import uk.co.wingpath.event.*;
import uk.co.wingpath.modbus.*;

public interface CommandPanel
{
    String getTitle ();
    JPanel getPanel ();
    Command createCommand (String name, String description,
        ModbusException exception);
    boolean haveValuesChanged (Command command);
    void setCommand (Command command);
    void setActualResult (Command.Result result);
    void expectActual ();
    String getTag ();
    String getName ();
    Action getHelpAction ();
    void initialize ();
    boolean checkFields ();
    void addValueListener (ValueListener l);
    void removeValueListener (ValueListener l);
    void setEnabled (boolean enabled, boolean enExpected);
    void setSlaveId (int slaveId);
    void highlightErrors (boolean highlight);
}

