Package com.scriptographer.adm.Component

Examples of com.scriptographer.adm.Component.AWTContainer


    name = capitalize(name);
    Component element = constraints.get(name);
    if (element != null) {
      java.awt.Component component = getAWTComponent(element);
      // Now search for this component:
      AWTContainer container = getAWTContainer();
      for (int i = container.getComponentCount(); i >= 0; i--) {
        java.awt.Component comp = container.getComponent(i);
        if (comp == component) {
          container.remove(i);
          constraints.remove(name);
          removeComponent(element);
          return element;
        }
      }
View Full Code Here


    for (Map.Entry<String,? extends Component> entry : elements.entrySet())
      put(entry.getKey().toString(), entry.getValue());
  }

  public Component remove(int index) {
    AWTContainer container = getAWTContainer();
    Component component = getComponent(container.getComponent(index));
    container.remove(index);
    removeComponent(component);
    return component;
  }
View Full Code Here

    removeComponent(component);
    return component;
  }

  public void removeAll() {
    AWTContainer container = getAWTContainer();
    for (int i = container.getComponentCount() - 1; i >= 0; i--)
      removeComponent(getComponent(container.getComponent(i)));
    container.removeAll();
  }
View Full Code Here

TOP

Related Classes of com.scriptographer.adm.Component.AWTContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.