Package org.araneaframework

Examples of org.araneaframework.Component


    /**
     * @see org.araneaframework.Composite.Interface#detach(java.lang.Object)
     */
    public Component detach(Object key) {
      Component comp = (Component) _getChildren().remove(key);
     
      if (comp == null) {
        throw new NoSuchWidgetException(key);
      }
      return comp;
View Full Code Here


      StandardMenuWidget.this.selectMenuItem(eventParam);
    }
  }

  public void selectMenuItem(String menuItemPath) throws Exception {
    Component newFlow = menu.selectMenuItem(menuItemPath);
    if (newFlow == null)
      replace((Component) topWidgetClass.newInstance(), null);
    else {
      replace((Component) topWidgetClass.newInstance(), null);
      start(newFlow, null, null);
View Full Code Here

   * Removes the childcomponent with the specified key from the children and calls destroy on it.
   */
  protected void _removeComponent(Object key) throws Exception {
    _checkCall();
   
    Component comp = (Component)children.get(key);
   
    if (comp == null) {
      return;
    }

    //Sequence is very important, and guarantees that there won't
    //be a second destroy call if the first one doesn't succeed.
    children.remove(key);
    comp._getComponent().destroy();
  }
View Full Code Here

   */
  public Component selectMenuItem(String menuPath) throws Exception {
    clearSelection();

    MenuItem menu = this;
    Component resultFlow = null;
   
    try {
      for (StringTokenizer st = new StringTokenizer(menuPath, MENU_PATH_SEPARATOR); st.hasMoreTokens(); ) {
        menu = (MenuItem)menu.subMenu.get(st.nextToken());
        menu.setSelected(true);
View Full Code Here

 
  protected void _propagate(Message message) throws Exception {
    Iterator ite = (new HashMap(_getChildren())).keySet().iterator();
    while(ite.hasNext()) {
      Object key = ite.next();
      Component component = (Component)_getChildren().get(key);
     
      if (component == null ) {
        throw new NoSuchComponentException(key);
      }     
     
View Full Code Here

          for (Iterator i = new HashMap(_getChildren()).keySet().iterator(); i.hasNext(); ) {
            _removeComponent(i.next());
          }
         
          for (Iterator i = new HashMap(disabledChildren).keySet().iterator(); i.hasNext(); ) {
            Component comp = (Component) disabledChildren.get(i.next());
            if (comp != null) {         
              comp._getComponent().destroy();            
            }
          }   
         
          for (Iterator i = new ArrayList(destroyers).iterator(); i.hasNext(); ) {
            Standard.Destroyer dest = (Standard.Destroyer) i.next();
View Full Code Here

TOP

Related Classes of org.araneaframework.Component

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.