com.levigo.jadice.appbase
Class ContainerUtilities

java.lang.Object
  extended by com.levigo.jadice.appbase.ContainerUtilities

public class ContainerUtilities
extends Object

ContainerUtilities


Constructor Summary
ContainerUtilities()
           
 
Method Summary
static void destroyComponents(Container container)
          Calls the destroy method of all contained Reloadable and removes deeply all components in the component architecture of the given container.
static void removeKeybinding(Container container, KeyStroke keyStroke, String[] textActionMapEntries2Remove)
          Analyze recursively in container hierarchy of given container whether the input maps contains given key binding and removes it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerUtilities

public ContainerUtilities()
Method Detail

destroyComponents

public static void destroyComponents(Container container)
Calls the destroy method of all contained Reloadable and removes deeply all components in the component architecture of the given container.

Parameters:
container -

removeKeybinding

public static void removeKeybinding(Container container,
                                    KeyStroke keyStroke,
                                    String[] textActionMapEntries2Remove)
Analyze recursively in container hierarchy of given container whether the input maps contains given key binding and removes it. In addition if the given container or any of its child container is an instance of JTextComponent and the given text action map entries are not null or empty, these text actions will be removed too.

Parameters:
container -
keyStroke - the keystroke of the key binding to remove
textActionMapEntries2Remove - an array of action map keys (action names) to remove or null if no text action map entries should be removed. Use here the useful constants provided by the class DefaultEditorKit, like DefaultEditorKit.beginLineAction or similar ones.


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.