public AjaxRemoteLogging(String arg0, NSDictionary arg1, WOElement arg2) { super(arg0, arg1, arg2); _filter = (WOAssociation) arg1.objectForKey("filter"); _logger = (WOAssociation) arg1.objectForKey("logger"); _level = (WOAssociation) arg1.objectForKey("level"); _throttle = (WOAssociation) arg1.objectForKey("throttle"); }
public AjaxUpdateTrigger(String name, NSDictionary<String, WOAssociation> associations, WOElement template) { super(name, associations, template); _associations = associations; _updateContainerIDs = (WOAssociation) associations.objectForKey("updateContainerIDs"); _resetAfterUpdate = (WOAssociation) associations.objectForKey("resetAfterUpdate"); }
public boolean isLogPath() { if (statsDict.objectForKey("LogFile")!=null) { return true; } return false; }
public WOLComponentLink(String name, NSDictionary associations, WOElement template) { super(name, associations, template); _app = (WOAssociation) associations.objectForKey("app"); _component = (WOAssociation) associations.objectForKey("component"); }
public DRAttributeGroup(NSDictionary dictionary, NSArray subAttributes) { this((String)dictionary.objectForKey("keyPath"), (String)dictionary.objectForKey("format"), (String)dictionary.objectForKey("label"), ERXValueUtilities.booleanValue(dictionary.objectForKey("total")), subAttributes, (NSDictionary)dictionary.objectForKey("userInfo")); }
public AjaxIncludeScript(String name, NSDictionary associations, WOElement children) { super(name, associations, children); _name = (WOAssociation)associations.objectForKey("name"); if (_name == null) { throw new WODynamicElementCreationException("'name' is a required binding for AjaxIncludeScript."); } _framework = (WOAssociation)associations.objectForKey("framework"); }
/** Constructor that uses a {@link NSDictionary} which defines the properties. */ public DRSubMasterCriteria(NSDictionary smcdict, NSArray apossibleValues) { this( (String)smcdict.objectForKey("key"), ERXValueUtilities.booleanValue(smcdict.objectForKey("useMethod")), ERXValueUtilities.booleanValue(smcdict.objectForKey("useTimeFormat")), (String)smcdict.objectForKey("format"), (String)smcdict.objectForKey("possibleValuesUseType"), ERXValueUtilities.booleanValue(smcdict.objectForKey("groupEdges")), apossibleValues); }
try { File globalPref = new File(System.getProperty("user.home") + "/Library/Preferences/.GlobalPreferences.plist"); NSDictionary dict = (NSDictionary)PropertyListParser.parse(globalPref); NSNumber pref = (NSNumber)dict.objectForKey("com.apple.swipescrolldirection"); if(pref.boolValue()) { //natural scrolling is enabled } } catch (Exception ex) { System.out.println("Faild to parse plist: " + ex.getMessage()); }
/** * Returns whether or not the given entity has been registered as taggable. * * @param entity the entity to check * @return true if the entity is taggable, false if not */ public static boolean isTaggable(EOEntity entity) { return Boolean.TRUE.equals(entity.userInfo().objectForKey(ERTaggableEntity.ERTAGGABLE_KEY)); }
public String compoundSeparator() { NSDictionary info = _masterCriteria.userInfo(); String calFrmt = (String)info.objectForKey("compoundSeparator"); if (calFrmt != null) { return calFrmt; } return "|"; }
public NSArray attributeListAtDepth() { Number ky = Integer.valueOf(depth); //log.debug( "ky:"+ky); NSArray a = (NSArray)attributeListDict().objectForKey(ky); //log.debug( "a:"+a); return a; }
public String calendarFormatForDates() { NSDictionary info = _masterCriteria.userInfo(); String v = (String)info.objectForKey("calendarFormat"); if (v != null) { return v; } return _defaultCalendarFormatString; }
public String rangeSeparator() { NSDictionary info = _masterCriteria.userInfo(); String v = (String)info.objectForKey("rangeSeparator"); if (v != null) { return v; } return " to "; }
public NSDictionary totalDict() { NSDictionary dict = currentCoordinates(); NSDictionary totalDict = (NSDictionary)dict.objectForKey("isTotal"); return totalDict; }
@Override public boolean hasBinding(String name) { boolean result = super.hasBinding(name) || settingsDictionary().objectForKey(name) != null; log.debug("hasBinding: {} : {}", name, result); return result; }
static public NSArray masterCriteriaList(NSArray mcList) { NSMutableArray arr = new NSMutableArray(); Enumeration en = mcList.objectEnumerator(); while (en.hasMoreElements()) { NSDictionary mcdict = (NSDictionary)en.nextElement(); NSArray smcList = DRReportModel.subMasterCriteriaList((NSArray)mcdict.objectForKey("subCriteriaList")); DRMasterCriteria mc = DRMasterCriteria.withSubMasterCriteriaUserInfo(smcList, (NSDictionary)mcdict.objectForKey("userInfo")); arr.addObject(mc); } return arr; }
private void loadModel(URL url) { NSDictionary def = (NSDictionary) NSPropertyListSerialization.propertyListWithPathURL(url); for (Enumeration keys = def.allKeys().objectEnumerator(); keys.hasMoreElements();) { String key = (String) keys.nextElement(); NSDictionary indexDef = (NSDictionary) def.objectForKey(key); addIndex(key, indexDef); } }
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); }
protected WOResponse dictionaryResponse(NSDictionary<?,?> dict) { ERXResponse response = new ERXResponse(); response.appendContentString("<html><body>"); for (Enumeration<?> e = dict.keyEnumerator(); e.hasMoreElements();) { Object key = e.nextElement(); Object value = dict.objectForKey(key); response.appendContentString("<span id='" + key + "'>" + value + "</span>\n"); } response.appendContentString("</body></html>"); return response; }
@Override public WOActionResults invokeAction(WORequest worequest, WOContext wocontext) { WOComponent component = wocontext.component(); if (!booleanValueForBinding("ajax", false, component)) { WOAssociation action = associations().objectForKey("action"); if(action != null && wocontext.elementID().equals(wocontext.senderID())) { return (WOActionResults) action.valueInComponent(component); } } return super.invokeAction(worequest, wocontext); }