// Path: src/java/is/idega/idegaweb/msi/MsiConstants.java
// public class MsiConstants {
// 	public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.msi";
// }
// 
// Path: src/java/is/idega/idegaweb/msi/data/Event.java
// public interface Event extends IDOEntity {
// 	/**
// 	 * @see is.idega.idegaweb.msi.data.EventBMPBean#getPrimaryKeyClass
// 	 */
// 	public Class getPrimaryKeyClass();
// 
// 	/**
// 	 * @see is.idega.idegaweb.msi.data.EventBMPBean#getName
// 	 */
// 	public String getName();
// 
// 	/**
// 	 * @see is.idega.idegaweb.msi.data.EventBMPBean#setName
// 	 */
// 	public void setName(String name);
// 	
// 	public boolean isValid();
// 	
// 	public void setValid(boolean valid);
// }
// 
// Path: src/java/is/idega/idegaweb/msi/data/EventHome.java
// public interface EventHome extends IDOHome {
// 	public Event create() throws CreateException;
// 
// 	public Event findByPrimaryKey(Object pk) throws FinderException;
// 
// 	public Collection findAll() throws FinderException;
// 	public Collection getInvalidEvents();
// }


import is.idega.idegaweb.msi.MsiConstants;
import is.idega.idegaweb.msi.data.Event;
import is.idega.idegaweb.msi.data.EventHome;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import com.idega.block.web2.business.Web2Business;
import com.idega.business.IBOLookup;
import com.idega.data.IDOLookup;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWMainApplication;
import com.idega.presentation.IWContext;
import com.idega.presentation.Layer;
import com.idega.presentation.Table2;
import com.idega.presentation.TableCell2;
import com.idega.presentation.TableRow;
import com.idega.presentation.TableRowGroup;
import com.idega.presentation.text.Break;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.Form;
import com.idega.presentation.ui.Label;
import com.idega.presentation.ui.SubmitButton;
import com.idega.presentation.ui.TextInput;
import com.idega.util.CoreConstants;
import com.idega.util.CoreUtil;
import com.idega.util.PresentationUtil;
		Layer activeEvents = new Layer("select");
		cell.add(activeEvents);
		activeEvents.setStyleClass("events-selector active-events");
		activeEvents.setMarkupAttribute("multiple", "multiple");
		
		cell = row.createCell();
		Layer disable = new Layer("input");
		cell.add(disable);
		disable.setMarkupAttribute("type", "button");
		disable.setMarkupAttribute("value", ">>");
		disable.setStyleClass("action disable");
		Layer enable = new Layer("input");
		cell.add(enable);
		enable.setMarkupAttribute("type", "button");
		enable.setStyleClass("action enable");
		enable.setMarkupAttribute("value", "<<");
		
		cell = row.createCell();
		Layer inactiveEvents = new Layer("select");
		cell.add(inactiveEvents);
		inactiveEvents.setStyleClass("events-selector inactive-events");
		inactiveEvents.setMarkupAttribute("multiple", "multiple");
		for (Iterator iter = events.iterator();iter.hasNext();) {
			Event event = (Event) iter.next();
			Layer option = new Layer("option");
			activeEvents.add(option);
			option.setMarkupAttribute("value", event.getPrimaryKey().toString());
			row = group.createRow();
			option.add(event.getName());
		}
// Path: src/java/is/idega/idegaweb/msi/MsiConstants.java
// public class MsiConstants {
// 	public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.msi";
// }
// 
// Path: src/java/is/idega/idegaweb/msi/data/Event.java
// public interface Event extends IDOEntity {
// 	/**
// 	 * @see is.idega.idegaweb.msi.data.EventBMPBean#getPrimaryKeyClass
// 	 */
// 	public Class getPrimaryKeyClass();
// 
// 	/**
// 	 * @see is.idega.idegaweb.msi.data.EventBMPBean#getName
// 	 */
// 	public String getName();
// 
// 	/**
// 	 * @see is.idega.idegaweb.msi.data.EventBMPBean#setName
// 	 */
// 	public void setName(String name);
// 	
// 	public boolean isValid();
// 	
// 	public void setValid(boolean valid);
// }
// 
// Path: src/java/is/idega/idegaweb/msi/data/EventHome.java
// public interface EventHome extends IDOHome {
// 	public Event create() throws CreateException;
// 
// 	public Event findByPrimaryKey(Object pk) throws FinderException;
// 
// 	public Collection findAll() throws FinderException;
// 	public Collection getInvalidEvents();
// }


// Path: src/java/is/idega/idegaweb/msi/presentation/EventEditor.java
import is.idega.idegaweb.msi.MsiConstants;
import is.idega.idegaweb.msi.data.Event;
import is.idega.idegaweb.msi.data.EventHome;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import com.idega.block.web2.business.Web2Business;
import com.idega.business.IBOLookup;
import com.idega.data.IDOLookup;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWMainApplication;
import com.idega.presentation.IWContext;
import com.idega.presentation.Layer;
import com.idega.presentation.Table2;
import com.idega.presentation.TableCell2;
import com.idega.presentation.TableRow;
import com.idega.presentation.TableRowGroup;
import com.idega.presentation.text.Break;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.Form;
import com.idega.presentation.ui.Label;
import com.idega.presentation.ui.SubmitButton;
import com.idega.presentation.ui.TextInput;
import com.idega.util.CoreConstants;
import com.idega.util.CoreUtil;
import com.idega.util.PresentationUtil;

		Layer activeEvents = new Layer("select");
		cell.add(activeEvents);
		activeEvents.setStyleClass("events-selector active-events");
		activeEvents.setMarkupAttribute("multiple", "multiple");
		
		cell = row.createCell();
		Layer disable = new Layer("input");
		cell.add(disable);
		disable.setMarkupAttribute("type", "button");
		disable.setMarkupAttribute("value", ">>");
		disable.setStyleClass("action disable");
		Layer enable = new Layer("input");
		cell.add(enable);
		enable.setMarkupAttribute("type", "button");
		enable.setStyleClass("action enable");
		enable.setMarkupAttribute("value", "<<");
		
		cell = row.createCell();
		Layer inactiveEvents = new Layer("select");
		cell.add(inactiveEvents);
		inactiveEvents.setStyleClass("events-selector inactive-events");
		inactiveEvents.setMarkupAttribute("multiple", "multiple");
		for (Iterator iter = events.iterator();iter.hasNext();) {
			Event event = (Event) iter.next();
			Layer option = new Layer("option");
			activeEvents.add(option);
			option.setMarkupAttribute("value", event.getPrimaryKey().toString());
			row = group.createRow();
			option.add(event.getName());
		}
		EventHome eventHome = (EventHome) IDOLookup.getHome(Event.class);