com.quadrique.jbuildingblocks.gui
Class TableAction
java.lang.Object
javax.swing.AbstractAction
com.quadrique.jbuildingblocks.gui.ActionBase
com.quadrique.jbuildingblocks.gui.TableAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public abstract class TableAction
- extends ActionBase
This is the base class for all the Table GUI actions.
- Author:
- Hervé Rivere
- See Also:
- Serialized Form
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
TableAction
public TableAction(String zActionName,
String zTooltipText,
String zIconName)
throws Exception
- constructor
- Parameters:
zActionName - the name of the actionzTooltipText - the tooltip text to use for this actionzIconName - the name of the icon image file. The file will be loaded with the Resources class
- Throws:
Exception - if an error occurs- See Also:
Resources
newTableSelection
public void newTableSelection(SelectionBaseEvent zEvent)
- this method is called whenever a new selection is performed in the table.
getSelectedRowIndex
public int getSelectedRowIndex()
- Returns:
- the selected row index (-1 if none)
setTable
public void setTable(Table zTable)
- Parameters:
zTable -
getTable
public Table getTable()
- Returns:
- table
Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.