• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Layout类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.smartgwt.client.widgets.layout.Layout的典型用法代码示例。如果您正苦于以下问题:Java Layout类的具体用法?Java Layout怎么用?Java Layout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Layout类属于com.smartgwt.client.widgets.layout包,在下文中一共展示了Layout类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: buildLayout

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
 * Builds the view content.
 * @return a layout containing the view content.
 */
@Override
public Layout buildLayout() {

    this.jobsTotalLabel = new Label();
    setTotalJobsLabel();
    this.jobsTotalLabel.setAlign(Alignment.CENTER);
    this.jobsTotalLabel.setWidth100();
    this.jobsTotalLabel.setMinWidth(40);
    this.jobsTotalLabel.setMargin(4);

    HLayout labelLayout = new HLayout();
    labelLayout.addStyleName("labelPaginationLayout");
    labelLayout.addMember(this.jobsTotalLabel);

    ToolStrip paginationLayout = getToolStripPaginationLayout();

    paginationLayout.addMember(this.pageFirstButton);
    paginationLayout.addMember(this.pagePreviousButton);
    paginationLayout.addMember(labelLayout);
    paginationLayout.addMember(this.pageLastButton);
    paginationLayout.addMember(this.pageNextButton);

    return paginationLayout;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:29,代码来源:JobsPaginationView.java


示例2: getLayout

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
@Override
protected Layout getLayout() {

    VStack root = new VStack();
    root.setWidth100();

    this.genericInformationGrid = new KeyValueGrid(GENERIC_INFORMATION_LABEL_TEXT);
    this.genericInformationGrid.setWidth100();
    this.genericInformationGrid.hide();

    this.variablesGrid = new KeyValueGrid(JOB_VARIABLES_LABEL_TEXT);
    this.variablesGrid.setWidth100();
    this.variablesGrid.hide();

    root.addMember(super.getLayout());
    root.addMember(genericInformationGrid);
    root.addMember(variablesGrid);
    return root;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:20,代码来源:JobInfoView.java


示例3: buildContent

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
protected Layout buildContent() {
    VLayout layout = new VLayout();
    this.buildGrid();

    this.loadingLabel = new Label("fetching " + this.itemName + "...");
    this.loadingLabel.setIcon("loading.gif");
    this.loadingLabel.setWidth100();
    this.loadingLabel.setHeight100();
    this.loadingLabel.setAlign(Alignment.CENTER);
    this.loadingLabel.hide();

    this.errorLabel = new Label("");
    this.errorLabel.setWidth100();
    this.errorLabel.setAlign(Alignment.CENTER);
    this.errorLabel.hide();

    layout.addMember(this.itemsGrid);
    layout.addMember(this.loadingLabel);
    layout.addMember(this.errorLabel);

    return layout;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:23,代码来源:AbstractGridItemsView.java


示例4: build

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
public Layout build() {
    VLayout itemsViewLayout = new VLayout();

    if (this.hasToolBar) {
        Layout navTools = this.buildToolbar();
        itemsViewLayout.addMember(navTools);
    }

    Layout content = this.buildContent();
    itemsViewLayout.addMember(content);

    Layout paginationBar = this.buildPagination();
    itemsViewLayout.addMember(paginationBar);

    return itemsViewLayout;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:17,代码来源:AbstractGridItemsView.java


示例5: initVariablesActualForm

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
private Layout initVariablesActualForm() {
    // actual form used to POST
    variablesActualForm = new FormPanel();
    variablesActualForm.setMethod(FormPanel.METHOD_POST);
    variablesActualForm.setAction(URL_SUBMIT_XML);
    hiddenPane = new VerticalPanel();
    _fields = new Hidden[variables.size()];

    int i = 0;
    for (Entry<String, JobVariable> var : variables.entrySet()) {
        _fields[i] = new Hidden("var_" + var.getKey());
        hiddenPane.add(_fields[i]);
        i++;
    }

    hiddenPane.add(new Hidden("job", job));
    hiddenPane.add(new Hidden(SESSION_ID_PARAMETER_NAME, LoginModel.getInstance().getSessionId()));
    hiddenPane.add(validate);
    variablesActualForm.setWidget(hiddenPane);
    Layout fpanelWra = new Layout();
    fpanelWra.addMember(variablesActualForm);
    return fpanelWra;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:24,代码来源:SubmitWindow.java


示例6: setRoot

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
public void setRoot(Layout layout) {

        wrapper = new VLayout();
        wrapper.setWidth100();
        wrapper.setHeight100();

        this.noJobSelectedMessage = new Label("No job selected.");
        this.noJobSelectedMessage.setAlign(Alignment.CENTER);
        this.noJobSelectedMessage.setWidth100();
        wrapper.addMember(noJobSelectedMessage);

        htmlPanel = new HTML();
        htmlPanel.getElement().setId("html-view");
        wrapper.addMember(htmlPanel);

        layout.addMember(wrapper);
    }
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:18,代码来源:VisualizationViewHtml.java


示例7: EditorWorkFlow

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
public EditorWorkFlow(EventBus ebus, PlaceController placeController,
        ActivityManager activityManager, Layout delegate,
        PresenterFactory presenterFactory, ClientMessages i18n) {

    this.presenterFactory = presenterFactory;
    this.i18n = i18n;
    this.ebus = (ebus != null) ? ebus : new SimpleEventBus();
    // PlaceController uses delegate to ask user with blocking Window.confirm
    // whether to leave the current place.
    // In order to use non blocking SmartGWT dialog
    // it will be necessary to override PlaceController.goto method.
    this.placeController = (placeController != null) ? placeController
            : new PlaceController(this.ebus);
    this.activityManager = (activityManager != null) ? activityManager
            : new ActivityManager(new EditorActivityMapper(), this.ebus);
    this.activityManager.setDisplay(new EditorDisplay(delegate));
    EditorPlaceHistoryMapper historyMapper = GWT.create(EditorPlaceHistoryMapper.class);
    placeHistoryHandler = new PlaceHistoryHandler(historyMapper);
    placeHistoryHandler.register(this.placeController, this.ebus, Place.NOWHERE);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:21,代码来源:EditorWorkFlow.java


示例8: createHeader

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
private Layout createHeader() {
	VLayout headerLayout = new VLayout();
	headerLayout.setHeight(5 + 52 + 5);

	Layout topBlackBar = new Layout();
    topBlackBar.addStyleName("applicationLayoutHeaderBar");
	topBlackBar.setHeight(5);

	HLayout header = new HLayout();
	header.addStyleName("applicationLayoutHeader");
	header.setHeight(52);

	Layout bottomBlackBar = new Layout();
	bottomBlackBar.addStyleName("applicationLayoutHeaderBar");
	bottomBlackBar.setHeight(5);

	headerLayout.addMember(topBlackBar);
	headerLayout.addMember(header);
	headerLayout.addMember(bottomBlackBar);

	return headerLayout;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:Application.java


示例9: setCurrentContextArea

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
 * Set the layout to the one passed in.
 * 
 * @param layout
 */
public void setCurrentContextArea(Layout layout) {

    // remove the current, if it exists
    if (i_currentPanel != null) {
        removeChild(i_currentPanel);
    }

    // add the new panel
    i_currentPanel = layout;
    addMember(layout);

    // redraw
    markForRedraw();

}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:21,代码来源:ContextAreaPanel.java


示例10: getUploadContainer

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
  * Get the instance of the upload panel. Only create one instance of it.
  * 
  * @return i_uploadContainer
  */
 private Layout getUploadContainer() {
     if (i_uploadContainer == null) {
         i_uploadContainer = new UploadContainer();
     }

  if (MAT_IMPORT != null) {
i_uploadContainer.setNameText(MAT_IMPORT.title);
i_uploadContainer.setVersionText(MAT_IMPORT.version);
i_uploadContainer.setInstitutionText(MAT_IMPORT.institution);
i_uploadContainer.setDescriptionText(MAT_IMPORT.description);
i_uploadContainer.setAssocNameText(MAT_IMPORT.nqfName);
i_uploadContainer.setAssocLinkText(MAT_IMPORT.nqfLink);
   i_uploadContainer.setNqfFilePath(MAT_IMPORT.filePath);
  } else {
   i_uploadContainer.clearTextFields();
  }
     return i_uploadContainer;
 }
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:24,代码来源:Htp.java


示例11: createAutoScaleButton

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
private Canvas createAutoScaleButton() {
	Layout layout = new Layout();
	layout.setStyleName("n52_sensorweb_client_scaleButtonLayout");
	autoScaleButton = new Label(i18n.resetScale());
	autoScaleButton.setStyleName("n52_sensorweb_client_scaleButton");
    autoScaleButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            EventBus.getMainEventBus().fireEvent(new SwitchAutoscaleEvent(true), new EventCallback() {
                public void onEventFired() {
                    EventBus.getMainEventBus().fireEvent(new RequestDataEvent());
                }
            });
        }
    });
    autoScaleButton.setWidth(80);
    autoScaleButton.setWrap(false);
    return autoScaleButton;
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:DataControlsTimeSeries.java


示例12: createValueIntervalLabel

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
private Canvas createValueIntervalLabel() {
	Layout interval = new HLayout();
	interval.setAutoWidth();
	interval.setStyleName("n52_sensorweb_client_legendInfoRow");
	this.firstValueInterval.setAutoWidth();
	this.firstValueInterval.setWrap(false);
	this.firstValueInterval.setStyleName("n52_sensorweb_client_legendlink");
	this.lastValueInterval.setAutoWidth();
	this.lastValueInterval.setWrap(false);
	this.lastValueInterval.setStyleName("n52_sensorweb_client_legendlink");
	Label separator = new Label(i18n.to());
	separator.setAlign(Alignment.CENTER);
	separator.setWidth(20);
	interval.addMember(this.firstValueInterval);
	interval.addMember(separator);
	interval.addMember(this.lastValueInterval);
	return interval;
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:LegendEntryTimeSeries.java


示例13: getHomeLabel

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
private Layout getHomeLabel() {
	Layout layout = new VLayout();
	layout.setStyleName("n52_sensorweb_client_logoBlock");
	Img homeLabel = new Img("../img/client-logo.png", 289, 55);
	homeLabel.setStyleName("n52_sensorweb_client_logo");
	homeLabel.setCursor(Cursor.POINTER);
       homeLabel.addClickHandler(new ClickHandler() {
		@Override
		public void onClick(ClickEvent event) {
			String url = "http://52north.org/communities/sensorweb/";
               Window.open(url, "_blank", "");
		}
       });
       layout.addMember(homeLabel);
	return layout;
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:17,代码来源:Header.java


示例14: build

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
 * Create and return the view's widgets
 * 
 * @return a widget to add in the container that should display this view
 */
public Layout build() {
    this.root = new VLayout();
    this.root.setWidth100();
    this.root.setHeight100();

    this.usersGrid = new ListGrid();
    this.usersGrid.setWidth100();
    this.usersGrid.setHeight100();
    this.usersGrid.setCanFreezeFields(true);
    this.usersGrid.setSelectionType(SelectionStyle.NONE);

    ListGridField hostField = new ListGridField(HOST_ATTR, "Hostname");
    alignCenter(hostField);

    ListGridField userField = new ListGridField(USER_ATTR, "User");
    userField.setWidth(120);
    alignCenter(userField);

    ListGridField connField = new ListGridField(CONN_TIME_ATTR, "Connected at");
    alignCenter(connField);
    ListGridField subTimeField = new ListGridField(SUBMIT_TIME_ATTR, "Last submit");
    alignCenter(subTimeField);

    ListGridField subNumField = new ListGridField(SUBMIT_NUM_ATTR, "Jobs");
    subNumField.setWidth(80);
    alignCenter(subNumField);

    this.usersGrid.setFields(userField, subNumField, connField, subTimeField, hostField);

    this.root.addMember(this.usersGrid);

    return this.root;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:39,代码来源:UsersView.java


示例15: build

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
 * Create the widget and return it
 *
 * @return the ResultView widget ready to be added in a container
 */
public Layout build() {
    this.root = new VLayout();
    this.root.setWidth100();
    this.root.setPadding(20);

    this.buildRemoteVisuPane();
    this.buildTaskPreviewPane();

    this.root.setMembers(visuPane, formPane);

    this.goToNoSelectedTaskState();

    return this.root;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:20,代码来源:ResultView.java


示例16: build

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
 * @return the Widget to display, ready to be added in a container
 */
public Layout build() {
    this.label = new Label(this.emptyMessage);
    this.label.setWidth100();
    this.label.setAlign(Alignment.CENTER);

    this.details = new DetailViewer();
    this.details.setWidth100();
    this.details.setHeight100();
    this.details.setCanSelectText(true);
    this.details.hide();

    GridColumns[] lines = this.factory.getColumns();
    DetailViewerField[] fields = new DetailViewerField[lines.length];
    for (int i = 0; i < lines.length; i++) {
        fields[i] = new DetailViewerField(lines[i].getName(), lines[i].getTitle());

        if (lines[i] == TasksColumnsFactory.EXEC_DURATION_ATTR || lines[i] == JobsColumnsFactory.DURATION_ATTR) {
            fields[i].setDetailFormatter(new DetailFormatter() {
                @Override
                public String format(Object duration, Record record, DetailViewerField detailViewerField) {
                    if (duration != null) {
                        return Job.formatDuration(duration.toString());
                    } else {
                        return "";
                    }
                }
            });
        }
    }

    this.details.setFields(fields);

    return getLayout();
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:38,代码来源:InfoView.java


示例17: getLayout

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
protected Layout getLayout() {
    /* widget that will be returned as the root layout */
    Layout root = new Layout();
    root.setWidth100();

    root.addMember(label);
    root.addMember(details);

    return root;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:11,代码来源:InfoView.java


示例18: buildPagination

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
@Override
protected Layout buildPagination() {
    JobsPaginationController paginationController = this.controller.getPaginationController();
    Layout result = paginationController.buildView();
    paginationController.getModel().addPaginationListener(this);
    return result;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:8,代码来源:JobsView.java


示例19: build

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
/**
 * @return the Widget to display, ready to be added in a container
 */
public Layout build() {
    this.root = new VLayout();
    this.root.setWidth100();
    this.root.setHeight100();

    this.buildRefreshButton();

    this.buildTargetSelect();

    DynamicForm form = new DynamicForm();
    form.setColWidths("*", "*");
    form.setNumCols(2);
    form.setFields(this.targetSelect);

    HLayout buttons = new HLayout();
    buttons.setWidth100();
    buttons.setHeight(22);
    buttons.setMembersMargin(5);

    Canvas fill = new Canvas();
    fill.setWidth100();

    buttons.setMembers(form, fill, refreshButton);

    VLayout textlayout = this.buildOutputPane();

    this.root.addMember(buttons);
    this.root.addMember(textlayout);

    this.goToNoTargetState();

    return this.root;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:37,代码来源:ServerLogsView.java


示例20: fillVarsPart

import com.smartgwt.client.widgets.layout.Layout; //导入依赖的package包/类
private void fillVarsPart() {

        DynamicForm variablesVisualForm = initVariablesVisualForm();

        Layout hiddenVarsLayout = initVariablesActualForm();

        initVarsLayout();
        varsLayout.addMember(variablesVisualForm);
        varsLayout.addMember(hiddenVarsLayout);
        rootPage.addMember(varsLayout);
        rootPage.reflow();
    }
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:13,代码来源:SubmitWindow.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Edm类代码示例发布时间:2022-05-22
下一篇:
Java DockingConstants类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap