package er.iui.components;
import com.webobjects.appserver.WOAssociation;
import com.webobjects.appserver.WOElement;
import com.webobjects.appserver._private.WOHyperlink;
import com.webobjects.foundation.NSDictionary;
import com.webobjects.foundation.NSMutableDictionary;
import er.extensions.appserver.ERXProxyAssociation;
public class ERIUINextLink extends WOHyperlink {
public ERIUINextLink(String name, NSDictionary associations, WOElement template) {
super(name, ERIUINextLink.processAssociations(associations, template), template);
}
@SuppressWarnings("unchecked")
protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "transitionNext", null, true), "class");
return mutableAssociations;
}
}