maybeAddOpenLCBProtocolOptionsButton
public static void maybeAddOpenLCBProtocolOptionsButton(AbstractConnectionConfig connection,
java.util.Collection<javax.swing.JComponent> additionalItems)
Adds a button to the connection config setup panel that opens the openLCB protocol options.
Does nothing if the adapter is not being used in OpenLCB mode.
Helper function in the ConnectionConfig.loadDetails() function for OpenLCB compatible
adapter configs. The loadDetails() function needs to be overridden with the following
code:
public void loadDetails(JPanel details) {
setInstance();
ConfigPaneHelper.maybeAddOpenLCBProtocolOptionsButton(this, additionalItems);
super.loadDetails(details);
}
- Parameters:
connection
- the ConnectionConfig for the particular adapter calling.
additionalItems
- reference to the inherited additionalItems list from the
AbstractConnectionConfig. The helper funciton will modify it in
place.