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);
}
}