Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package de.xwic.etlgine.server.admin;
 

Author(s):
Developer
public class MainMenuControl extends BaseContentContainer {

Parameters:
container
name
	public MainMenuControl(IControlContainer containerString name) {
		super(containername);
		setTitle("Home");
		Button btJobs = new Button(this"btJobs");
		btJobs.setTitle("Jobs");
		btJobs.setWidth(120);
		btJobs.setIconEnabled(new ImageRef("img/script.png"));
			public void objectSelected(SelectionEvent event) {
			}
		});
		Button btDataPools = new Button(this"btDataPools");
		btDataPools.setTitle("Data Pools");
		btDataPools.setWidth(120);
		btDataPools.setIconEnabled(new ImageRef("img/database.png"));
			public void objectSelected(SelectionEvent event) {
			}
		});
		Button btShutDown = new Button(this"btShutDown");
		btShutDown.setTitle("Shut Down");
		btShutDown.setWidth(120);
		btShutDown.setConfirmMsg("Do you realy want to SHUT DOWN the ETLgine Server?");
			public void objectSelected(SelectionEvent event) {
			}
		});
	}

	protected void onShutDown() {
		ETLgineServer.getInstance().exitServer();
	}

	protected void onJobsSelection() {
		JobAdminControl jobAdmin = new JobAdminControl(sc"joa");
	}

	protected void onDPSelection() {
		DPAdminControl dpAdmin = new DPAdminControl(sc"dp");
	}
New to GrepCode? Check out our FAQ X