All Downloads are FREE. Search and download functionalities are using the official Maven repository.

convex.gui.panels.ActorsPanel Maven / Gradle / Ivy

The newest version!
package convex.gui.panels;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import convex.api.ConvexLocal;
import convex.gui.actor.DeployPanel;
import convex.gui.actor.MarketsPanel;
import convex.gui.actor.OraclePanel;

/**
 * Top level panel that displays some standard Actors
 */
@SuppressWarnings("serial")
public class ActorsPanel extends JPanel {

	private JTabbedPane typePane;

	public ActorsPanel(ConvexLocal convex) {
		setLayout(new BorderLayout(0, 0));

		typePane = new JTabbedPane();

		typePane.add("Oracle", new OraclePanel(convex));

		// TODO: fix registry address
		// typePane.add("Registry", new ActorInvokePanel(manager, ...));

		typePane.add("Prediction Markets", new MarketsPanel(convex));

		typePane.add("Deploy", new DeployPanel());

		add(typePane, BorderLayout.CENTER);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy