Examples of addListener()


Examples of com.gwtext.client.widgets.Window.addListener()

       

        w.show();


        w.addListener(new WindowListenerAdapter() {
            @Override
            public void onDeactivate(Window window) {
                instance = null;
            }
        });
View Full Code Here

Examples of com.gwtext.client.widgets.form.MultiFieldPanel.addListener()

        WindowRegistry.CONTACT_LIST_WINDOW.open( currentField );
      }
    } );

    // setWidth("100%") doesn't work
    result.addListener( new ContainerListenerAdapter() {

      @Override
      public void onAfterLayout( Container self ) {

        textField.setWidth( self.getWidth() - LABEL_WIDTH - 5 );
View Full Code Here

Examples of com.gwtext.client.widgets.form.TextField.addListener()

    protected Widget createSearchField() {
        final TextField searchField = new TextField("Search: ", "search");
        searchField.setAutoWidth(true);
        searchField.setEmptyText("Type search string");
        searchField.addListener(new TextFieldListenerAdapter() {
            @Override
            public void onSpecialKey(Field field, EventObject e) {
                if (e.getKey() == EventObject.ENTER) {
                    SearchUtil su = new SearchUtil(getProjectId(), IndividualsListPortlet.this);
                    //su.setBusyComponent(searchField);  //this does not seem to work
View Full Code Here

Examples of com.gwtext.client.widgets.grid.ColumnModel.addListener()

        store.setSortInfo( new SortState( "num",
                                          SortDir.ASC ) ); //NON-NLS
        if ( this.dt.groupField != null ) {
            store.setGroupField( dt.groupField );
        }
        cm.addListener(new ColumnModelListenerAdapter(){
           public void onHiddenChange(ColumnModel cm, int colIndex,
             boolean hidden) {
              final String dta = cm.getDataIndex(colIndex);           
               if (colMap.containsKey(dta)) {
                 DTColumnConfig col = colMap.get(dta);
View Full Code Here

Examples of com.gwtext.client.widgets.menu.CheckItem.addListener()

        Menu addTabMenu = new Menu();
        for (String tabName : shortToLongTabNameMap.keySet()) {
            CheckItem item = new CheckItem(tabName, enabledTabs.contains(shortToLongTabNameMap.get(tabName)));
            addTabMenu.addItem(item);
            item.addListener(new CheckItemListenerAdapter() {
                @Override
                public void onCheckChange(CheckItem item, boolean checked) {
                    String javaClassName = shortToLongTabNameMap.get(item.getText());
                    if (checked) {
                        onTabAdded(javaClassName);
View Full Code Here

Examples of com.gwtext.client.widgets.menu.Item.addListener()

        Menu addPortletMenu = new Menu();
        for (String portletName : shortToLongPortletNameMap.keySet()) {
            Item item = new Item(portletName);
            addPortletMenu.addItem(item);
            item.addListener(new BaseItemListenerAdapter() {
                @Override
                public void onClick(BaseItem item, EventObject e) {
                    String javaClassName = shortToLongPortletNameMap.get(((Item) item).getText());
                    onPortletAdded(javaClassName);
                }
View Full Code Here

Examples of com.gwtext.client.widgets.menu.MenuItem.addListener()

  public static MenuItem createMenuItem( IGWTAction action ) {

    MenuItem item = new MenuItem();
    item.setText( action.getText() );
    item.setIcon( action.getImageName() );
    item.addListener( action );
    action.registerComponent( item );

    return item;
  }
View Full Code Here

Examples of com.gwtext.client.widgets.tree.TreeNode.addListener()

                                                                                   childNode.setIcon( "images/category_small.gif" );
                                                                                   childNode.setText( current );

                                                                                   childNode.setUserObject( (path.equals( "/" )) ? current : path + "/" + current );
                                                                                   childNode.appendChild( new TreeNode( constants.PleaseWaitDotDotDot() ) );
                                                                                   childNode.addListener( new TreeNodeListenerAdapter() {
                                                                                       boolean expanding = false;

                                                                                       public void onExpand(Node node) {

                                                                                           if ( !expanding ) {
View Full Code Here

Examples of com.gwtext.client.widgets.tree.TreePanel.addListener()

        pkg.setUserObject( snapInfo );
        TreeNode root = new TreeNode( snapInfo.name );
        root.appendChild( pkg );
        TreePanel tp = GenericPanel.genericExplorerWidget( root );
        tp.setRootVisible( false );
        tp.addListener( new TreePanelListenerAdapter() {

            public void onClick(TreeNode node,
                                EventObject e) {
                Object uo = node.getUserObject();
                if ( uo instanceof Object[] ) {
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapService.addListener()

                    PortableEntryEvent portableEntryEvent = new PortableEntryEvent(key, value, oldValue, event.getEventType(), event.getMember().getUuid());
                    endpoint.sendEvent(portableEntryEvent, getCallId());
                }
            }
        };
        String registrationId = service.addListener(name, listener, key, includeValue, false);
        endpoint.setListenerRegistration(MultiMapService.SERVICE_NAME, name, registrationId);
        return registrationId;
    }

    public String getServiceName() {
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.