package com.vci.client.ui.table; import java.util.Hashtable; public class VCIBaseTableNode { public Hashtable htTable = null; private Object obj = null; public VCIBaseTableNode(Object obj) { this.obj = obj; } /** * save the key and value into hashtable. when the Hashtable is null, * it will create a new one. * * @param strName * @param obj */ public void setPropertyValueByName(String strName,Object obj) { if ( htTable == null ) htTable = new Hashtable(); htTable.put(strName,obj); } /** * get porperty value according the key from the Hashtable * * @param strPropertyName * @return */ public Object getPropertyValueByName(String strPropertyName) { if ( this.htTable == null ) { return ""; } else { if ( this.htTable.containsKey(strPropertyName) ) { return htTable.get(strPropertyName); } else return ""; } } /** * set the Hashtable value * * @param ht */ @SuppressWarnings("unchecked") public void setPropertyValues(Hashtable ht) { htTable = (Hashtable) ht.clone(); } /** * get the Hashtable value * * @return */ public Hashtable getPropertyHashtable() { return this.htTable; } public Object getObj() { return this.obj; } public void setObj(Object obj) { this.obj = obj; } }