/** * Get the style class name that simulates a "display: inline-block" effect * across browsers. */ public static String getInlineBlockStyle() { InlineBlockStyle style = ensureResources().inlineBlockStyle(); style.ensureInjected(); return style.inlineBlock(); } }
/** * Create the default element used to wrap the Cell. The default element is a * div with display set to inline-block. * * @return the default wrapper element */ private static Element createDefaultWrapperElement() { Element div = Document.get().createDivElement(); div.setClassName(CommonResources.getInlineBlockStyle()); return div; }
public Tab(Widget child) { super(Document.get().createDivElement()); getElement().appendChild(inner = Document.get().createDivElement()); setWidget(child); setStyleName(TAB_STYLE); inner.setClassName(TAB_INNER_STYLE); getElement().addClassName(CommonResources.getInlineBlockStyle()); }
/** * Get the style class name that simulates a "display: inline-block" effect * across browsers. */ public static String getInlineBlockStyle() { InlineBlockStyle style = ensureResources().inlineBlockStyle(); style.ensureInjected(); return style.inlineBlock(); } }
CommonResources.getInlineBlockStyle(), styles.toSafeStyles(), iconSafeHtml, safeValue); int tabIndex = cell.getTabIndex(); StringBuilder openTag = new StringBuilder();
/** * Get the style class name that simulates a "display: inline-block" effect * across browsers. */ public static String getInlineBlockStyle() { InlineBlockStyle style = ensureResources().inlineBlockStyle(); style.ensureInjected(); return style.inlineBlock(); } }
/** * Construct a new {@link NativeHorizontalScrollbar}. * * @param resources the resources used by this widget */ public NativeHorizontalScrollbar(Resources resources) { setElement(uiBinder.createAndBindUi(this)); getElement().addClassName(CommonResources.getInlineBlockStyle()); setHeight(getNativeHeight() + "px"); // Apply the styles. Style style = resources.nativeHorizontalScrollbarStyle(); style.ensureInjected(); getScrollableElement().addClassName(style.nativeHorizontalScrollbar()); // Initialize the implementation. ScrollImpl.get().initialize(scrollable, contentDiv); }
/** * Construct a new {@link NativeVerticalScrollbar}. * * @param resources the resources used by this widget */ public NativeVerticalScrollbar(Resources resources) { setElement(uiBinder.createAndBindUi(this)); getElement().addClassName(CommonResources.getInlineBlockStyle()); setWidth(getNativeWidth() + "px"); // Apply the styles. Style style = resources.nativeVerticalScrollbarStyle(); style.ensureInjected(); getScrollableElement().addClassName(style.nativeVerticalScrollbar()); // inject style used in uibinder UiBinderBundle.INSTANCE.nativeVerticalScrollbarUi().ensureInjected(); // Initialize the implementation. ScrollImpl.get().initialize(scrollable, contentDiv); }
containerElem.setClassName(CommonResources.getInlineBlockStyle());
/** * Create the default element used to wrap the Cell. The default element is a * div with display set to inline-block. * * @return the default wrapper element */ private static Element createDefaultWrapperElement() { Element div = Document.get().createDivElement(); div.setClassName(CommonResources.getInlineBlockStyle()); return div; }
/** * Create the default element used to wrap the Cell. The default element is a * div with display set to inline-block. * * @return the default wrapper element */ private static Element createDefaultWrapperElement() { Element div = Document.get().createDivElement(); div.setClassName(CommonResources.getInlineBlockStyle()); return div; }
public Tab(Widget child) { super(Document.get().createDivElement()); getElement().appendChild(inner = Document.get().createDivElement()); setWidget(child); setStyleName(TAB_STYLE); inner.setClassName(TAB_INNER_STYLE); getElement().addClassName(CommonResources.getInlineBlockStyle()); }
public Tab(Widget child) { super(Document.get().createDivElement()); getElement().appendChild(inner = Document.get().createDivElement()); setWidget(child); setStyleName(TAB_STYLE); inner.setClassName(TAB_INNER_STYLE); getElement().addClassName(CommonResources.getInlineBlockStyle()); }
CommonResources.getInlineBlockStyle(), styles.toSafeStyles(), iconSafeHtml, safeValue); int tabIndex = cell.getTabIndex(); StringBuilder openTag = new StringBuilder();
CommonResources.getInlineBlockStyle(), styles.toSafeStyles(), iconSafeHtml, safeValue); int tabIndex = cell.getTabIndex(); StringBuilder openTag = new StringBuilder();
/** * Construct a new {@link NativeHorizontalScrollbar}. * * @param resources the resources used by this widget */ public NativeHorizontalScrollbar(Resources resources) { setElement(uiBinder.createAndBindUi(this)); getElement().addClassName(CommonResources.getInlineBlockStyle()); setHeight(getNativeHeight() + "px"); // Apply the styles. Style style = resources.nativeHorizontalScrollbarStyle(); style.ensureInjected(); getScrollableElement().addClassName(style.nativeHorizontalScrollbar()); // Initialize the implementation. ScrollImpl.get().initialize(scrollable, contentDiv); }
/** * Construct a new {@link NativeVerticalScrollbar}. * * @param resources the resources used by this widget */ public NativeVerticalScrollbar(Resources resources) { setElement(uiBinder.createAndBindUi(this)); getElement().addClassName(CommonResources.getInlineBlockStyle()); setWidth(getNativeWidth() + "px"); // Apply the styles. Style style = resources.nativeVerticalScrollbarStyle(); style.ensureInjected(); getScrollableElement().addClassName(style.nativeVerticalScrollbar()); // Initialize the implementation. ScrollImpl.get().initialize(scrollable, contentDiv); }
/** * Construct a new {@link NativeHorizontalScrollbar}. * * @param resources the resources used by this widget */ public NativeHorizontalScrollbar(Resources resources) { setElement(uiBinder.createAndBindUi(this)); getElement().addClassName(CommonResources.getInlineBlockStyle()); setHeight(getNativeHeight() + "px"); // Apply the styles. Style style = resources.nativeHorizontalScrollbarStyle(); style.ensureInjected(); getScrollableElement().addClassName(style.nativeHorizontalScrollbar()); // Initialize the implementation. ScrollImpl.get().initialize(scrollable, contentDiv); }
/** * Construct a new {@link NativeVerticalScrollbar}. * * @param resources the resources used by this widget */ public NativeVerticalScrollbar(Resources resources) { setElement(uiBinder.createAndBindUi(this)); getElement().addClassName(CommonResources.getInlineBlockStyle()); setWidth(getNativeWidth() + "px"); // Apply the styles. Style style = resources.nativeVerticalScrollbarStyle(); style.ensureInjected(); getScrollableElement().addClassName(style.nativeVerticalScrollbar()); // Initialize the implementation. ScrollImpl.get().initialize(scrollable, contentDiv); }
containerElem.setClassName(CommonResources.getInlineBlockStyle());