Package com.tivo.hme.sdk

Examples of com.tivo.hme.sdk.Resource


            this.props = props;
        }
       
        public Element getElement() {
            if (element == null) {
                Resource resource = app.getResource(resourcePath);
                element = new Element(CustomSkin.this, name, width, height, resource);
                if (props != null) {
                    //set all the properties
                    Enumeration e = props.propertyNames();
                    while (e.hasMoreElements()) {
View Full Code Here


  }
 
  public void lineDown() {
    validate();
    if (offset > pageHeight-totalHeight) {
          Resource anim = animate ? getResource(ANIM) : null;
      offset = Math.max(pageHeight-totalHeight, offset-lineHeight);
      offset = Math.min(0, offset);
      setTranslation(0, offset, anim);
      refresh();
      getBApp().play("updown.snd");
View Full Code Here

     * wrap the elements that are currently visible.
     */
    @SuppressWarnings("unchecked")
    public void refresh() {
        BScreen screen = getScreen();
        Resource anim = animate ? getResource(ANIM) : null;
        animate = false;
        int size = size();

        screen.setPainting(false);
        try {
View Full Code Here

  }
 
  public void pageUp() {
    validate();
    if (offset < 0) {
          Resource anim = animate ? getResource(ANIM) : null;
      offset = Math.min(0, offset+pageHeight);
      setTranslation(0, offset, anim);
      refresh();
      getBApp().play("pageup.snd");
    }
View Full Code Here

  }
 
  public void pageDown() {
    validate();
    if (offset > pageHeight-totalHeight) {
          Resource anim = animate ? getResource(ANIM) : null;
      offset = Math.max(pageHeight-totalHeight, offset-pageHeight);
      offset = Math.min(0, offset);
      setTranslation(0, offset, anim);
      refresh();
      getBApp().play("pagedown.snd");
View Full Code Here

  }
 
  public void lineUp() {
    validate();
    if (offset < 0) {
          Resource anim = animate ? getResource(ANIM) : null;
      offset = Math.min(0, offset+lineHeight);
      setTranslation(0, offset, anim);
      refresh();
      getBApp().play("updown.snd");
    }
View Full Code Here

TOP

Related Classes of com.tivo.hme.sdk.Resource

Copyright © 2018 www.massapicom. 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.