Examples of RadioItem


Examples of org.jampa.model.radio.RadioItem

              isFavorite = Boolean.parseBoolean(favoriteNode.getTextContent());
            }           

            if ((name != null) &&
                (url != null)) {
              RadioItem radioItem = new RadioItem(parent, name, url, isFavorite);
              parent.add(radioItem);
            }
         
          } catch (UnsupportedEncodingException e) {
            Log.getInstance(RadioReader.class).warn("Error while reading radio tag: " + e.getStackTrace());
View Full Code Here

Examples of org.jampa.model.radio.RadioItem

    if (parentCategory == null) {
      parentCategory = new CategoryRadioItem(_rootCategory, categoryName);
      _rootCategory.add(parentCategory);
    }
   
    RadioItem newRadio = new RadioItem(parentCategory, radioName, radioUrl);
   
    parentCategory.add(newRadio);
  }
View Full Code Here

Examples of org.jampa.model.radio.RadioItem

    playItem.setImage(_playImage);
    playItem.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Object selection = ((IStructuredSelection) treeViewer.getSelection()).getFirstElement();
       
        RadioItem itemToPlay = null;
        if (selection instanceof CategoryRadioItem) {
          itemToPlay = (RadioItem) ((CategoryRadioItem) selection).getChildren().get(0);
        } else {
          itemToPlay = (RadioItem) selection;
        }       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.