Examples of BHighlight


Examples of com.tivo.hme.bananas.BHighlight

            font = "default-24.font";
        }
        searchButton.setResource(createText(font, tivoWhite, RESOURCES.getString("search.searchButton")));
        searchButton.setBarAndArrows(BAR_DEFAULT, BAR_HANG, "pop", "push", H_UP, null, true);
        searchButton.setFocusable(true);
        BHighlight left = searchButton.getHighlights().get(H_LEFT);
        if (left != null) {
          left.setVisible(H_VIS_FALSE);
        }
        BHighlight up = searchButton.getHighlights().get(H_UP);
        if (up != null) {
          up.setVisible(H_VIS_FALSE);
        }
    }
View Full Code Here

Examples of com.tivo.hme.bananas.BHighlight

    public void setBarAndArrows(int bar_left, int bar_right, Object action_left, Object action_right) {
        if (mutable) {
            getRowHighlights().setBarAndArrows(bar_left, bar_right, action_left, "focusMove", true);
            getUpDownHighlights().setBarAndArrows(BAR_DEFAULT, BAR_DEFAULT, "focusRow", action_right, true);
   
            BHighlight left = getUpDownHighlights().get(H_LEFT);
            BHighlight right = getUpDownHighlights().get(H_RIGHT);
            if (left != null && right != null) {
                left.setVisible(H_VIS_FALSE);
                right.setVisible(H_VIS_FALSE);
            }
            getUpDownHighlights().setWhisperingArrow("up", A_LEFT+10, A_CENTER, "moveUp");
            getUpDownHighlights().setWhisperingArrow("down", A_RIGHT-10, A_CENTER, "moveDown");
        } else {
            getRowHighlights().setBarAndArrows(bar_left, bar_right, action_left, action_right, true);
View Full Code Here

Examples of com.tivo.hme.bananas.BHighlight

            //
            // 5. refresh pageup/pagedown highlights
            //

            BHighlights h = getHighlights();
            BHighlight pageup = h.get(H_PAGEUP);
            BHighlight pagedown = h.get(H_PAGEDOWN);
            if (pageup != null && pagedown != null) {
                pageup.setVisible((top > 0) ? H_VIS_TRUE : H_VIS_FALSE);
                pagedown.setVisible((top + nVisibleRows < rows.size()) ? H_VIS_TRUE : H_VIS_FALSE);
                h.refresh(anim);
            }

            //
            // 6. refresh row highlights if we still have focus
            //

            if (focused != -1) {
                h = getRowHighlights();
                BHighlight up = h.get(H_UP);
                BHighlight down = h.get(H_DOWN);
                if (up != null && down != null) {
                    up.setVisible((focused > 0) ? H_VIS_FOCUS : H_VIS_FALSE);
                    down.setVisible((focused < size - 1) ? H_VIS_FOCUS : H_VIS_FALSE);
                }
                h.refresh(anim);
               
                if (mutable) {
                    h = getUpDownHighlights();
                    up = h.get(H_UP);
                    down = h.get(H_DOWN);
                    if (up != null && down != null) {
                        up.setVisible((focused > 0) ? H_VIS_FOCUS : H_VIS_FALSE);
                        down.setVisible((focused < size - 1) ? H_VIS_FOCUS : H_VIS_FALSE);
                    }
                    h.refresh(anim);
                }
               
            } else if (isAncestorOf(screen.getFocus())) {
View Full Code Here

Examples of com.tivo.hme.bananas.BHighlight

  public void refresh() {
    refreshHighlights();
  }
 
  protected void refreshHighlights() {
    BHighlight up = getHighlights().get(H_PAGEUP);
    if (up != null) {
      up.setVisible((offset < 0) ? H_VIS_TRUE : H_VIS_FALSE);
    }
   
    BHighlight down = getHighlights().get(H_PAGEDOWN);
    if (down != null) {
      down.setVisible((offset > pageHeight-totalHeight) ? H_VIS_TRUE : H_VIS_FALSE);
    }
    getHighlights().refresh();
  }
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.