static public void setFormatterForFormat(Format formatter, String calFormat) { synchronized(_calFormatDict) { _calFormatDict.setObjectForKey(formatter, calFormat); } }
/** * @param key the name of the index * @param index the indexer instance having the name of the index and the index definition from the indexModel file */ protected void addIndex(String key, ERIndex index) { indices.setObjectForKey(index, key); }
public void registerImporter(String extension, SeleniumTestImporter importer) { log.debug("Registering importer '{}' for extension '{}'", importer.name(), extension); _importersByExtensionMap.setObjectForKey(importer, extension); _importersByNameMap.setObjectForKey(importer, importer.name()); }
public void setIsAString(boolean v) { if (v) { //log.debug( "setIsAString: to _YES"); masterCriteria.userInfo().setObjectForKey("true", "IS_STRING"); } else { //log.debug( "setIsAString: to _NO"); masterCriteria.userInfo().setObjectForKey("false", "IS_STRING"); } //log.debug( "setIsAString: "+(masterCriteria.userInfo().objectForKey("IS_STRING"))); }
public static void setUpdateContainerID(WORequest request, String updateContainerID) { if (updateContainerID != null) { ERXWOContext.contextDictionary().setObjectForKey(updateContainerID, ERXAjaxApplication.KEY_UPDATE_CONTAINER_ID); } }
protected static NSDictionary processAssociations(NSDictionary associations) { NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations; mutableAssociations.setObjectForKey(new WOConstantValueAssociation("button"), "type"); return mutableAssociations; } }
public void setShowOther(boolean v) { if (v) { masterCriteria.userInfo().setObjectForKey("true", "SHOW_OTHER"); } else { masterCriteria.userInfo().setObjectForKey("false", "SHOW_OTHER"); } }
protected static NSDictionary<String, WOAssociation> processAssociations(NSDictionary<String, WOAssociation> associations) { NSMutableDictionary<String, WOAssociation> mutableAssociations = (NSMutableDictionary<String, WOAssociation>) associations; mutableAssociations.setObjectForKey(new WOConstantValueAssociation("javascript:void(0)"), "href"); return mutableAssociations; } }
public void setShowTotal(boolean v) { if (v) { masterCriteria.userInfo().setObjectForKey("true", "SHOW_TOTAL"); } else { masterCriteria.userInfo().setObjectForKey("false", "SHOW_TOTAL"); } }
/** * Remove this dialog instance from the context, replacing the previous one if any. * @see #pushDialog() */ protected void popDialog() { if (outerDialog != null) { ERXWOContext.contextDictionary().setObjectForKey(outerDialog, AjaxModalDialog.class.getName()); } else { ERXWOContext.contextDictionary().removeObjectForKey(AjaxModalDialog.class.getName()); } }
/** * Overridden to add the Actor into the dictionary. * @param event logging event */ @Override public NSMutableDictionary composeExceptionPageDictionary(LoggingEvent event) { NSMutableDictionary result = super.composeExceptionPageDictionary(event); result.setObjectForKey(ERCoreBusinessLogic.actor(),"actor"); return result; } /**
public void setTopCriteria(DRCriteria c) { //log.debug( "c:"+c); if(c != null){ String ky = c.masterCriteria().label(); //log.debug( "ky:"+ky); if (ky != null) { _currentZCriteria.setObjectForKey(c, ky); } } _topCriteria = c; }
static public String pListStringAttributeListMasterCriteriaList(NSArray attList, NSArray mcList) { NSMutableDictionary dict = new NSMutableDictionary(); NSArray mcListString = DRReportModel.masterCriteriaListString(mcList); NSArray attListString = DRReportModel.attributeListString(attList); dict.setObjectForKey(mcListString, GROUP_DEF_KEY); dict.setObjectForKey(attListString, ATTRIBUTE_DEF_KEY); return dict.toString(); }
public void setTopCriteriaV(DRCriteria c) { if(c != null) { String ky = c.masterCriteria().label(); if (ky != null) { _currentZCriteria.setObjectForKey(c, ky); } } _topCriteriaV = c; }
public String clickToOpenUrl() { String app = (String) valueForBinding("app"); if (app == null) { app = NSBundle.mainBundle().name(); } NSMutableDictionary params = new NSMutableDictionary(); params.setObjectForKey(app, "app"); params.setObjectForKey("REPLACEME", "component"); return WOLipsUtilities.wolipsUrl("openComponent", params); }
public void criteriaWithPossibleValueList(NSDictionary vlDict) { NSDictionary valueDict = valueDictFromValues(vlDict); String lookupKey = (String)valueDict.objectForKey("lookupKey"); DRCriteria crit = DRCriteria.withMasterCriteriaValueDict(this, valueDict); _criteriaLookupDict.setObjectForKey(crit, lookupKey); }
public static final void highlight(Object obj, boolean isNew) { if (obj != null) { NSMutableDictionary highlightedObjects = (NSMutableDictionary) ERXWOContext.contextDictionary().valueForKey(AjaxHighlight.HIGHLIGHTED_KEY); if (highlightedObjects == null) { highlightedObjects = new NSMutableDictionary(); ERXWOContext.contextDictionary().takeValueForKey(highlightedObjects, AjaxHighlight.HIGHLIGHTED_KEY); } highlightedObjects.setObjectForKey(new HighlightMetadata(isNew), highlightedValue(obj)); } }
public void updateZList(DRGroup group) { DRCriteria crit; DRMasterCriteria mc = group.masterCriteria(); NSArray srtdList = group.sortedCriteriaList(); String mcLabel = mc.label(); crit = (DRCriteria)zCriteria().objectForKey(mcLabel); if (crit == null) { crit = (DRCriteria)srtdList.objectAtIndex(0); zCriteria().setObjectForKey(crit, mcLabel); } }
/** * Ajax action method for when control clicked to remove all sorting. * Updates configurationData() and displayGroup(). */ public void removeSorting() { if (canResort()) { configurationData().setObjectForKey(hasMandatorySort() ? new NSMutableArray(manadatorySortDictionary()) : new NSMutableArray(), SORT_ORDER); clearCachedConfiguration(); updateDisplayGroupSort(); } }
public String testLink() { NSMutableDictionary<String, Object> queryArgs = new NSMutableDictionary<String, Object>(); String format = context().request().stringFormValueForKey("format"); if (format != null) queryArgs.setObjectForKey(format, "format"); context().generateCompleteURLs(); String link = context().directActionURLForActionNamed(String.format("SeleniumTestSuite/%s%s", (hasTestGroup() ? testGroupName() + ERSelenium.SUITE_SEPERATOR : ""), testFile.getName()), queryArgs, context().request().isSecure(), false); context().generateRelativeURLs(); return link; }