Package com.dragome.model.interfaces

Examples of com.dragome.model.interfaces.VisualComponent


    return null;
  }

  public void replaceChild(VisualComponent child)
  {
    VisualComponent childByName= getChildByName(child.getName());
    children.remove(childByName);
    childByName.setParent(null);
    children.add(child);
    child.setParent(this);
    if (hasListener(PanelListener.class))
      getListener(PanelListener.class).childReplaced(childByName, child);
  }
View Full Code Here


    return null;
  }

  public void replaceChild(VisualComponent child)
  {
    VisualComponent childByName= getChildByName(child.getName());
    children.remove(childByName);
    childByName.setParent(null);
    children.add(child);
    child.setParent(this);
    if (hasListener(PanelListener.class))
      getListener(PanelListener.class).childReplaced(childByName, child);
  }
View Full Code Here

  {
    runOnlySynchronized(new Runnable()
    {
      public void run()
      {
        VisualComponent visualComponent= getComponentById(id);
        if (visualComponent != null)
        {
          if (eventType.equals("click"))
            visualComponent.getListener(ClickListener.class).clickPerformed(visualComponent);
          else if (eventType.equals("dblclick"))
            visualComponent.getListener(DoubleClickListener.class).doubleClickPerformed(visualComponent);
          else if (eventType.equals("mouseover"))
            visualComponent.getListener(MouseOverListener.class).mouseOverPerformed(visualComponent);
          else if (eventType.equals("mouseout"))
            visualComponent.getListener(MouseOutListener.class).mouseOutPerformed(visualComponent);
          else if (eventType.equals("keyup"))
            visualComponent.getListener(KeyUpListener.class).keyupPerformed(visualComponent, (int) arguments);
          else if (eventType.equals("keydown"))
            visualComponent.getListener(KeyDownListener.class).keydownPerformed(visualComponent, (int) arguments);
          else if (eventType.equals("keypress"))
            visualComponent.getListener(KeyPressListener.class).keypressPerformed(visualComponent, (int) arguments);
          else if (eventType.equals("blur"))
            visualComponent.getListener(BlurListener.class).blurPerformed(visualComponent);
          else if (eventType.equals("input"))
            visualComponent.getListener(InputListener.class).inputPerformed(visualComponent);
        }
      }
    });
  }
View Full Code Here

TOP

Related Classes of com.dragome.model.interfaces.VisualComponent

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.