本文整理汇总了Java中com.google.gwt.user.client.ui.SplitLayoutPanel类的典型用法代码示例。如果您正苦于以下问题:Java SplitLayoutPanel类的具体用法?Java SplitLayoutPanel怎么用?Java SplitLayoutPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SplitLayoutPanel类属于com.google.gwt.user.client.ui包,在下文中一共展示了SplitLayoutPanel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setInitialFolderManagementView
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
public void setInitialFolderManagementView(FolderManagementController controller, String parentFolderPath, String baseFolderUrl,
Map<String, String> batchClassesMap) {
Label footer = new Label();
folderTableView = new FolderTableView(footer);
folderTablePresenter = new FolderTablePresenter(controller, folderTableView, parentFolderPath, baseFolderUrl);
folderSystemTreeView = new FolderSystemTreeView();
folderSystemTreePresenter = new FolderSystemTreePresenter(controller, folderSystemTreeView, parentFolderPath, footer);
SplitLayoutPanel mainContentPanel = new SplitLayoutPanel();
DockLayoutPanel leftLayoutPanel = new DockLayoutPanel(Unit.PCT);
ScrollPanel treeScrollPanel = new ScrollPanel();
treeScrollPanel.add(folderSystemTreeView);
FolderSelectionWidget folderSelectionWidget = new FolderSelectionWidget(batchClassesMap, controller.getEventBus());
leftLayoutPanel.addNorth(folderSelectionWidget, 10);
leftLayoutPanel.add(treeScrollPanel);
mainContentPanel.addWest(leftLayoutPanel, 200);
DockLayoutPanel contentMainPanel = new DockLayoutPanel(Unit.PCT);
contentMainPanel.add(folderTableView);
contentMainPanel.addStyleName(FolderManagementConstants.WHITE_BACKGROUND);
mainContentPanel.add(contentMainPanel);
mainPanel.add(mainContentPanel);
ScreenMaskUtility.unmaskScreen();
}
示例2: split
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@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);
}
示例3: tuneSplitter
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
/** Improves splitter visibility. */
private void tuneSplitter(SplitLayoutPanel splitLayoutPanel) {
NodeList<Node> nodes = splitLayoutPanel.getElement().getChildNodes();
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.getItem(i);
if (node.hasChildNodes()) {
Element el = node.getFirstChild().cast();
String className = el.getClassName();
if (HORIZONTAL_DRAGGER_CLASS.equals(className)) {
tuneVerticalSplitter(el);
} else if (VERTICAL_DRAGGER_CLASS.equals(className)) {
tuneHorizontalSplitter(el);
}
}
}
}
示例4: DataSourceCoveragePreview
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
public DataSourceCoveragePreview(DataSourceCoverageData covData) {
super(covData.getTitle(),covData.getTip());
_covData= covData;
setName(covData.getTitle());
String group= covData.getGroup();
MiniPlotWidget mpw= new MiniPlotWidget(group);
mpw.setImageSelection(true);
mpw.setRemoveOldPlot(false);
_plotDeck= new DisableablePlotDeckPanel(_prop.getName("noplot"), mpw,true);
if (covData.getEnableDetails()) {
_detailsView = new ScrollPanel(_details);
SplitLayoutPanel display = new SplitLayoutPanel();
display.addSouth(_detailsView, 120);
GwtUtil.setStyle(_detailsView,"borderTop", "1px solid gray");
GwtUtil.setStyle(_detailsView,"paddingTop", "3px");
display.add(_plotDeck);
setDisplay(display);
}
else {
setDisplay(_plotDeck);
}
}
示例5: SqlRequestLauncherViewImpl
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Inject
public SqlRequestLauncherViewImpl(final SqlRequestLauncherViewImplUiBinder uiBinder,
final SqlRequestLauncherConstants constants,
final DatasourceUiResources datasourceUiResources) {
super();
/* initialize provided fields */
this.datasourceUiResources = datasourceUiResources;
this.constants = constants;
this.splitPanel = new SplitLayoutPanel(4);
uiBinder.createAndBindUi(this);
getContainer().add(this.launcherContainer);
selectDatasourceLabel.setText(constants.selectDatasourceLabel());
resultLimitLabel.setText(constants.resultLimitLabel());
executionModeLabel.setText(constants.executionModeLabel());
executeButton.setText(constants.executeButtonLabel());
executeButton.ensureDebugId("dsExecuteButton");
fillExecutionModeList(constants);
}
示例6: testPanels
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Test
public void testPanels() throws Exception {
invokeAllAccessibleMethods(new AbsolutePanel() {});
invokeAllAccessibleMethods(new CellPanel() {});
invokeAllAccessibleMethods(new ComplexPanel() {});
invokeAllAccessibleMethods(new DeckLayoutPanel() {});
invokeAllAccessibleMethods(new DeckPanel() {});
invokeAllAccessibleMethods(new DecoratorPanel() {});
invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
invokeAllAccessibleMethods(new DockPanel() {});
invokeAllAccessibleMethods(new FlowPanel() {});
invokeAllAccessibleMethods(new FocusPanel() {});
invokeAllAccessibleMethods(new HorizontalPanel() {});
invokeAllAccessibleMethods(new HTMLPanel("") {});
invokeAllAccessibleMethods(new LayoutPanel() {});
invokeAllAccessibleMethods(new PopupPanel() {});
invokeAllAccessibleMethods(new RenderablePanel("") {});
invokeAllAccessibleMethods(new ResizeLayoutPanel() {});
invokeAllAccessibleMethods(new SimpleLayoutPanel() {});
invokeAllAccessibleMethods(new SimplePanel() {});
invokeAllAccessibleMethods(new SplitLayoutPanel() {});
invokeAllAccessibleMethods(new StackPanel() {});
invokeAllAccessibleMethods(new VerticalPanel() {});
}
示例7: WorkBenchPartControllerImpl
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Inject
public WorkBenchPartControllerImpl(
@Assisted SplitLayoutPanel splitLayoutPanel, @Assisted SimplePanel widget) {
this.splitLayoutPanel = splitLayoutPanel;
this.widget = widget;
splitLayoutPanel.setWidgetToggleDisplayAllowed(widget, true);
splitLayoutPanel.setWidgetHidden(widget, true);
splitLayoutPanel.forceLayout();
}
示例8: setUp
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Before
public void setUp() {
when(view.getLeftPanel()).thenReturn(panel);
when(view.getRightPanel()).thenReturn(panel);
when(view.getBottomPanel()).thenReturn(panel);
when(view.getSplitPanel()).thenReturn(layoutPanel);
when(view.getNavigationPanel()).thenReturn(simplePanel);
when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
when(view.getToolPanel()).thenReturn(simplePanel);
when(controllerFactory.createController(
org.mockito.ArgumentMatchers.<SplitLayoutPanel>anyObject(),
org.mockito.ArgumentMatchers.<SimplePanel>anyObject()))
.thenReturn(workBenchController);
when(partViewFactory.create(org.mockito.ArgumentMatchers.<FlowPanel>anyObject()))
.thenReturn(partStackView);
when(stackPresenterFactory.create(
org.mockito.ArgumentMatchers.<PartStackView>anyObject(),
org.mockito.ArgumentMatchers.<WorkBenchPartController>anyObject()))
.thenReturn(partStackPresenter);
perspective =
new ProjectPerspective(
view,
editorMultiPartStackPresenter,
stackPresenterFactory,
partViewFactory,
controllerFactory,
eventBus,
dynaProvider,
projectExplorerPresenter,
commandsExplorerPresenter,
notificationManager,
processesPanelPresenter);
}
示例9: setUp
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
when(view.getLeftPanel()).thenReturn(panel);
when(view.getRightPanel()).thenReturn(panel);
when(view.getBottomPanel()).thenReturn(panel);
when(view.getSplitPanel()).thenReturn(layoutPanel);
when(view.getNavigationPanel()).thenReturn(simplePanel);
when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
when(view.getToolPanel()).thenReturn(simplePanel);
when(partStackPresenter.getPartStackState()).thenReturn(PartStack.State.NORMAL);
when(controllerFactory.createController(
org.mockito.ArgumentMatchers.<SplitLayoutPanel>anyObject(),
org.mockito.ArgumentMatchers.<SimplePanel>anyObject()))
.thenReturn(workBenchController);
when(partStackViewFactory.create(org.mockito.ArgumentMatchers.<FlowPanel>anyObject()))
.thenReturn(partStackView);
when(stackPresenterFactory.create(
org.mockito.ArgumentMatchers.<PartStackView>anyObject(),
org.mockito.ArgumentMatchers.<WorkBenchPartController>anyObject()))
.thenReturn(partStackPresenter);
perspective =
new AbstractPerspectiveTest.DummyPerspective(
view,
stackPresenterFactory,
partStackViewFactory,
controllerFactory,
eventBus,
null,
partStackPresenter,
dynaProvider);
perspective.onActivePartChanged(new ActivePartChangedEvent(activePart));
}
示例10: setUp
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
when(view.getLeftPanel()).thenReturn(panel);
when(view.getRightPanel()).thenReturn(panel);
when(view.getBottomPanel()).thenReturn(panel);
when(view.getSplitPanel()).thenReturn(layoutPanel);
when(view.getNavigationPanel()).thenReturn(simplePanel);
when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
when(view.getToolPanel()).thenReturn(simplePanel);
when(controllerFactory.createController(
org.mockito.ArgumentMatchers.<SplitLayoutPanel>anyObject(),
org.mockito.ArgumentMatchers.<SimplePanel>anyObject()))
.thenReturn(workBenchController);
when(partStackViewFactory.create(org.mockito.ArgumentMatchers.<FlowPanel>anyObject()))
.thenReturn(partStackView);
when(stackPresenterFactory.create(
org.mockito.ArgumentMatchers.<PartStackView>anyObject(),
org.mockito.ArgumentMatchers.<WorkBenchPartController>anyObject()))
.thenReturn(partStackPresenter);
perspective =
new DummyPerspective(
view,
stackPresenterFactory,
partStackViewFactory,
controllerFactory,
eventBus,
extraPartStackPresenter,
partStackPresenter,
dynaProvider);
}
示例11: tuneSplitter
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
/** Improves splitter visibility. */
public void tuneSplitter(SplitLayoutPanel splitLayoutPanel) {
NodeList<Node> nodes = splitLayoutPanel.getElement().getChildNodes();
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.getItem(i);
if (node.hasChildNodes()) {
com.google.gwt.dom.client.Element el = node.getFirstChild().cast();
if ("gwt-SplitLayoutPanel-HDragger".equals(el.getClassName())) {
tuneSplitter(el);
return;
}
}
}
}
示例12: TestResultViewImpl
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
@Inject
public TestResultViewImpl(TestResultNodeFactory nodeFactory, PrinterOutputConsole outputConsole) {
this.nodeFactory = nodeFactory;
splitLayoutPanel = new SplitLayoutPanel(1);
setContentWidget(UI_BINDER.createAndBindUi(this));
splitLayoutPanel.add(outputConsole);
NodeUniqueKeyProvider idProvider =
new NodeUniqueKeyProvider() {
@NotNull
@Override
public String getKey(@NotNull Node item) {
return String.valueOf(item.hashCode());
}
};
NodeStorage nodeStorage = new NodeStorage(idProvider);
NodeLoader nodeLoader = new NodeLoader(Collections.emptySet());
resultTree = new Tree(nodeStorage, nodeLoader);
resultTree
.getSelectionModel()
.addSelectionHandler(
event -> {
Node methodNode = event.getSelectedItem();
if (methodNode instanceof TestStateNode) {
outputConsole.testSelected(((TestStateNode) methodNode).getTestState());
}
});
resultTree.setAutoExpand(true);
resultTree.getNodeLoader().setUseCaching(false);
resultTree.getElement().getStyle().setWidth(100, Style.Unit.PCT);
resultTree.getElement().getStyle().setHeight(100, Style.Unit.PCT);
navigationPanel.add(resultTree);
testRootState = new TestRootState();
}
示例13: PlannerWidgetImpl
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
public PlannerWidgetImpl() {
rootPanel = new DeckLayoutPanel();
// Screen interaction widget
screenWidget = new SplitLayoutPanel() {
@Override
public void onResize() {
super.onResize();
if (plannerMapWidget != null)
plannerMapWidget.updateSize();
}
};
screenWidget.setSize("100%", "100%");
selectedItineraryWidget = null;
plannerMapWidget = new OpenLayersPlannerMapWidget();
plannerMapWidget.setMapListener(this);
plannerFormWidget = new PlannerFormWidget();
plannerFormWidget.setPlannerWidget(this);
itineraryStackWidget = new ItineraryStackWidget();
alertStackWidget = new AlertStackWidget();
// Firefox/Opera hack: no scroll panel...
boolean useScrollPanel = false;
leftPanelWidget = new LeftPanelWidget(plannerFormWidget,
itineraryStackWidget, alertStackWidget, useScrollPanel);
screenWidget.insert(leftPanelWidget, Direction.WEST, 300, null);
if (!useScrollPanel) {
leftPanelWidget.getElement().getParentElement().getStyle()
.setOverflow(Overflow.AUTO);
}
screenWidget.insert(plannerMapWidget.getAsWidget(), Direction.CENTER, 0,
null);
rootPanel.add(screenWidget);
rootPanel.showWidget(screenWidget);
rootPanel.setSize("100%", "100%");
initWidget(rootPanel);
}
示例14: hideWidget
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
public static void hideWidget(SplitLayoutPanel splitPanel, Widget widget) {
hideWidget((DockLayoutPanel) splitPanel, widget);
}
示例15: SplitLayoutPanelView
import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入依赖的package包/类
public SplitLayoutPanelView() {
layout = new SplitLayoutPanel(2);
centerPanel = new LayoutPanel();
westPanel = new LayoutPanel();
// TODO (hbraun): the actual width should become meta data. i.e. passed through the position object
layout.addWest(westPanel,
217);
layout.add(centerPanel);
}