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


Java Layout类代码示例

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


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


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