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