當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。