use of com.google.gwt.dom.client.DivElement in project che by eclipse.
the class ProcessesPanelViewImpl method tuneSplitter.
/**
* Tunes splitter. Makes it wider and adds double border to seem rich.
*
* @param el
* element to tune
*/
private void tuneSplitter(Element el) {
/** Add Z-Index to move the splitter on the top and make content visible */
el.getParentElement().getStyle().setProperty("zIndex", "1000");
el.getParentElement().getStyle().setProperty("overflow", "visible");
/** Tune splitter catch panel */
el.getStyle().setProperty("boxSizing", "border-box");
el.getStyle().setProperty("width", "5px");
el.getStyle().setProperty("overflow", "hidden");
el.getStyle().setProperty("marginLeft", "-3px");
el.getStyle().setProperty("backgroundColor", "transparent");
/** Add small border */
DivElement smallBorder = Document.get().createDivElement();
smallBorder.getStyle().setProperty("position", "absolute");
smallBorder.getStyle().setProperty("width", "1px");
smallBorder.getStyle().setProperty("height", "100%");
smallBorder.getStyle().setProperty("left", "3px");
smallBorder.getStyle().setProperty("top", "0px");
smallBorder.getStyle().setProperty("backgroundColor", Style.getSplitterSmallBorderColor());
el.appendChild(smallBorder);
/** Add large border */
DivElement largeBorder = Document.get().createDivElement();
largeBorder.getStyle().setProperty("position", "absolute");
largeBorder.getStyle().setProperty("width", "2px");
largeBorder.getStyle().setProperty("height", "100%");
largeBorder.getStyle().setProperty("left", "1px");
largeBorder.getStyle().setProperty("top", "0px");
largeBorder.getStyle().setProperty("opacity", "0.4");
largeBorder.getStyle().setProperty("backgroundColor", Style.getSplitterLargeBorderColor());
el.appendChild(largeBorder);
}
use of com.google.gwt.dom.client.DivElement in project che by eclipse.
the class AbstractPresentationRenderer method getRootContainer.
/** {@inheritDoc} */
@Override
public Element getRootContainer(String domID) {
DivElement divElement = Document.get().createDivElement();
divElement.setId(domID);
divElement.setClassName(treeStyles.styles().rootContainer());
return divElement;
}
use of com.google.gwt.dom.client.DivElement in project che by eclipse.
the class Tree method ensureTreeElement.
private void ensureTreeElement() {
DivElement element = Document.get().createDivElement();
element.addClassName(treeStyles.styles().tree());
setElement(element);
}
use of com.google.gwt.dom.client.DivElement in project che by eclipse.
the class AbstractPresentationRenderer method getDescendantsContainer.
/** {@inheritDoc} */
@Override
public Element getDescendantsContainer() {
DivElement divElement = Document.get().createDivElement();
divElement.setClassName(treeStyles.styles().descendantsContainer());
return divElement;
}
use of com.google.gwt.dom.client.DivElement in project che by eclipse.
the class AbstractPresentationRenderer method getNodeContainer.
/** {@inheritDoc} */
@Override
public Element getNodeContainer() {
DivElement divElement = Document.get().createDivElement();
divElement.setClassName(treeStyles.styles().nodeContainer());
return divElement;
}
Aggregations