01: /*
02: * SetColumnWidthAction.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.gui.actions;
13:
14: import java.awt.event.ActionEvent;
15: import java.awt.event.ActionListener;
16:
17: /**
18: * @author support@sql-workbench.net
19: */
20: public class SetColumnWidthAction extends WbAction {
21: private ActionListener client;
22:
23: public SetColumnWidthAction(ActionListener aClient) {
24: super ();
25: this .client = aClient;
26: this .setMenuTextByKey("MnuTxtSetColWidth");
27: }
28:
29: public void executeAction(ActionEvent e) {
30: e.setSource(this);
31: this.client.actionPerformed(e);
32: }
33: }
|