/** * Sets whether this grid always shows its scroll bars, or only when necessary. * * @param alwaysShowScrollBars <code>true</code> to show scroll bars at all times */ public void setAlwaysShowScrollBars(boolean alwaysShowScrollBars) { tableDataScroller.setAlwaysShowScrollBars(alwaysShowScrollBars); }
/** * Sets whether this grid always shows its scroll bars, or only when necessary. * * @param alwaysShowScrollBars <code>true</code> to show scroll bars at all times */ public void setAlwaysShowScrollBars(boolean alwaysShowScrollBars) { tableDataScroller.setAlwaysShowScrollBars(alwaysShowScrollBars); }
/** * Sets whether this grid always shows its scroll bars, or only when necessary. * * @param alwaysShowScrollBars <code>true</code> to show scroll bars at all times */ public void setAlwaysShowScrollBars(boolean alwaysShowScrollBars) { tableDataScroller.setAlwaysShowScrollBars(alwaysShowScrollBars); }
/** * Initialize the widget. */ private void initialize() { setAlwaysShowScrollBars(false); // Prevent IE standard mode bug when a AbsolutePanel is contained. scrollableElem.getStyle().setPosition(Position.RELATIVE); containerElem.getStyle().setPosition(Position.RELATIVE); // Hack to account for the IE6/7 scrolling bug described here: // http://stackoverflow.com/questions/139000/div-with-overflowauto-and-a-100-wide-table-problem scrollableElem.getStyle().setProperty("zoom", "1"); containerElem.getStyle().setProperty("zoom", "1"); // Enable touch scrolling. setTouchScrollingDisabled(false); // Initialize the scrollable element. ScrollImpl.get().initialize(scrollableElem, containerElem); } }
/** * Getter for property 'scrollPanel'. * * @return Value for property 'scrollPanel'. */ protected Panel getScrollPanel() { if (scrollPanel == null) { scrollPanel = new RowsScrollPanel(); scrollPanel.setHeight(getOffsetHeight() + "px"); ((ScrollPanel) scrollPanel).setAlwaysShowScrollBars(false); } return scrollPanel; }
public WSAbstractGrid(boolean scrollable, GridType type) { this.type = type; table = new FlexTable(); table.setStylePrimaryName("WSGrid"); table.insertRow(0); scrollPanel = new ScrollPanel(); initWidget(scrollPanel); scrollPanel.setAlwaysShowScrollBars(scrollable); setScrollable(scrollable); scrollPanel.add(table); tableIndex = new ArrayList<ArrayList<WSCell>>(); tableIndex.add(new ArrayList<WSCell>()); setHeight("20px"); }
/*************************************** * Overridden to check for scrollbar styles. * * @see Component#applyStyle(StyleData) */ @Override public void applyStyle(StyleData rStyle) { com.google.gwt.user.client.ui.ScrollPanel rScrollPanel = (com.google.gwt.user.client.ui.ScrollPanel) getWidget(); super.applyStyle(rStyle); if (rStyle.hasFlag(StyleFlag.SCROLLBAR_HORIZONTAL_ON) || rStyle.hasFlag(StyleFlag.SCROLLBAR_VERTICAL_ON)) { rScrollPanel.setAlwaysShowScrollBars(true); } }
/** * Getter for property 'scrollPanel'. * * @return Value for property 'scrollPanel'. */ public ScrollPanel getScrollPanel() { if (scrollPanel == null) { scrollPanel = new ScrollPanel(); scrollPanel.setAlwaysShowScrollBars(false); scrollPanel.setWidget(getList()); DOM.setStyleAttribute(scrollPanel.getElement(), "overflowX", "hidden"); scrollPanel.addScrollHandler(getListScrollHandler()); } return scrollPanel; }
/** * Initialize the widget. */ private void initialize() { setAlwaysShowScrollBars(false); // Prevent IE standard mode bug when a AbsolutePanel is contained. scrollableElem.getStyle().setPosition(Position.RELATIVE); containerElem.getStyle().setPosition(Position.RELATIVE); // Hack to account for the IE6/7 scrolling bug described here: // http://stackoverflow.com/questions/139000/div-with-overflowauto-and-a-100-wide-table-problem scrollableElem.getStyle().setProperty("zoom", "1"); containerElem.getStyle().setProperty("zoom", "1"); // Enable touch scrolling. setTouchScrollingDisabled(false); // Initialize the scrollable element. ScrollImpl.get().initialize(scrollableElem, containerElem); } }
/** * Initialize the widget. */ private void initialize() { setAlwaysShowScrollBars(false); // Prevent IE standard mode bug when a AbsolutePanel is contained. scrollableElem.getStyle().setPosition(Position.RELATIVE); containerElem.getStyle().setPosition(Position.RELATIVE); // Hack to account for the IE6/7 scrolling bug described here: // http://stackoverflow.com/questions/139000/div-with-overflowauto-and-a-100-wide-table-problem scrollableElem.getStyle().setProperty("zoom", "1"); containerElem.getStyle().setProperty("zoom", "1"); // Enable touch scrolling. setTouchScrollingDisabled(false); // Initialize the scrollable element. ScrollImpl.get().initialize(scrollableElem, containerElem); } }
aScrollPanel.setAlwaysShowScrollBars(false);