/* $Id: SheetSelectAction.java 131 2011-03-25 15:25:12Z shayashi $ */
package smart_gs.drawing_tool.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.event.ItemEvent;

import smart_gs.logical.Sheet;
import smart_gs.logical.Spread;
import smart_gs.drawing_tool.ImageLabel;
import smart_gs.swingui.AbstractGSWindow;

public class SheetSelectAction implements ActionListener, ItemListener {

	
	private Sheet sheet;
	public SheetSelectAction(Sheet sheet){
		this.sheet = sheet;
	}
	
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		sheet.getParent()._selectSheet(sheet);
//		ImageLabel.
//		WorkspaceWindow.getInstance().updateGUI(sheet.getParent());
		
	}
	public void itemStateChanged(ItemEvent e){ 
		e.getStateChange();
	}

}
