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);
}
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);
}
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);
}
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);
}
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;
}
Aggregations