List of usage examples for com.google.gwt.event.shared HandlerManager HandlerManager
public HandlerManager(Object source)
From source file:com.sencha.gxt.chart.client.chart.axis.Axis.java
License:sencha.com license
protected HandlerManager ensureHandlers() { if (handlerManager == null) { handlerManager = new HandlerManager(this); }/*w w w . j a v a 2 s .co m*/ return handlerManager; }
From source file:com.sencha.gxt.chart.client.draw.DrawComponent.java
License:sencha.com license
protected HandlerManager ensureHandler() { if (handlerManager == null) { handlerManager = new HandlerManager(this); }/*w ww .ja v a2s . c om*/ return handlerManager; }
From source file:com.sencha.gxt.core.client.util.ToggleGroup.java
License:sencha.com license
protected HandlerManager ensureHandlers() { return handlerManager == null ? handlerManager = new HandlerManager(this) : handlerManager; }
From source file:com.sencha.gxt.data.shared.Store.java
License:sencha.com license
/** * Ensures the store's handler manager exists, creating it if necessary (lazy * construction).//from w ww .j a va 2s .c o m * * @return the store's handler manager */ protected HandlerManager ensureHandlers() { if (handlerManager == null) { handlerManager = new HandlerManager(this); } return handlerManager; }
From source file:com.smartgwt.client.core.BaseClass.java
License:Open Source License
/** * Ensures the existence of the handler manager. * * @return the handler manager// ww w. j av a 2s.c o m **/ HandlerManager ensureHandlers() { return manager == null ? manager = new HandlerManager(this) : manager; }
From source file:com.smartgwt.mobile.client.data.DataSource.java
License:Open Source License
@SGWTInternal protected HandlerManager _createHandlerManager() { return new HandlerManager(this); }
From source file:com.smartgwt.mobile.client.util.Page.java
License:Open Source License
private static HandlerManager ensureHandlerManager() { if (handlerManager == null) handlerManager = new HandlerManager(null); return handlerManager; }
From source file:com.square.client.gwt.client.ClientEntryPointGwt.java
License:Open Source License
/** * {@inheritDoc}//from ww w.jav a2 s .c o m */ public void onModuleLoad() { StyleInjector.inject(SquareResources.INSTANCE.css().getText()); StyleInjector.inject(SquareLibResources.INSTANCE.css().getText()); firefox3compatibility(); ressourceService = GWT.create(RessourceServiceGwt.class); this.constantesServiceGwtAsync = GWT.create(ConstantesServiceGwt.class); LoadingPopup.afficher(new LoadingPopupConfiguration(appControllerMessages.chargementApplication())); ressourceService.getRessourceConnectee(new AsyncCallback<DimensionRessourceModel>() { @Override public void onSuccess(final DimensionRessourceModel ressource) { constantesServiceGwtAsync.getConstantes(new AsyncCallback<ConstantesModel>() { @Override public void onFailure(Throwable caught) { LoadingPopup.stopAll(); ErrorPopup.afficher(new ErrorPopupConfiguration(caught)); } @Override public void onSuccess(ConstantesModel constantesGwt) { final AppControllerConstants appControllerConstants = (AppControllerConstants) GWT .create(AppControllerConstants.class); new AppController(new HandlerManager(null), appControllerConstants, appControllerMessages, ressource, constantesGwt).showPresenter(RootPanel.get("slotPrincipal")); LoadingPopup.stop(); } }); } @Override public void onFailure(Throwable caught) { ErrorPopup.afficher(new ErrorPopupConfiguration(caught)); } }); }
From source file:com.square.client.gwt.client.view.action.moteur.recherche.ActionMoteurRechercheViewImpl.java
License:Open Source License
private void createRemotePagingTable() { remotePagingTableAction = new RemotePagingTable<ActionRechercheModel, ActionCritereRechercheModel>( ActionsMoteurRechercheViewImplConstants.NB_ELEMENT_PAR_PAGE, true) { @Override// ww w . j av a2 s .co m public int setDefaultSortAsc() { return RemotePagingSortGwt.REMOTE_PAGING_SORT_DESC; } public String setDefaultSortField() { return constantes.getOrderByActionDateCreation(); } @Override public Column[] setHeader() { return new Column[] { new Column(viewConstants.headerPriorite(), constantes.getOrderByActionPriorite()), new Column(viewConstants.headerDateAction(), constantes.getOrderByActionDateAction()), new Column(viewConstants.headerHeureAction()), new Column(viewConstants.headerDateCreation(), constantes.getOrderByActionDateCreation()), new Column(viewConstants.headerType(), constantes.getOrderByActionType()), new Column(viewConstants.headerObjet(), constantes.getOrderByActionObjet()), new Column(viewConstants.headerSousObjet(), constantes.getOrderByActionSsObjet()), new Column(viewConstants.headerStatut(), constantes.getOrderByActionStatut()), new Column(viewConstants.headerAgence(), constantes.getOrderByActionAttributionAgence()), new Column(viewConstants.headerCommerciale(), constantes.getOrderByActionAttributionRessource()), new Column(viewConstants.headerDateTerminee(), constantes.getOrderByActionDateTerminee()), }; } @Override public void setRow(int row, ActionRechercheModel action) { int col = 0; setWidget(row, col++, new Label(action.getPriorite() != null ? action.getPriorite() : "", false)); setWidget(row, col++, new Label(action.getDateAction(), false)); setWidget(row, col++, new Label(action.getHeureAction() != null ? action.getHeureAction() : "", false)); setWidget(row, col++, new Label(action.getDateCreation() != null ? action.getDateCreation() : "", false)); setWidget(row, col++, new Label(action.getType() != null ? action.getType() : "")); setWidget(row, col++, new Label(action.getObjet() != null ? action.getObjet() : "")); setWidget(row, col++, new Label(action.getSousObjet() != null ? action.getSousObjet() : "")); setWidget(row, col++, new Label(action.getStatut() != null ? action.getStatut() : "", false)); setWidget(row, col++, new Label(action.getAgence() != null ? action.getAgence().getLibelle() : "")); setWidget(row, col++, new Label(action.getCommercial() != null ? action.getCommercial().getNom() + ESPACE + action.getCommercial().getPrenom() : "")); setWidget(row, col++, new Label(action.getDateTerminee() != null ? action.getDateTerminee() : "", false)); } @Override public void setDataProvider(RemotePagingCriteriasGwt<ActionCritereRechercheModel> params, AsyncCallback<RemotePagingResultsGwt<ActionRechercheModel>> callback) { remotePagingHandlerManager.fireEvent( new SetDataProviderEvent<ActionCritereRechercheModel, ActionRechercheModel>(params, callback)); } @Override public void setCellClicked(ActionRechercheModel objet) { remotePagingHandlerManager.fireEvent(new SetCellClickedEvent<ActionRechercheModel>(objet)); } }; remotePagingTableAction.ensureDebugId(viewDebugIdConstants.debugIdRemotePagingTableAction()); remotePagingHandlerManager = new HandlerManager(remotePagingTableAction); remotePagingTableAction.setWidth(AppControllerConstants.POURCENT_100); }
From source file:com.square.client.gwt.client.view.campagne.moteur.recherche.CampagneMoteurRechercheViewImpl.java
License:Open Source License
private void construireBlocResultat() { remotePagingTableCampagne = new RemotePagingTable<CampagneRechercheModel, CampagneCriteresRechercheModel>( CampagneMoteurRechercheViewImplConstants.NB_ELEMENT_PAR_PAGE, true) { @Override// w ww . j av a 2 s.c o m public void setRow(int row, CampagneRechercheModel campagne) { setWidget(row, 0, new Label(campagne.getCode())); setWidget(row, 1, new Label(campagne.getLibelle())); setWidget(row, 2, new Label(campagne.getStatut() != null ? campagne.getStatut().getLibelle() : "")); setWidget(row, 3, new Label(campagne.getDateDebut())); setWidget(row, 4, new Label(campagne.getRessource() != null ? campagne.getRessource().getNom() + " " + campagne.getRessource().getPrenom() : "")); } @Override public Column[] setHeader() { return new Column[] { new Column(viewConstants.headerCode(), viewConstants.fieldCodeCampagne()), new Column(viewConstants.headerLibelle(), viewConstants.fieldLibelleCampagne()), new Column(viewConstants.headerStatut(), viewConstants.fieldStatut()), new Column(viewConstants.headerDateDebut(), viewConstants.fieldDateDebut()), new Column(viewConstants.headerCreateur(), viewConstants.fieldCreateur()) }; } @Override public String setDefaultSortField() { return viewConstants.fieldCodeCampagne(); } @Override public int setDefaultSortAsc() { return RemotePagingSortGwt.REMOTE_PAGING_SORT_ASC; } @Override public void setDataProvider(RemotePagingCriteriasGwt<CampagneCriteresRechercheModel> params, AsyncCallback<RemotePagingResultsGwt<CampagneRechercheModel>> callback) { remotePagingHandlerManager.fireEvent( new SetDataProviderEvent<CampagneCriteresRechercheModel, CampagneRechercheModel>(params, callback)); } @Override public void setCellClicked(CampagneRechercheModel objet) { remotePagingHandlerManager.fireEvent(new SetCellClickedEvent<CampagneRechercheModel>(objet)); } }; remotePagingTableCampagne.ensureDebugId(viewDebugIdConstants.debugIdRemotePagingTableCampagne()); remotePagingHandlerManager = new HandlerManager(remotePagingTableCampagne); remotePagingTableCampagne.setWidth(AppControllerConstants.POURCENT_100); conteneur.add(remotePagingTableCampagne); }