当前位置: 首页>>代码示例>>Java>>正文


Java DockLayoutPanel.setSize方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.DockLayoutPanel.setSize方法的典型用法代码示例。如果您正苦于以下问题:Java DockLayoutPanel.setSize方法的具体用法?Java DockLayoutPanel.setSize怎么用?Java DockLayoutPanel.setSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.DockLayoutPanel的用法示例。


在下文中一共展示了DockLayoutPanel.setSize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ViewWithToolbar

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
public ViewWithToolbar(final PartStackUIResources resources) {
    container = new DockLayoutPanel(Style.Unit.PX);
    initWidget(container);
    container.setSize("100%", "100%");
    toolBar = new LayoutPanel();
    toolBar.addStyleName(resources.partStackCss().ideBasePartToolbar());
    container.addNorth(toolBar, 20);

    // this hack used for adding box shadow effect to toolbar
    toolBar.getElement().getParentElement().getStyle().setOverflow(Style.Overflow.VISIBLE);
}
 
开发者ID:codenvy-legacy,项目名称:plugin-datasource,代码行数:12,代码来源:ViewWithToolbar.java

示例2: BaseView

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
public BaseView() {
  container = new DockLayoutPanel(Style.Unit.PX);
  container.getElement().setAttribute("role", "part");
  container.setSize("100%", "100%");
  container.getElement().getStyle().setOutlineStyle(Style.OutlineStyle.NONE);
  initWidget(container);
}
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:BaseView.java

示例3: TitlePanel

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
public TitlePanel(String title, Widget body, boolean showTitle) {
        titleWrapper = new HorizontalPanel();
        makeTitleLabel(titleWrapper);
        titleWrapper.add(titleLabel);
        titleWrapper.add(titleBar);
        titleWrapper.add(GwtUtil.getFiller(10, 1));
        titleWrapper.setCellWidth(titleBar, "100%");
        titleWrapper.setCellHorizontalAlignment(titleBar, HorizontalPanel.ALIGN_RIGHT);

        dlp = new DockLayoutPanel(Style.Unit.PX);
        if (showTitle) {
            dlp.addNorth(titleWrapper, 23);
            dlp.addNorth(GwtUtil.getFiller(1,2), 2);
        }
        dlp.add(body);
        dlp.setSize("100%", "100%");
//
//
//        FlowPanel vp = new FlowPanel();
//        vp.add(titleWrapper);
//        vp.add(body);
//        vp.setSize("100%", "100%");
        initWidget(dlp);
        this.body = body;

//        dlp.setStyleName("standard-border");
        setTitle(title);
        if (BrowserUtil.isIE()) {
            DOM.setStyleAttribute(titleLabel.getElement(), "whiteSpace", "nowrap");
        }
    }
 
开发者ID:lsst,项目名称:firefly,代码行数:32,代码来源:TitlePanel.java

示例4: createRightPanels

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
private void createRightPanels() {
	DockLayoutPanel rightPanel=new DockLayoutPanel(Unit.PX);
	rightPanel.setSize("100%", "100%");
	this.add(rightPanel);
	
	createOptionArea(rightPanel);

	rightTabPanel = new TabLayoutPanel(40,Unit.PX);
	rightPanel.add(rightTabPanel);
	rightTabPanel.setSize("100%","100%");
	createPreviewArea(rightTabPanel);
	createHtmlArea(rightTabPanel);
	rightTabPanel.selectTab(0);
}
 
开发者ID:akjava,项目名称:GWTMarkdownEditor,代码行数:15,代码来源:MarkdownEditor.java

示例5: createLeftPanels

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
private void createLeftPanels() {
	DockLayoutPanel leftPanel=new DockLayoutPanel(Unit.PX);
	
	leftPanel.setSize("100%", "100%");
	this.addWest(leftPanel,560);
	createToolbars(leftPanel);
	createTextAreas(leftPanel);
	
}
 
开发者ID:akjava,项目名称:GWTMarkdownEditor,代码行数:10,代码来源:MarkdownEditor.java

示例6: onModuleLoad

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
/**
 * This is the entry point method.
 */
@Override
public void onModuleLoad() {
    DebugInfo.setDebugIdPrefix("");
    GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
        @Override
        public void onUncaughtException(final Throwable e) {
            GWT.log("Uncaught error", e);
            Window.alert("Error. Go to see the logs");
        }
    });

    DockLayoutPanel container = new DockLayoutPanel(Unit.PX);
    container.setSize("100%", "100%");

    container.addNorth(new Label("GWT-D3 : A thin GWT wrapper around D3.",
            false), 20);
    container.addNorth(new Label("D3 API version: " + D3.version(), false),
            20);

    FlowPanel p = new FlowPanel();
    ComplexPanel buttonContainer = new VerticalPanel();
    buttonContainer.add(new TestButton());
    // TODO no sliders !
    // buttonContainer.add(new DemoButton("Arc", ArcDemo.factory()));
    buttonContainer.add(new DemoButton("Axis Component", AxisComponent.factory()));
    buttonContainer.add(new DemoButton("Line Demo", LineDemo.factory()));
    buttonContainer.add(new DemoButton("Symbol Demo", SymbolDemo.factory()));
    buttonContainer.add(new DemoButton("General Update Pattern I", GeneralUpdatePattern1.factory()));
    buttonContainer.add(new DemoButton("General Update Pattern II", GeneralUpdatePattern2.factory()));
    buttonContainer.add(new DemoButton("General Update Pattern III", GeneralUpdatePattern3.factory()));
    buttonContainer.add(new DemoButton("Arc Tween", ArcTween.factory()));
    buttonContainer.add(new DemoButton("Focus And Context", FocusAndContext.factory()));
    buttonContainer.add(new DemoButton("Chord diagram", ChordDiagram.factory()));
    buttonContainer.add(new DemoButton("Lorenz System", LorenzSystem.factory()));

    // TODO no sliders !
    // buttonContainer.add(new DemoButton("Shape Tweening",
    // ShapeTweeningDemo.factory()));
    // GEOM
    buttonContainer.add(new DemoButton("Convex Hull", HullDemo.factory()));
    buttonContainer.add(new DemoButton("Mitchell's Best Candidate", MitchellBestCandidate.factory()));
    buttonContainer.add(new DemoButton("Voronoi Tessellation", VoronoiTessellationDemo.factory()));

    buttonContainer.add(new DemoButton("Drag Multiples", DragMultiples.factory()));
    buttonContainer.add(new DemoButton("Zoom", ZoomDemo.factory()));

    buttonContainer.add(new DemoButton("Cluster Dendogram", ClusterDendogram.factory()));
    buttonContainer.add(new DemoButton("Radial Reingold–Tilford Tree", RadialReingoldTilfordTree.factory()));
    // BRUSHES
    buttonContainer.add(new DemoButton("Brush As Slider", BrushAsSliderDemo.factory()));
    buttonContainer.add(new DemoButton("Scatterplot Matrix Brushing", ScatterplotMatrixDemo.factory()));
    buttonContainer.add(new DemoButton("Ordinal Brushing", OrdinalBrushingDemo.factory()));
    buttonContainer.add(new DemoButton("Brush Transitions", BrushTransitionsDemo.factory()));

    p.add(buttonContainer);
    container.addWest(p, 200);

    demoContainer = new FlowPanel();
    demoContainer.ensureDebugId(D3Demo.DEMO_CONTAINER_ID);
    demoContainer.setSize("100%", "100%");
    demoContainer.getElement().getStyle().setOverflow(Overflow.AUTO);
    container.add(demoContainer);

    RootLayoutPanel.get().add(container);

    container.forceLayout();
}
 
开发者ID:gwtd3,项目名称:gwt-d3,代码行数:71,代码来源:D3Demo.java


注:本文中的com.google.gwt.user.client.ui.DockLayoutPanel.setSize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。