Author: jaz
Date: Mon Mar 7 21:30:37 2011
New Revision: 1078957
URL:
http://svn.apache.org/viewvc?rev=1078957&view=revLog:
made the set status(es) and type(s) configurable using a generic setter
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderListState.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderListState.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderListState.java?rev=1078957&r1=1078956&r2=1078957&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderListState.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderListState.java Mon Mar 7 21:30:37 2011
@@ -203,6 +203,9 @@ public class OrderListState {
public Map<String, String> getOrderTypeState() { return orderTypeState; }
public Map<String, String> getorderFilterState() { return orderFilterState; }
+ public void setStatus(String param, boolean b) { orderStatusState.put(param, (b ? "Y" : "N")); }
+ public void setType(String param, boolean b) { orderTypeState.put(param, (b ? "Y" : "N")); }
+
public boolean hasStatus(String param) { return ("Y".equals(orderStatusState.get(param))); }
public boolean hasType(String param) { return ("Y".equals(orderTypeState.get(param))); }
public boolean hasFilter(String param) { return ("Y".equals(orderFilterState.get(param))); }