/* $Id: SetSheetNameAction.java 125 2011-03-09 09:49:51Z ohura $ */
package smart_gs.swingui;

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

import javax.swing.JOptionPane;

import smart_gs.logical.Sheet;

public class SetSheetNameAction implements ActionListener {

	private Sheet sheet;

	public SetSheetNameAction(Sheet sheet) {
		this.sheet = sheet;
	}

	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		/*
		 * シートの名前を設定する
		 */
		String sheetName = (String) JOptionPane
				.showInputDialog("Input sheet name");
		sheet.setSheetName(sheetName);

	}

}
