Ejemplo n.º 1
0
 /**
  * Get Tab with ID
  *
  * @param AD_Tab_ID
  * @return tab or null
  */
 public UITab getTab(int AD_Tab_ID) {
   Integer tabKey = Integer.valueOf(AD_Tab_ID);
   UITab tab = m_tabs.get(tabKey);
   if (tab == null) {
     // Check added for referenced tabs
     if (m_referencetabs.get(tabKey) != null) return m_referencetabs.get(tabKey);
     throw new CompiereStateException("No such tab:" + AD_Tab_ID);
   } // find in window
   return tab;
 } // getTab
Ejemplo n.º 2
0
 /**
  * Get Field
  *
  * @param AD_Field_ID id
  * @param windowNo relative windowNo
  * @return field or null
  */
 public UIField getField(int AD_Field_ID, int windowNo) {
   Integer key = Integer.valueOf(AD_Field_ID);
   UIField field = m_fields.get(key);
   if (field == null) {
     UIFieldVOFactory fieldFactory = new UIFieldVOFactory();
     UIFieldVO vo = fieldFactory.get(m_context, AD_Field_ID);
     // m_context.setSOTrx(windowNo, isSOTrx);
     if (vo != null) {
       field = new UIField(vo);
       field.initialize(m_context, windowNo);
       log.warning("Loaded directly: " + field); // SOTrx may not
       // be correct
       m_fields.put(key, field); // save in cache
     }
   } // create new
   return field;
 } // getField
Ejemplo n.º 3
0
 public NodeVO getNode(String key) {
   return m_nodes.get(key);
 }