Java Code Examples for com.google.gwt.dom.client.Style.setOpacity()

The following are Jave code examples for showing how to use setOpacity() of the com.google.gwt.dom.client.Style class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: appformer   File: WorkbenchSplitLayoutPanel.java   Source Code and License Vote up 5 votes
public Splitter(Widget target,
                boolean reverse) {
    this.target = target;
    this.reverse = reverse;

    final ResizeFlowPanel widget = new ResizeFlowPanel();

    sinkEvents(Event.ONMOUSEDOWN | Event.ONMOUSEUP | Event.ONMOUSEMOVE | Event.ONDBLCLICK);

    this.hover = new FlowPanel();
    final Style style = hover.getElement().getStyle();
    style.setOpacity(0);
    style.setZIndex(2);
    style.setPosition(Position.FIXED);
    setUpHoverStyle(style,
                    DEFAULT_SPLITTER_HOVER_SIZE);
    widget.add(hover);
    initWidget(widget);

    mouseTracker = Document.get().createDivElement();
    mouseTracker.getStyle().setCursor(getHoverCursorStyle());
    mouseTracker.getStyle().setZIndex(Integer.MAX_VALUE);
    mouseTracker.getStyle().setPosition(Position.ABSOLUTE);
    mouseTracker.getStyle().setHeight(50,
                                      Unit.PX);
    mouseTracker.getStyle().setWidth(50,
                                     Unit.PX);
}