Code example for Node

Methods: getNodeName

0
      Component component = null;
      if (node == null) {
         Log.e("OpenRemote-COMPONENT", "The node is null in buildWithXML.");
         return null; 
      } 
      if (BUTTON.equals(node.getNodeName())) {
         component =  new ORButton(node);
      } else if (SWITCH.equals(node.getNodeName())) {
         component = new Switch(node);
      } else if (SLIDER.equalsIgnoreCase(node.getNodeName())) {
         component = new Slider(node);
      } else if (COLORPICKER.equals(node.getNodeName())) {
         component = new ColorPicker(node);
      } 
      return component;
   } 
}