Search in sources :

Example 16 with Style

use of com.google.gwt.dom.client.Style in project che by eclipse.

the class SpeedSearch method initSearchPopUp.

private void initSearchPopUp() {
    this.searchPopUp = new SearchPopUp();
    Style style = this.searchPopUp.getElement().getStyle();
    style.setBackgroundColor("grey");
    style.setBorderStyle(Style.BorderStyle.SOLID);
    style.setBorderColor("#dbdbdb");
    style.setBorderWidth(1, Style.Unit.PX);
    style.setPadding(2, Style.Unit.PX);
    style.setPosition(Style.Position.FIXED);
    style.setTop(100, Style.Unit.PX);
    style.setLeft(20, Style.Unit.PX);
}
Also used : Style(com.google.gwt.dom.client.Style)

Example 17 with Style

use of com.google.gwt.dom.client.Style in project che by eclipse.

the class EditorPartStackView method onAttach.

/** {@inheritDoc} */
@Override
protected void onAttach() {
    super.onAttach();
    Style style = getElement().getParentElement().getStyle();
    style.setHeight(100, PCT);
    style.setWidth(100, PCT);
}
Also used : Style(com.google.gwt.dom.client.Style)

Example 18 with Style

use of com.google.gwt.dom.client.Style in project che by eclipse.

the class EditorMultiPartStackViewImpl method onAttach.

@Override
protected void onAttach() {
    super.onAttach();
    Style style = getElement().getParentElement().getStyle();
    style.setHeight(100, PCT);
    style.setWidth(100, PCT);
}
Also used : Style(com.google.gwt.dom.client.Style)

Example 19 with Style

use of com.google.gwt.dom.client.Style in project che by eclipse.

the class RecipesContainerViewImpl method onAttach.

/** {@inheritDoc} */
@Override
protected void onAttach() {
    super.onAttach();
    Style style = getElement().getParentElement().getParentElement().getStyle();
    style.setHeight(100, PCT);
    style.setWidth(100, PCT);
}
Also used : Style(com.google.gwt.dom.client.Style)

Example 20 with Style

use of com.google.gwt.dom.client.Style in project gwt-test-utils by gwt-test-utils.

the class GwtStyleUtils method getStyle.

public static Style getStyle(Element element) {
    assert Element.is(element) : "not an Element";
    Style style = JavaScriptObjects.getObject(element, STYLE_OBJECT_FIELD);
    if (style == null) {
        style = newStyle();
        JavaScriptObjects.setProperty(element, STYLE_OBJECT_FIELD, style);
    }
    return style;
}
Also used : Style(com.google.gwt.dom.client.Style)

Aggregations

Style (com.google.gwt.dom.client.Style)43 Element (com.google.gwt.dom.client.Element)5 Button (com.google.gwt.user.client.ui.Button)4 Image (com.google.gwt.user.client.ui.Image)4 GwtTestTest (com.googlecode.gwt.test.GwtTestTest)4 Test (org.junit.Test)4 ImageElementEx (org.rstudio.core.client.dom.ImageElementEx)3 ImageResource2x (org.rstudio.core.client.resources.ImageResource2x)3 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)2 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)2 Command (com.google.gwt.user.client.Command)2 Timer (com.google.gwt.user.client.Timer)2 FlexTable (com.google.gwt.user.client.ui.FlexTable)2 HTMLPanel (com.google.gwt.user.client.ui.HTMLPanel)2 SimplePanel (com.google.gwt.user.client.ui.SimplePanel)2 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)2 MultiLineLabel (org.rstudio.core.client.widget.MultiLineLabel)2 MessageDialogImages (org.rstudio.core.client.widget.images.MessageDialogImages)2 PreloaderCallback (com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderCallback)1 PreloaderState (com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderState)1