public class SwingComponentTools extends Object
ToolkitComponent
, which
cannot be inherited from AbstractSwingComponent
.Constructor and Description |
---|
SwingComponentTools() |
Modifier and Type | Method and Description |
---|---|
static void |
assignSize(JComponent component) |
static Dimension |
getMaximumSize(JComponent component,
Dimension superMaxSize) |
static void |
registerScrollEventForwarders(JScrollBarsToolkitComponent component)
Tool method to be used by implementations of
JScrollBarsToolkitComponent . |
static void |
registerScrollEventForwarders(JScrollPaneToolkitComponent component)
Tool method to be used by implementations of
JScrollPaneToolkitComponent . |
public SwingComponentTools()
public static void assignSize(JComponent component)
public static Dimension getMaximumSize(JComponent component, Dimension superMaxSize)
public static void registerScrollEventForwarders(JScrollPaneToolkitComponent component)
JScrollPaneToolkitComponent
. It should
be called within the constructor of such classes in order to ensure correct firing of scroll
events in their associated ScrollingTICComponent
.component
- the toolkit component providing the scroll functionalitypublic static void registerScrollEventForwarders(JScrollBarsToolkitComponent component)
JScrollBarsToolkitComponent
. It should
be called within the constructor of such classes in order to ensure correct firing of scroll
events in their associated ScrollingTICComponent
.component
- the toolkit component providing the scroll functionality