01: /*
02: * SortAscendingAction.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: import javax.swing.Action;
18:
19: import workbench.gui.components.SortArrowIcon;
20:
21: /**
22: * @author support@sql-workbench.net
23: */
24: public class SortAscendingAction extends WbAction {
25: private ActionListener client;
26:
27: public SortAscendingAction(ActionListener aClient) {
28: super ();
29: this .client = aClient;
30: this .setMenuTextByKey("MnuTxtSortAscending");
31: this .putValue(Action.SMALL_ICON, SortArrowIcon.ARROW_DOWN);
32: }
33:
34: public void executeAction(ActionEvent e) {
35: e.setSource(this);
36: this.client.actionPerformed(e);
37: }
38: }
|