Example #1
0
 /**
  * Returns a component that the passed element represents. Shorthand for {@link
  * ComponentMgr#getComponent(ExtElement)}.
  *
  * @param element the component's element
  * @return the Component
  */
 public static Component getCmp(ExtElement element) {
   return ComponentMgr.getComponent(element);
 }
Example #2
0
 /**
  * Returns a component by id. Shorthand for {@link ComponentMgr#getComponent(String)}.
  *
  * @param id the component ID
  * @return the Component
  */
 public static Component getCmp(String id) {
   return ComponentMgr.getComponent(id);
 }