Search in sources :

Example 1 with NodeConfigAction

use of jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction in project JMRI by JMRI.

the class ConnectionConfig method loadDetails.

@Override
public void loadDetails(JPanel details) {
    setInstance();
    // have to embed the usual one in a new JPanel
    JPanel p = new JPanel();
    super.loadDetails(p);
    details.setLayout(new BoxLayout(details, BoxLayout.Y_AXIS));
    details.add(p);
    // add another button
    JButton b = new JButton("Configure C/MRI nodes");
    details.add(b);
    b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
}
Also used : JPanel(javax.swing.JPanel) CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) BoxLayout(javax.swing.BoxLayout) JButton(javax.swing.JButton) NodeConfigAction(jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction)

Example 2 with NodeConfigAction

use of jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction in project JMRI by JMRI.

the class ConnectionConfig method loadDetails.

@Override
public void loadDetails(JPanel details) {
    setInstance();
    b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
    if (!additionalItems.contains(b)) {
        additionalItems.add(b);
    }
    super.loadDetails(details);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) NodeConfigAction(jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction)

Example 3 with NodeConfigAction

use of jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction in project JMRI by JMRI.

the class ConnectionConfig method loadDetails.

@Override
public void loadDetails(JPanel details) {
    setInstance();
    b = new JButton("Configure C/MRI nodes");
    b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
    if (!additionalItems.contains(b)) {
        additionalItems.add(b);
    }
    super.loadDetails(details);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) JButton(javax.swing.JButton) NodeConfigAction(jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction)

Aggregations

CMRISystemConnectionMemo (jmri.jmrix.cmri.CMRISystemConnectionMemo)3 NodeConfigAction (jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction)3 JButton (javax.swing.JButton)2 BoxLayout (javax.swing.BoxLayout)1 JPanel (javax.swing.JPanel)1