Package com.drakulo.games.ais.ui.component

Examples of com.drakulo.games.ais.ui.component.Bindable


   *            - the component to add
   */
  public void add(UIComponent component) {
    components.add(component);
    if (component instanceof Bindable) {
      Bindable b = (Bindable) component;
      if (getRootPane().getChildIndex(b.getBindable()) == -1) {
        b.bindTo(getRootPane());
      }
    }
  }
View Full Code Here


    List<UIComponent> toRemove = new ArrayList<UIComponent>();
    for (UIComponent c : componentsToRemove) {
      components.remove(c);
      toRemove.add(c);
      if (c instanceof Bindable) {
        Bindable b = (Bindable) c;
        getRootPane().removeChild(b.getBindable());
      }
    }
    components.removeAll(toRemove);
  }
View Full Code Here

TOP

Related Classes of com.drakulo.games.ais.ui.component.Bindable

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.