| java.lang.Object org.netbeans.modules.refactoring.java.ui.UIUtilities
UIUtilities | final public class UIUtilities (Code) | | Class containing various utility methods and inner classes
useful when creating refactoring UI.
author: Martin Matula, Jan Becicka |
Method Summary | |
public static String | getColumnName(String name) Returns the same string as passed in or " " if the passed string was an empty string.
This method is used as a workaround for issue #58302.
Parameters: name - Original table column name. | public static void | initColumnWidth(JTable table, int index, Object longValue, int padding) Initializes preferred (and eventually maximum) width of a table column based on
the size of its header and the estimated longest value. |
getColumnName | public static String getColumnName(String name)(Code) | | Returns the same string as passed in or " " if the passed string was an empty string.
This method is used as a workaround for issue #58302.
Parameters: name - Original table column name. "Fixed" column name. |
initColumnWidth | public static void initColumnWidth(JTable table, int index, Object longValue, int padding)(Code) | | Initializes preferred (and eventually maximum) width of a table column based on
the size of its header and the estimated longest value.
Parameters: table - Table to adjust the column width for. Parameters: index - Index of the column. Parameters: longValue - Estimated long value for the column. Parameters: padding - Number of pixes for padding. |
|
|