Package com.cedarsoft.lookup

Examples of com.cedarsoft.lookup.Lookup.lookup()


  protected JComponent createTitleComponent( @NotNull TitleProvider<Object> provider, @NotNull Object selectedObject ) {
    Lookup details = provider.getTitle( selectedObject );

    //Insert the component
    JComponent component;
    DetailsComponentFactory componentFactory = details.lookup( DetailsComponentFactory.class );
    if ( componentFactory != null ) {
      component = componentFactory.createComponent();
    } else {
      component = details.lookup( JComponent.class );
      if ( component == null ) {
View Full Code Here


    JComponent component;
    DetailsComponentFactory componentFactory = details.lookup( DetailsComponentFactory.class );
    if ( componentFactory != null ) {
      component = componentFactory.createComponent();
    } else {
      component = details.lookup( JComponent.class );
      if ( component == null ) {
        throw new IllegalStateException( "No componentFactory and no component provided for " + selectedObject );
      }
    }
View Full Code Here

  @NotNull
  private Component createDetailsComponent( @NotNull DetailsProvider<Object> provider, @NotNull Object selectedObject ) {
    Lookup details = provider.getDetails( selectedObject );

    //Delegate the view
    PageComponentContextAware pageComponentContextAware = details.lookup( PageComponentContextAware.class );
    if ( pageComponentContextAware != null ) {
      pageComponentContextAware.updateContext( getContext() );
    }

    //When a form is available, set the title pane as messagable
View Full Code Here

    if ( pageComponentContextAware != null ) {
      pageComponentContextAware.updateContext( getContext() );
    }

    //When a form is available, set the title pane as messagable
    Form form = details.lookup( Form.class );
    if ( form != null ) {
      form.newSingleLineResultsReporter( titlePane );
    }

    //Register delegating listener
View Full Code Here

    if ( form != null ) {
      form.newSingleLineResultsReporter( titlePane );
    }

    //Register delegating listener
    delegatingApplicationListener = details.lookup( ApplicationListener.class );

    //Insert the component
    Component component;
    DetailsComponentFactory componentFactory = details.lookup( DetailsComponentFactory.class );
    if ( componentFactory != null ) {
View Full Code Here

    //Register delegating listener
    delegatingApplicationListener = details.lookup( ApplicationListener.class );

    //Insert the component
    Component component;
    DetailsComponentFactory componentFactory = details.lookup( DetailsComponentFactory.class );
    if ( componentFactory != null ) {
      component = componentFactory.createComponent();
    } else {
      component = details.lookup( Component.class );
      if ( component == null ) {
View Full Code Here

    Component component;
    DetailsComponentFactory componentFactory = details.lookup( DetailsComponentFactory.class );
    if ( componentFactory != null ) {
      component = componentFactory.createComponent();
    } else {
      component = details.lookup( Component.class );
      if ( component == null ) {
        throw new IllegalStateException( "No componentFactory and no component provided for " + selectedObject );
      }
    }
    return component;
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.