Package er.examples.textsearchdemo.components

Source Code of er.examples.textsearchdemo.components.PageWrapper

package er.examples.textsearchdemo.components;

import com.webobjects.appserver.WOActionResults;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;

import er.extensions.components.ERXStatelessComponent;

public class PageWrapper extends ERXStatelessComponent {
 
    public PageWrapper(WOContext context) {
        super(context);
    }

  public boolean showBackButton() {
    return !( context().page().name().equals( Main.class.getName() ) );
  }

  public WOActionResults returnAction() {
    WOComponent backPage = (WOComponent)this.objectValueForBinding("backPage");
    if (backPage == null) {
      backPage = pageWithName(Main.class.getName());
    }
    return backPage;
  }
 
 

}
TOP

Related Classes of er.examples.textsearchdemo.components.PageWrapper

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.