Package er.iui.example.components

Source Code of er.iui.example.components.ArrayView

package er.iui.example.components;

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

import er.extensions.components.ERXComponent;

import com.webobjects.foundation.NSArray;

// Generated by the WOLips Templateengine Plug-in at Mar 7, 2008 10:43:33 PM

public class ArrayView extends ERXComponent {

  public ArrayView(WOContext context) {
    super(context);
  }

  public NSArray<Object> objs;

  public Object obj;

  public boolean pointsToArray() { return (obj instanceof com.webobjects.foundation.NSArray); }
  public boolean pointsToDictionary() { return (obj instanceof com.webobjects.foundation.NSDictionary); }
  public boolean pointsToObject() { return (!(obj instanceof com.webobjects.foundation.NSDictionary) && !(obj instanceof com.webobjects.foundation.NSArray)); }

  public WOActionResults toDictView() {
      ERXComponent nextPage = pageWithName(DictionaryView.class);
      nextPage.takeValueForKey(obj, "obj");
      return nextPage;
  }

  public WOActionResults toArrayView() {
      ERXComponent nextPage = pageWithName(DictionaryView.class);
      nextPage.takeValueForKey(obj, "objs");
      return nextPage;
  }

  public WOActionResults back() {
    System.out.println("DictionaryView.back: BACK");
    return pageWithName(Main.class);
  }
}
TOP

Related Classes of er.iui.example.components.ArrayView

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.