Examples of ContainerEvent


Examples of com.extjs.gxt.ui.client.event.ContainerEvent

        fireSelectionChanged();
      }
    } else {
      T item = items.getItem(container);
      if (item != null) {
        ContainerEvent ce = createContainerEvent(container);
        ce.setItem(item);
        if (container.fireEvent(Events.BeforeSelect, ce)) {
          if (!keepExisting) {
            deselectAll(true);
          }
          selected.add(item);
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.ContainerEvent

      doSelect(new Items(item), false, false);
    }
  }

  protected void fireSelectionChanged() {
    ContainerEvent event = createContainerEvent(container);
    event.setSelected(getSelectedItems());
    event.setEvent(DOM.eventGetCurrentEvent());
    container.fireEvent(Events.SelectionChange, event);
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.ContainerEvent

    child.setParent(this);
  }

  @SuppressWarnings({"rawtypes", "unchecked"})
  protected ContainerEvent createContainerEvent(T item) {
    return new ContainerEvent(this, item);
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.ContainerEvent

    return remove(item, false);
  }

  @SuppressWarnings({"unchecked", "rawtypes"})
  protected boolean remove(T component, boolean force) {
    ContainerEvent containerEvent = createContainerEvent(component);
    containerEvent.setItem(component);
    containerEvent.setIndex(indexOf(component));
    if (fireEvent(Events.BeforeRemove, containerEvent) || force) {
      ComponentEvent componentEvent = component.createComponentEvent(null);
      if (component.fireEvent(Events.BeforeOrphan, componentEvent) || force) {
        onRemove(component);
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.ContainerEvent

        fireSelectionChanged();
      }
    } else {
      T item = items.getItem(container);
      if (item != null) {
        ContainerEvent ce = createContainerEvent(container);
        ce.setItem(item);
        if (container.fireEvent(Events.BeforeSelect, ce)) {
          if (!keepExisting) {
            deselectAll(true);
          }
          selected.add(item);
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.ContainerEvent

      doSelect(new Items(item), false, false);
    }
  }

  protected void fireSelectionChanged() {
    ContainerEvent event = createContainerEvent(container);
    event.setSelected(getSelectedItems());
    event.setEvent(DOM.eventGetCurrentEvent());
    container.fireEvent(Events.SelectionChange, event);
  }
View Full Code Here

Examples of com.sun.star.container.ContainerEvent

        if (container.containsKey(fName)) {
            container.remove(fName);
        }
        container.put(fName, args);
        if (listener != null) {
            ContainerEvent event = new ContainerEvent();
            event.Element = fName;
            for (int i=0; i<listener.length; i++){
                if (listener[i] != null) {
                    listener[i].elementInserted(event);
                }
View Full Code Here

Examples of com.sun.star.container.ContainerEvent

            case 7: someValue = UnoRuntime.queryInterface( XIdentifierAccess.class, new DummyIdentifierAccess() ); break;
            case 8: someValue = UnoRuntime.queryInterface( XElementAccess.class, new DummyElementAccess() ); break;
            case 9: someValue = new com.sun.star.uno.Exception(); break;
            case 10: someValue = new com.sun.star.uno.RuntimeException(); break;
            case 11: someValue = new EventObject(); break;
            case 12: someValue = new ContainerEvent(); break;
            case 13: someValue = new Locale(); break;   // just use *any* value which does not conflict with the others
            default:
                failed( "internal error: wrong position for getSomeValue" );
        }
        return someValue;
View Full Code Here

Examples of com.sun.star.container.ContainerEvent

        if (container.containsKey(fName)) {
            container.remove(fName);
        }
        container.put(fName, args);
        if (listener != null) {
            ContainerEvent event = new ContainerEvent();
            event.Element = fName;
            for (int i=0; i<listener.length; i++){
                if (listener[i] != null) {
                    listener[i].elementInserted(event);
                }
View Full Code Here

Examples of jade.core.event.ContainerEvent

      }
    }
   
    //#MIDP_EXCLUDE_BEGIN
    // NOTIFY DEAD AGENT
    notifyListeners(new ContainerEvent(ContainerEvent.DEAD_AGENT, agentID, myId));
    //#MIDP_EXCLUDE_END
   
    if (!exiting) {
      // If this agent is ending because the container is exiting
      // just do nothing. The BackEnd will notify the main.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.