Examples of StateChangeEvent


Examples of org.eclipse.nebula.widgets.nattable.persistence.command.StateChangeEvent

            for (int i = 0; i < this.viewer.getTable().getItemCount(); i++) {
                String element = this.viewer.getElementAt(i).toString();
                if (configName.equals(element)) {
                    // fire event for a changed view configuration
                    fireStateChange(new StateChangeEvent(configName,
                            StateChangeType.CHANGE));
                    return;
                }
            }

            this.viewer.add(configName);
            // fire event for a newly created view configuration
            fireStateChange(new StateChangeEvent(configName,
                    StateChangeType.CREATE));
        } else if (buttonId == DELETE_ID) {
            ISelection selection = this.viewer.getSelection();
            if (selection != null && selection instanceof IStructuredSelection) {
                String configName = ((IStructuredSelection) selection)
                        .getFirstElement().toString();
                PersistenceHelper.deleteState(configName, this.properties);
                // remove the state name out of the viewer
                this.viewer.getTable().deselectAll();
                this.viewer.remove(configName);
                this.configNameText.setText(""); //$NON-NLS-1$
                // fire event for a deleted view configuration
                fireStateChange(new StateChangeEvent(configName,
                        StateChangeType.DELETE));
            }
        } else if (buttonId == LOAD_ID) {
            ISelection selection = this.viewer.getSelection();
            if (selection != null && selection instanceof IStructuredSelection) {
View Full Code Here

Examples of org.globus.workspace.scheduler.StateChangeEvent

        }
    }


    private void notifySiManager(int id, int state) {
        final StateChangeEvent simEvent = new StateChangeEvent(id,
                                                               state,
                                                               this.siManager);

        this.timerManager.schedule(simEvent, 20);
    }
View Full Code Here

Examples of org.globus.workspace.scheduler.StateChangeEvent

        //
        // In the default scheduler's case, since it handles the request
        // immediately, not doing this could significantly delay the op
        // return to the client.

        final StateChangeEvent schedulerEvent = new StateChangeEvent(ids,
                                      WorkspaceConstants.STATE_FIRST_LEGAL,
                                      this.scheduler);

        this.timerManager.schedule(schedulerEvent, 20);
       
        if(!spotInstances){
            final StateChangeEvent simEvent = new StateChangeEvent(ids,
                    WorkspaceConstants.STATE_FIRST_LEGAL,
                    this.asyncManager);

            this.timerManager.schedule(simEvent, 50);           
        }
View Full Code Here

Examples of org.openfaces.event.StateChangeEvent

        boolean newExpanded = Boolean.valueOf(value);
        FoldingPanel panel = (FoldingPanel) component;
        if (panel.isExpanded() != newExpanded) {
            panel.setExpanded(newExpanded);
            component.queueEvent(new StateChangeEvent(component));
        }
    }
View Full Code Here

Examples of org.primefaces.event.map.StateChangeEvent

     
      LatLng center = new LatLng(Double.valueOf(centerLoc[0]), Double.valueOf(centerLoc[1]));
      LatLng northeast = new LatLng(Double.valueOf(northeastLoc[0]), Double.valueOf(northeastLoc[1]));
      LatLng southwest = new LatLng(Double.valueOf(southwestLoc[0]), Double.valueOf(southwestLoc[1]));
     
      map.queueEvent(new StateChangeEvent(map, new LatLngBounds(center, northeast, southwest), zoomLevel));
     
    } else if(params.containsKey(clientId + "_pointSelected")) {
      String[] latlng = params.get(clientId + "_pointLatLng").split(",");
      LatLng position = new LatLng(Double.valueOf(latlng[0]), Double.valueOf(latlng[1]));
     
View Full Code Here

Examples of org.primefaces.event.map.StateChangeEvent

                LatLng center = new LatLng(Double.valueOf(centerLoc[0]), Double.valueOf(centerLoc[1]));
                LatLng northeast = new LatLng(Double.valueOf(northeastLoc[0]), Double.valueOf(northeastLoc[1]));
                LatLng southwest = new LatLng(Double.valueOf(southwestLoc[0]), Double.valueOf(southwestLoc[1]));

                wrapperEvent = new StateChangeEvent(this, behaviorEvent.getBehavior(), new LatLngBounds(northeast, southwest), zoomLevel, center);
            }
            else if(eventName.equals("pointSelect")) {
                String[] latlng = params.get(clientId + "_pointLatLng").split(",");
                LatLng position = new LatLng(Double.valueOf(latlng[0]), Double.valueOf(latlng[1]));
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.