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 int
MAX_AUTOSIZE_WIDTH
static int
MIN_AUTOSIZE_WIDTH
static String
RESIZE_ALL
static String
RESIZE_COLUMN
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
-
Constructor Summary
Constructors Constructor Description AutoSizeColumnAction(JTable table)
AutoSizeColumnAction(JTable table, int column)
-
Method Summary
Modifier and Type Method Description void
actionPerformed(ActionEvent e)
static void
autoSizeColumn(JTable table, int column)
static void
autoSizeColumn(JTable table, int minSize, int column)
static void
autoSizeTable(JTable table)
static void
autoSizeTable(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