/** ******** 'values' accessors ********* */ public String hostName() { return (String) values.valueForKey("hostName"); }
public Integer port() { return (Integer) values.valueForKey("port"); }
public Boolean cachingEnabled() { return (Boolean) values.valueForKey("cachingEnabled"); }
public Boolean debuggingEnabled() { return (Boolean) values.valueForKey("debuggingEnabled"); }
public Integer schedulingDailyStartTime() { return (Integer) values.valueForKey("schedulingDailyStartTime"); }
public Boolean gracefulScheduling() { return (Boolean) values.valueForKey("gracefulScheduling"); }
/** ******** Don't use this ********** */ public Integer oldport() { return (Integer) values.valueForKey("oldport"); }
public String avgTransactionTime() { if (_statistics != null) { Object _value = _statistics.valueForKey("avgTransactionTime"); if (_value != null) return (_value.toString()); } return "-"; }
public String averageIdlePeriod() { if (_statistics != null) { Object _value = _statistics.valueForKey("averageIdlePeriod"); if (_value != null) return (_value.toString()); } return "-"; }
public String transactions() { if (_statistics != null) { Object _value = _statistics.valueForKey("transactions"); if (_value != null) return (_value.toString()); } return "-"; }
/** * Returns CAN_REORDER value from configurationData(), or <code>true</code> if not * configured. * * @return <code>true</code> if column re-ordering is enabled */ public boolean canReorder() { return configurationData().valueForKey(CAN_REORDER) != null ? Boolean.valueOf((String) configurationData().valueForKey(CAN_REORDER)).booleanValue() : true; }
/** * Returns TABLE_ID value from configurationData() * * @return HTML ID for <table> implementing the grid */ public String tableID() { return (String) configurationData().valueForKey(TABLE_ID); }
/** * Returns CAN_RESORT value from configurationData(), or <code>true</code> if not * configured. * * @return <code>true</code> if data sorting is enabled */ public boolean canResort() { return configurationData().valueForKey(CAN_RESORT) != null ? Boolean.valueOf((String) configurationData().valueForKey(CAN_RESORT)).booleanValue() : true; }
/** * Returns an optional key path into row that will return a value that uniquely identifies this row. * This should be suitable for use as part of an HTML ID attribute. * * @return an optional key path into row that will return a value that uniquely identifies this row */ public String rowIdentifier() { return (String) configurationData().valueForKey(ROW_IDENTIFIER); }
/** * Returns COLUMNS value from configurationData() * * @return list of configuration for the columns to display in the grid */ protected NSMutableArray columns() { return (NSMutableArray) configurationData().valueForKey(COLUMNS); }
/** * @return <code>true</code> if currentColumn() is part of the sort * ordering and is being sorted in ascending order */ public boolean isCurrentColumnSortedAscending() { return isCurrentColumnSorted() ? SORT_ASCENDING.equals(currentColumnSortOrder().valueForKey(SORT_DIRECTION)) : false; }
/** * @return the value from row() corresponding to currentColumn() */ public Format columnFormatter() { return (Format) formattersByKeypath().valueForKey(currentKeyPath()); }
/** * Convenience getter for the displayGroups queryMin value */ public Object minValue() { return displayGroup().queryMin().valueForKey(propertyKey()); }
/** * Convenience getter for the displayGroups queryMax value */ public Object maxValue() { return displayGroup().queryMax().valueForKey(propertyKey()); }
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)); } }