Skip to content
Permalink
Browse files

show config details

  • Loading branch information...
silverailscolo committed Aug 4, 2019
1 parent 5fed8f5 commit 9edcb46cf8a1f0c75072d5af1b38c3ce3de8678d
@@ -37,7 +37,6 @@ public ConnectionConfig() {
public void loadDetails(JPanel details) {
setInstance();

// have to embed the usual one in a new JPanel
b.addActionListener(new NodeConfigAction((OakTreeSystemConnectionMemo) adapter.getSystemConnectionMemo()));
// add another button
if (!additionalItems.contains(b)) {
@@ -1,7 +1,7 @@
package jmri.jmrix.powerline;

/**
* Abstract base for classes representing a communications port
* Abstract base for classes representing a communications port.
*
* @author Bob Jacobsen Copyright (C) 2001, 2006, 2007, 2008 Converted to
* multiple connection
@@ -1,6 +1,5 @@
package jmri.jmrix.powerline.cm11;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

/**
@@ -34,13 +33,8 @@ public ConnectionConfig() {
*/
@Override
public void loadDetails(JPanel details) {
// have to embed the usual one in a new JPanel
super.loadDetails(details);

JPanel p = new JPanel();
super.loadDetails(p);

details.setLayout(new BoxLayout(details, BoxLayout.Y_AXIS));
details.add(p);
}

@Override
@@ -49,7 +43,7 @@ public String name() {
}

public boolean isOptList1Advanced() {
return false;
return true;
}

/**
@@ -1,10 +1,9 @@
package jmri.jmrix.powerline.cp290;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

/**
* Definition of objects to handle configuring a layout connection
* Definition of objects to handle configuring a Powerline layout connection
*
* @author Bob Jacobsen Copyright (C) 2003, 2006, 2007, 2008
* @author Ken Cameron Copyright (C) 2011
@@ -34,13 +33,8 @@ public ConnectionConfig() {
*/
@Override
public void loadDetails(JPanel details) {
// have to embed the usual one in a new JPanel
super.loadDetails(details);

JPanel p = new JPanel();
super.loadDetails(p);

details.setLayout(new BoxLayout(details, BoxLayout.Y_AXIS));
details.add(p);
}

@Override
@@ -49,7 +43,7 @@ public String name() {
}

public boolean isOptList1Advanced() {
return false;
return true;
}

/**
@@ -1,10 +1,9 @@
package jmri.jmrix.powerline.insteon2412s;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

/**
* Definition of objects to handle configuring a layout connection.
* Definition of objects to handle configuring a Powerline layout connection.
*
* @author Bob Jacobsen Copyright (C) 2003, 2006, 2007, 2008
* @author Ken Cameron Copyright (C) 2011
@@ -34,13 +33,8 @@ public ConnectionConfig() {
*/
@Override
public void loadDetails(JPanel details) {
// have to embed the usual one in a new JPanel
super.loadDetails(details);

JPanel p = new JPanel();
super.loadDetails(p);

details.setLayout(new BoxLayout(details, BoxLayout.Y_AXIS));
details.add(p);
}

@Override
@@ -49,7 +43,7 @@ public String name() {
}

public boolean isOptList1Advanced() {
return false;
return true;
}

/**
@@ -1,10 +1,9 @@
package jmri.jmrix.powerline.serialdriver;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

/**
* Definition of objects to handle configuring a layout connection.
* Definition of objects to handle configuring a Powerline layout connection.
*
* @author Bob Jacobsen Copyright (C) 2003, 2006, 2007, 2008
*/
@@ -32,13 +31,7 @@ public ConnectionConfig() {
*/
@Override
public void loadDetails(JPanel details) {
// 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);
super.loadDetails(details);

// add another button
//JButton b = new JButton("Configure nodes");

0 comments on commit 9edcb46

Please sign in to comment.
You can’t perform that action at this time.