Search in sources :

Example 1 with SplitLayoutPanel

use of com.google.gwt.user.client.ui.SplitLayoutPanel in project ovirt-engine by oVirt.

the class Slider method initSlides.

private void initSlides() {
    slider = new SplitLayoutPanel() {

        @Override
        public void onResize() {
            super.onResize();
            setSliderWidth();
        }

        public void setSliderWidth() {
            double d = ((DockLayoutPanel.LayoutData) westPanel.getLayoutData()).size;
            setPivot((int) d + getMin());
            if (getPercent() == getMax() / getScale() - SPLITER_WIDTH / getScale()) {
                setPivot(getPivot() + SPLITER_WIDTH);
            }
            if (sliderValueChange != null) {
                sliderValueChange.onSliderValueChange(name, getPercent());
            }
        }
    };
    // $NON-NLS-1$ //$NON-NLS-2$
    String style = "A" + getColor().replace('#', '_') + "_clusterPolicy";
    slider.addStyleName(style);
    StyleInjector.inject(// $NON-NLS-1$
    "." + style + // $NON-NLS-1$
    ".gwt-SplitLayoutPanel .gwt-SplitLayoutPanel-HDragger { width: 8px !important; background: " + getColor() + // $NON-NLS-1$
    "; cursor: pointer; }");
    percentLabel = new Label();
    setSlidersWidth();
}
Also used : DockLayoutPanel(com.google.gwt.user.client.ui.DockLayoutPanel) Label(com.google.gwt.user.client.ui.Label) SplitLayoutPanel(com.google.gwt.user.client.ui.SplitLayoutPanel)

Example 2 with SplitLayoutPanel

use of com.google.gwt.user.client.ui.SplitLayoutPanel in project ovirt-engine by oVirt.

the class RegisterEntityPopupView method initTables.

private void initTables() {
    // Create the entities main table
    entityTable = new EntityModelCellTable<>(false, true);
    entityTable.enableColumnResizing();
    // Create split layout panel
    splitLayoutPanel = new SplitLayoutPanel(4);
}
Also used : SplitLayoutPanel(com.google.gwt.user.client.ui.SplitLayoutPanel)

Example 3 with SplitLayoutPanel

use of com.google.gwt.user.client.ui.SplitLayoutPanel in project ovirt-engine by oVirt.

the class ImportIscsiStorageView method initViews.

private void initViews() {
    // Create split layout panel
    splitLayoutPanel = new SplitLayoutPanel(4);
    // Create discover panel
    iscsiDiscoverTargetsView = new IscsiDiscoverTargetsView();
    // Create tables
    createTargetsTable();
    createSotrageDomainsTable();
}
Also used : SplitLayoutPanel(com.google.gwt.user.client.ui.SplitLayoutPanel)

Example 4 with SplitLayoutPanel

use of com.google.gwt.user.client.ui.SplitLayoutPanel in project ovirt-engine by oVirt.

the class VmSnapshotCustomPreviewPopupWidget method initTables.

private void initTables() {
    // Create custom preview table
    previewTable = new EntityModelCellTable<>(false, true);
    previewTable.enableColumnResizing();
    // Create Snapshot information tab panel
    vmSnapshotInfoPanel = new VmSnapshotInfoPanel();
    // Create split layout panel
    splitLayoutPanel = new SplitLayoutPanel(4);
}
Also used : VmSnapshotInfoPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotInfoPanel) SplitLayoutPanel(com.google.gwt.user.client.ui.SplitLayoutPanel)

Example 5 with SplitLayoutPanel

use of com.google.gwt.user.client.ui.SplitLayoutPanel in project che by eclipse.

the class SplitEditorPartViewImpl method split.

@Override
public void split(IsWidget replicaWidget, Direction direction, double size) {
    this.direction = direction;
    splitLayoutPanel = new SplitLayoutPanel(SPLITTER_SIZE);
    specimenView = new SplitEditorPartViewImpl(specimenWidget, this);
    replicaView = new SplitEditorPartViewImpl(replicaWidget, this);
    if (direction == VERTICALLY) {
        splitVertically(size);
    } else if (direction == HORIZONTALLY) {
        splitHorizontally(size);
    }
    splitLayoutPanel.add(replicaView);
    rootPanel.remove(specimenWidget);
    rootPanel.add(splitLayoutPanel);
    tuneSplitter(splitLayoutPanel);
}
Also used : SplitLayoutPanel(com.google.gwt.user.client.ui.SplitLayoutPanel)

Aggregations

SplitLayoutPanel (com.google.gwt.user.client.ui.SplitLayoutPanel)5 DockLayoutPanel (com.google.gwt.user.client.ui.DockLayoutPanel)1 Label (com.google.gwt.user.client.ui.Label)1 VmSnapshotInfoPanel (org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotInfoPanel)1