convex.gui.manager.windows.etch.EtchWindow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-gui Show documentation
Show all versions of convex-gui Show documentation
Convex desktop GUI and test applications
package convex.gui.manager.windows.etch;
import java.awt.BorderLayout;
import javax.swing.JTabbedPane;
import convex.api.Convex;
import convex.gui.components.PeerComponent;
import convex.gui.manager.PeerGUI;
import convex.gui.manager.windows.BaseWindow;
import etch.EtchStore;
@SuppressWarnings("serial")
public class EtchWindow extends BaseWindow {
EtchStore store;
Convex peer;
public EtchStore getEtchStore() {
return store;
}
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
public EtchWindow(PeerGUI manager, Convex peer) {
super(manager);
this.peer=peer;
this.store=(EtchStore) peer.getLocalServer().getStore();
PeerComponent pcom=new PeerComponent(manager,peer);
add(pcom, BorderLayout.NORTH);
add(tabbedPane, BorderLayout.CENTER);
}
@Override
public String getTitle() {
try {
return "Storage view - "+peer.getHostAddress();
}
catch (Exception e) {
return "Storage view - Unknown";
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy