wt.clients.util
Class ContainerUtility
java.lang.Object
wt.clients.util.ContainerUtility
- public class ContainerUtility
- extends Object
This is a utility class to perform common functions upon container
objects.
Supported API: true.
Extendable: false.
Method Summary |
static void |
enableInputMethods(Container container,
boolean enable)
Static utility method to recursively perform the enableInputMethod method
upon all components within this container. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerUtility
public ContainerUtility()
enableInputMethods
public static void enableInputMethods(Container container,
boolean enable)
- Static utility method to recursively perform the enableInputMethod method
upon all components within this container. This method was created in
response to Java Bug 4289940.
This bug results in a "IllegalStateException: Can't dispose InputContext
while it's active". Calling this method within the dispose method of a
Frame will disable all components held by this container and workaround
this bug:
public void dispose() {
wt.clients.util.ContainerUtility.enableInputMethods(this, false);
super.dispose();
}
Supported API: true.