org.uberfire.client.annotations.OnStart类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.uberfire.client.annotations.OnStart类的一些代码示例,展示了OnStart类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OnStart类的具体详情如下:
包路径:org.uberfire.client.annotations.OnStart
类名称:OnStart

OnStart介绍

暂无

代码示例

代码示例来源:origin: org.kie.guvnor/guvnor-m2repo-editor-client

@OnStart
public void onStart( final Path path ) {
  this.path = path;
}

代码示例来源:origin: org.uberfire/widgets-core-client

@OnStart
public void onStart( final PlaceRequest place ) {
  this.place = place;
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-process-modeling-client

@OnStart
public void onStart(final PlaceRequest place) {
  this.place = place;
}

代码示例来源:origin: org.uberfire/widgets-core-client

@OnStart
public void onStart( final PlaceRequest place ) {
  this.place = place;
}

代码示例来源:origin: org.uberfire/widget-markdown

@OnStart
public void onStart() {
  view.setContent("");
}

代码示例来源:origin: org.kie.guvnor/guvnor-inbox-client

@OnStart
public void onStart( final PlaceRequest place  ) {
  this.inboxName = place.getParameter( "inboxname", INCOMING_ID );
  view.setContent(inboxName);
}

代码示例来源:origin: org.uberfire/widgets-core-client

@OnStart
public void onStart(final Path path) {
  this.path = path;
  vfsServices.call( new RemoteCallback<String>() {
    @Override
    public void callback(String response) {
      if ( response == null ) {
        view.setContent( "-- empty --" );
      } else {
        view.setContent( response );
      }
    }
  } ).readAllString( path );
}

代码示例来源:origin: org.uberfire/widgets-core-client

@OnStart
public void onStart(final Path path) {
  this.path = path;
  vfsService.call(new RemoteCallback<Map>() {
    @Override
    public void callback(Map response) {
      view.clear();
      view.addRepository( path.getFileName(),
                (String) response.get("giturl"),
                (String) response.get("description"),
                path.toURI() );
    }
  }).readAttributes(this.path);
}

代码示例来源:origin: org.uberfire/widgets-core-client

@OnStart
public void onStart() {
  view.reset();
  rootService.call(new RemoteCallback<Collection<Root>>() {
    @Override
    public void callback(Collection<Root> response) {
      for (final Root root : response) {
        view.removeIfExists(root);
        view.addNewRoot(root);
      }
    }
  }).listRoots();
}

代码示例来源:origin: org.uberfire/widget-markdown

@OnStart
public void onStart(final Path path) {
  this.path = path.getFileName();
  vfsServices.call(new RemoteCallback<String>() {
    @Override
    public void callback(final String response) {
      if (response == null) {
        view.setContent("<p>-- empty --</p>");
      } else {
        view.setContent(response);
      }
    }
  }).readAllString(path);
}

代码示例来源:origin: org.kie.guvnor/guvnor-project-config-editor-client

@OnStart
public void init( final Path path ) {
  this.path = path;
  makeMenuBar();
  view.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
  loadContent();
}

代码示例来源:origin: org.uberfire/widgets-core-client

@OnStart
public void onStart() {
  view.clear();
  rootService.call( new RemoteCallback<Collection<Root>>() {
    @Override
    public void callback(Collection<Root> response) {
      for ( final Root root : response ) {
        vfsService.call( new RemoteCallback<Map>() {
          @Override
          public void callback(Map response) {
            view.addRepository( root.getPath().getFileName(),
                      (String) response.get( "giturl" ),
                      (String) response.get( "description" ),
                      root.getPath().toURI() );
          }
        } ).readAttributes( root.getPath() );
      }
    }
  } ).listRoots();
}

代码示例来源:origin: org.kie.guvnor/guvnor-categories-editor-client

@OnStart
public void onStart( final Path path ) {
  this.path = path;
  makeMenuBar();
  view.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
  categoryService.call( getModelSuccessCallback(),
             new HasBusyIndicatorDefaultErrorCallback( view ) ).getContent( path );
}

代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {
  this.isReadOnly = place.getParameter( "readOnly", null ) == null ? false : true;
  this.path = path;
  if ( !isReadOnly ) {
    view.addMetaDataPage( path, isReadOnly );
  }
  service.call( new RemoteCallback<TestScenarioModelContent>() {
    @Override
    public void callback( TestScenarioModelContent modelContent ) {
      scenario = modelContent.getScenario();
      dmo = modelContent.getOracle();
      dmo.filter( scenario.getImports() );
      view.setScenario( modelContent.getPackageName(), scenario, dmo );
      ifFixturesSizeZeroThenAddExecutionTrace();
      if ( !isReadOnly ) {
        view.addTestRunnerWidget( scenario, service, path );
      }
      view.renderEditor();
      view.initImportsTab( dmo, scenario.getImports(), isReadOnly );
    }
  } ).loadContent( path );
  makeMenuBar();
}

代码示例来源:origin: org.kie.guvnor/guvnor-default-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {
  super.onStart( path );
  this.path = path;
  this.isReadOnly = place.getParameter( "readOnly", null ) == null ? false : true;
  makeMenuBar();
  multiPage.addWidget( super.getWidget(),
             CommonConstants.INSTANCE.EditTabTitle() );
  multiPage.addPage( new Page( metadataWidget,
                 CommonConstants.INSTANCE.MetadataTabTitle() ) {
    @Override
    public void onFocus() {
      metadataWidget.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
      metadataService.call( new MetadataSuccessCallback( metadataWidget,
                                isReadOnly ),
                 new HasBusyIndicatorDefaultErrorCallback( metadataWidget ) ).getMetadata( path );
    }
    @Override
    public void onLostFocus() {
      //Nothing to do
    }
  } );
}

代码示例来源:origin: org.kie.guvnor/guvnor-default-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {
  super.onStart( path );
  this.path = path;
  this.isReadOnly = place.getParameter( "readOnly", null ) == null ? false : true;
  makeMenuBar();
  multiPage.addWidget( super.getWidget(),
             CommonConstants.INSTANCE.EditTabTitle() );
  multiPage.addPage( new Page( metadataWidget,
                 CommonConstants.INSTANCE.MetadataTabTitle() ) {
    @Override
    public void onFocus() {
      metadataWidget.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
      metadataService.call( new MetadataSuccessCallback( metadataWidget,
                                isReadOnly ),
                 new HasBusyIndicatorDefaultErrorCallback( metadataWidget ) ).getMetadata( path );
    }
    @Override
    public void onLostFocus() {
      //Nothing to do
    }
  } );
}

代码示例来源:origin: org.kie.guvnor/guvnor-drl-text-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {
  this.path = path;
  this.place = place;
  this.isReadOnly = place.getParameter( "readOnly", null ) == null ? false : true;
  makeMenuBar();
  view.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
  multiPage.addWidget( view,
             DRLTextEditorConstants.INSTANCE.DRL() );
  multiPage.addPage( new Page( metadataWidget,
                 CommonConstants.INSTANCE.MetadataTabTitle() ) {
    @Override
    public void onFocus() {
      metadataWidget.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
      metadataService.call( new MetadataSuccessCallback( metadataWidget,
                                isReadOnly ),
                 new HasBusyIndicatorDefaultErrorCallback( metadataWidget ) ).getMetadata( path );
    }
    @Override
    public void onLostFocus() {
      //Nothing to do
    }
  } );
  loadContent();
}

代码示例来源:origin: org.kie.guvnor/guvnor-dsl-text-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {
  this.path = path;
  this.place = place;
  this.isReadOnly = place.getParameter( "readOnly", null ) == null ? false : true;
  makeMenuBar();
  view.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
  multiPage.addWidget( view,
             DSLTextEditorConstants.INSTANCE.Edit() );
  multiPage.addPage( new Page( metadataWidget,
                 CommonConstants.INSTANCE.MetadataTabTitle() ) {
    @Override
    public void onFocus() {
      metadataWidget.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
      metadataService.call( new MetadataSuccessCallback( metadataWidget,
                                isReadOnly ),
                 new HasBusyIndicatorDefaultErrorCallback( metadataWidget ) ).getMetadata( path );
    }
    @Override
    public void onLostFocus() {
      //Nothing to do
    }
  } );
  loadContent();
}

代码示例来源:origin: org.kie.guvnor/guvnor-enum-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {

代码示例来源:origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

@OnStart
public void onStart( final Path path,
           final PlaceRequest place ) {

相关文章

OnStart类方法