Package com.illumon.iris.gui.actions
Class AutoSizeColumnAction
java.lang.Object
javax.swing.AbstractAction
com.illumon.iris.gui.actions.AutoSizeColumnAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
public class AutoSizeColumnAction extends AbstractAction
Action to find and set the minimum width of a column such that no cell value is
wrapped or obscured.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static intMAX_AUTOSIZE_WIDTHstatic intMIN_AUTOSIZE_WIDTHstatic StringRESIZE_ALLstatic StringRESIZE_COLUMNFields 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 -
Constructor Summary
Constructors Constructor Description AutoSizeColumnAction(JTable table)AutoSizeColumnAction(JTable table, int column) -
Method Summary
Modifier and Type Method Description voidactionPerformed(ActionEvent e)static voidautoSizeColumn(JTable table, int column)static voidautoSizeColumn(JTable table, int minSize, int column)static voidautoSizeTable(JTable table)static voidautoSizeTable(JTable table, int minSize)Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
RESIZE_COLUMN
- See Also:
- Constant Field Values
-
RESIZE_ALL
- See Also:
- Constant Field Values
-
MIN_AUTOSIZE_WIDTH
public static final int MIN_AUTOSIZE_WIDTH- See Also:
- Constant Field Values
-
MAX_AUTOSIZE_WIDTH
public static final int MAX_AUTOSIZE_WIDTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details