List of usage examples for com.google.gwt.dom.client Style setPosition
public void setPosition(Position value)
From source file:stroom.dashboard.client.vis.VisFrame.java
License:Apache License
public VisFrame() { super("vis.html");// + "?time=" + System.currentTimeMillis()); final Style style = getElement().getStyle(); style.setPosition(Position.ABSOLUTE); style.setLeft(0, Unit.PX);// w w w . j a v a2s .c o m style.setRight(0, Unit.PX); style.setTop(0, Unit.PX); style.setBottom(0, Unit.PX); style.setWidth(100, Unit.PCT); style.setHeight(100, Unit.PCT); style.setMargin(0, Unit.PX); style.setPadding(0, Unit.PX); style.setBorderWidth(0, Unit.PX); messageSupport = new MessageSupport(getElement()); }
From source file:stroom.dashboard.client.vis.VisPresenter.java
License:Apache License
@Inject public VisPresenter(final EventBus eventBus, final VisView view, final Provider<VisSettingsPresenter> settingsPresenterProvider, final ClientDispatchAsync dispatcher) { super(eventBus, view, settingsPresenterProvider); this.visFunctionCache = new VisFunctionCache(eventBus); this.scriptCache = new ScriptCache(eventBus); this.dispatcher = dispatcher; visFrame = new VisFrame(); visPane = visFrame;//from w w w .ja v a 2 s. co m view.setVisPane(visPane); final Style style = visFrame.getElement().getStyle(); style.setPosition(Position.ABSOLUTE); style.setOpacity(0); style.setZIndex(2); RootPanel.get().add(visFrame); }
From source file:stroom.pipeline.structure.client.view.PipelineTreePanel.java
License:Apache License
private void setAbsoluteLeftTop(final com.google.gwt.dom.client.Element element) { final Style style = element.getStyle(); style.setPosition(Position.ABSOLUTE); style.setLeft(0, Unit.PX);//from w w w . j a v a 2s .c o m style.setTop(0, Unit.PX); }
From source file:stroom.query.client.ExpressionTreePanel.java
License:Apache License
private void setAbsoluteLeftTop(final Element element) { final Style style = element.getStyle(); style.setPosition(Position.ABSOLUTE); style.setLeft(0, Unit.PX);//from w w w . j a va 2s. co m style.setTop(0, Unit.PX); }
From source file:stroom.widget.htree.client.LayeredCanvas.java
License:Apache License
private LayeredCanvas() { final Style style = getElement().getStyle(); style.setPosition(Position.RELATIVE); style.setWidth(width, Unit.PX);/*from w w w. j av a 2 s . c o m*/ style.setHeight(height, Unit.PX); }
From source file:stroom.widget.htree.client.LayeredCanvas.java
License:Apache License
private Canvas createLayer(final String name) { Canvas canvas = Canvas.createIfSupported(); if (canvas != null) { layerMap.put(name, canvas);/* w ww . j a va2 s .c om*/ final Style style = canvas.getElement().getStyle(); style.setPosition(Position.ABSOLUTE); style.setLeft(0, Unit.PX); style.setTop(0, Unit.PX); style.setWidth(width, Unit.PX); style.setHeight(height, Unit.PX); style.setOutlineStyle(OutlineStyle.NONE); canvas.setCoordinateSpaceWidth(width); canvas.setCoordinateSpaceHeight(height); add(canvas); } return canvas; }