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

Java ListGridField类代码示例

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

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



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

示例1: buildCurrentStepsGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private final Widget buildCurrentStepsGrid() {
              
    commonGridSettings(currentStepsGrid);
    
    ListGridField idField = new ListGridField("id", "ID", 60);
    ListGridField nameField = new ListGridField("name", "Current Steps");
    ListGridField statusField = new ListGridField("status", "Step Status", 120);
    ListGridField ownerField = new ListGridField("owner", "Owner", 120);
    ListGridField createdField = new ListGridField("created", "DateCreated", 120);
    ListGridField dueField = new ListGridField("due","Date Due", 120);

    currentStepsGrid.setFields(new ListGridField[] {
        integerField(idField), 
        leftField(nameField), 
        leftField(statusField), 
        leftField(ownerField), 
        leftField(dueField), 
        leftField(createdField)
    });
   
    return currentStepsGrid;
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:23,代码来源:SimulatorView.java


示例2: buildHistoryStepsGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private final Widget buildHistoryStepsGrid() {
              
    commonGridSettings(historyStepsGrid);
    
    ListGridField idField = new ListGridField("id", "ID", 60);
    ListGridField nameField = new ListGridField("name", "History Steps");
    ListGridField statusField = new ListGridField("status", "Step Status", 120);
    ListGridField actorField = new ListGridField("actor", "Actor", 120);
    ListGridField actionField = new ListGridField("action","Action", 120);
    ListGridField finishedField = new ListGridField("finished","Date Finished", 120);

    historyStepsGrid.setFields(new ListGridField[] { 
        integerField(idField), 
        leftField(nameField), 
        leftField(statusField), 
        leftField(actorField), 
        leftField(actionField), 
        leftField(finishedField)
    });
   
    return historyStepsGrid;
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:23,代码来源:SimulatorView.java


示例3: buildProcessVariablesGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private final Widget buildProcessVariablesGrid() {
              
    commonGridSettings(processVariablesGrid);
    
    ListGridField nameField = new ListGridField("name", "Process Instance Variable", 160);
    ListGridField typeField = new ListGridField("type", "Data Type", 120);
    ListGridField valueField = new ListGridField("value", "Value");

    processVariablesGrid.setFields(new ListGridField[] { 
        leftField(nameField), 
        leftField(typeField), 
        leftField(valueField)
    });
   
    return processVariablesGrid;
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:17,代码来源:SimulatorView.java


示例4: buildProcessInstancesGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private final Widget buildProcessInstancesGrid() {
              
    commonGridSettings(processInstancesGrid);
    processInstancesGrid.setSelectionType(SelectionStyle.SINGLE);
    
    ListGridField nameField = new ListGridField("piid", "Process Instance ID", 120);
    ListGridField stateField = new ListGridField("state", "Process Instance State");
    ListGridField currentField = new ListGridField("current", "Current Steps", 100);
    ListGridField historyField = new ListGridField("history", "History Steps", 100);

    processInstancesGrid.setFields(new ListGridField[] { 
        integerField(nameField), 
        leftField(stateField), 
        integerField(currentField), 
        integerField(historyField)
    });
   
    return processInstancesGrid;
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:20,代码来源:SimulatorView.java


示例5: buildListGridField

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
protected Map<GridColumns, ListGridField> buildListGridField() {
    Map<GridColumns, ListGridField> fields = super.buildListGridField();

    ListGridField idField = fields.get(TasksColumnsFactory.ID_ATTR);
    idField.setType(ListGridFieldType.INTEGER);

    alignCells(fields);

    ListGridField execDuration = fields.get(EXEC_DURATION_ATTR);
    execDuration.setCellFormatter(new CellFormatter() {
        public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
            if (value != null) {
                return Job.formatDuration(value.toString());
            } else {
                return "";
            }
        }
    });

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


示例6: ExportResultWidget

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
public ExportResultWidget() {
    i18n = GWT.create(ClientMessages.class);
    VLayout vLayout = new VLayout();
    vLayout.setWidth100();
    vLayout.setHeight100();
    grid = new ListGrid();
    grid.setSelectionType(SelectionStyle.SINGLE);
    grid.setFixedRecordHeights(false);
    grid.setWrapCells(true);
    ListGridField pidField = new ListGridField(ExportResourceApi.RESULT_ERROR_PID,
            i18n.ExportResultWidget_PID_Title());

    ListGridField errorField = new ListGridField(ExportResourceApi.RESULT_ERROR_MESSAGE,
            i18n.ExportResultWidget_Message_Title());
    grid.setFields(pidField, errorField);
    grid.addSelectionUpdatedHandler(new SelectionUpdatedHandler() {

        @Override
        public void onSelectionUpdated(SelectionUpdatedEvent event) {
            logForm.editSelectedData(grid);
        }
    });
    logForm = createLogForm();
    vLayout.setMembers(grid, logForm);
    this.widget = vLayout;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:27,代码来源:DesaExportAction.java


示例7: buildGiVisUi

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private void buildGiVisUi(long runId) {
    ListGrid masterList = new ListGrid();
    masterList.setDataSource(GeneralItemVisibilityDataSource.getInstance());
    GeneralItemVisibilityDataSource.getInstance().loadDataFromWeb(runId);
    ListGridField giField = new ListGridField(GeneralItemsVisibilityModel.GENERALITEMID_FIELD, "gi");
    ListGridField statusField = new ListGridField(GeneralItemsVisibilityModel.STATUS_FIELD, "status");
    ListGridField accountField = new ListGridField(GeneralItemsVisibilityModel.ACCOUNT_FIELD, "account");
    ListGridField timeField = new ListGridField(GeneralItemsVisibilityModel.TIMESTAMP_FIELD, "time");
    ListGridField timePrettyField = new ListGridField(GeneralItemsVisibilityModel.TIMESTAMP_PRETTY_FIELD, "time pretty");

    ListGridField lastModField = new ListGridField(GeneralItemsVisibilityModel.LASTMODIFICATION_FIELD, "last modification");
    timeField.setType(ListGridFieldType.FLOAT);

    ListGridField lastModPretty = new ListGridField(GeneralItemsVisibilityModel.LASTMODIFICATIONPRETTY_FIELD, "last mod");

    masterList.setFields(new ListGridField[]{giField,statusField,accountField, timeField, timePrettyField, lastModField, lastModPretty});
    masterList.setAutoFetchData(true);
    masterList.setWidth100();
    masterList.setHeight100();
    masterList.setShowFilterEditor(true);
    masterList.setEditByCell(true);
    masterList.setCanEdit(true);

    RootPanel.get("debug").add(masterList);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:26,代码来源:DebugPage.java


示例8: setUpGeneralItems

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private void setUpGeneralItems() {
	generalItems = new ListGrid();
	generalItems.setStyleName("listGridGeneralItemsStyle");
	
	ListGridField gameIdField = new ListGridField(GameModel.GAMEID_FIELD, "Game");
	gameIdField.setHidden(true);
	ListGridField nameField = new ListGridField(GeneralItemModel.NAME_FIELD, "Name");
	nameField.setWidth("15%");
	ListGridField descriptionField = new ListGridField("description", "Description");
	descriptionField.setWidth("30%");
	ListGridField longDescriptionField = new ListGridField("richText", "Long Description");
	longDescriptionField.setWidth("50%");
	ListGridField rolesField = new ListGridField("roles", "Roles");
	rolesField.setWidth("5%");
	ListGridField simpleNameField = new ListGridField("simpleName", "Simple Name");
	simpleNameField.setWidth("10%");
	generalItems.setFields(new ListGridField[] { gameIdField, nameField, descriptionField, longDescriptionField, rolesField, simpleNameField });

	generalItems.setID("boundListGridGenealItems");
	generalItems.setHeight("45%");
	generalItems.setDataSource(GeneralItemDataSource.getInstance());
	generalItems.fetchData();
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:24,代码来源:ListSearch.java


示例9: getGamesGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private VLayout getGamesGrid() {
    VLayout from = new VLayout(10);
    from.setWidth("50%");
    ListGrid masterList = new GenericListGrid(false, false, false, false, false);
    masterList.setAutoFetchData(true);
    masterList.setDataSource(GameDataSource.getInstance());
    ListGridField titleGameField = new ListGridField(GameModel.GAME_TITLE_FIELD, constants.title());
    masterList.setFields(new ListGridField[]{titleGameField});
    from.addMember(masterList);
    masterList.addCellClickHandler(new CellClickHandler() {

        @Override
        public void onCellClick(CellClickEvent event) {
            Game existingGame = new Game(((AbstractRecord)GameDataSource.getInstance().getRecord(event.getRecord().getAttributeAsLong(GameModel.GAMEID_FIELD))).getCorrespondingJsonObject());
            pane.setContents("Game "+existingGame.getGameId());
            setTarget(existingGame);
            setDynamicForm(existingGame);
        }
    });
    return from;
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:22,代码来源:UploadGamePictureWindow.java


示例10: getRoleGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private Canvas getRoleGrid() {
	listGrid = new GenericListGrid(false, true, false, false, false){
		protected void deleteItem(ListGridRecord rollOverRecord) {
			
			RoleConfigSection.this.deleteRole(rollOverRecord.getAttributeAsString(GameRoleModel.ROLE_FIELD));
		}
	};
	listGrid.setWidth(300);
	listGrid.setShowRollOverCanvas(true);

	listGrid.setAutoFetchData(true);
	
	listGrid.setDataSource(GameRolesDataSource.getInstance());
	ListGridField roleField = new ListGridField(GameRoleModel.ROLE_FIELD, constants.roles());
	listGrid.setFields(new ListGridField[] { roleField });
	return listGrid;
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:18,代码来源:RoleConfigSection.java


示例11: LayerListGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
public LayerListGrid() {
	super();
	/*grid config*/
	setEditEvent(ListGridEditEvent.CLICK);
	setEditByCell(true);
	setAllowFilterExpressions(false);
	setCanSort(false);
	setCanMultiSort(false);
	setWidth100();
	setHeight100();
	setAlternateRecordStyles(true);
	setSelectionType(SelectionStyle.SINGLE);
	setShowRollOverCanvas(true);
	setShowAllRecords(true);
	setShowRecordComponents(true);
	setShowRecordComponentsByCell(true);
	setShowHeader(false);

	setDragDataAction(DragDataAction.MOVE);
	setCanDragRecordsOut(false);

	/*columns*/
	List<ListGridField> fields = createAndGetListGridFields();
	setFields(fields.toArray(new ListGridField[fields.size()]));
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:26,代码来源:LayerListGrid.java


示例12: createAndGetListGridFields

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
/**
 * Extensible method to create a list of {@link com.smartgwt.client.widgets.grid.ListGridField} objects.
 * The order in which the fields are provided will be the order of the columns.
 *
 * @return
 */
protected List<ListGridField> createAndGetListGridFields() {
	List<ListGridField> fields = new ArrayList<ListGridField>();

	ListGridField labelFld = new ListGridField(FLD_LABEL,
			MESSAGES.layerListGridColumnLayerName(), FLD_LABEL_WIDTH);

	ListGridField visibilityFld = new ListGridField(FLD_VISIBILITY,
			MESSAGES.layerListGridColumnVisibilityName(), FLD_VISIBILITY_WIDTH);
	visibilityFld.setType(ListGridFieldType.IMAGE);
	visibilityFld.setAlign(Alignment.CENTER);
	addCellClickHandler(new CellClickHandler() {
		@Override
		public void onCellClick(CellClickEvent cellClickEvent) {
			if (cellClickEvent.getColNum() == getFieldNum(FLD_VISIBILITY)) {
				handler.onToggleVisibility((Layer) cellClickEvent.getRecord().getAttributeAsObject(FLD_OBJECT));
			}
		}
	});

	fields.add(visibilityFld);
	fields.add(labelFld);
	return fields;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:30,代码来源:LayerListGrid.java


示例13: buildGui

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
private void buildGui() {
	grid = new ListGrid();
	grid.setWidth100();
	grid.setHeight("*");
	grid.setSelectionType(SelectionStyle.SINGLE);
	grid.setShowAllRecords(true);

	ListGridField nameFld = new ListGridField(FLD_NAME,
			MESSAGES.layerListClientWmsWizardStepSelectLayerGridName());
	nameFld.setType(ListGridFieldType.TEXT);
	nameFld.setWidth("*");

	ListGridField descFld = new ListGridField(FLD_DESC,
			MESSAGES.layerListClientWmsWizardStepSelectLayerGridDescription());
	descFld.setType(ListGridFieldType.TEXT);
	descFld.setWidth("*");

	grid.setFields(nameFld, descFld);
	grid.setCanResizeFields(true);

	layout = new VLayout();
	layout.setWidth100();
	layout.setHeight100();
	layout.addMember(grid);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:26,代码来源:SelectLayerViewImpl.java


示例14: createAndGetListGridFields

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
@Override
protected List<ListGridField> createAndGetListGridFields() {
	List<ListGridField> fields = super.createAndGetListGridFields();

	ListGridField deleteFld = new ListGridField(FLD_DELETE,
			MESSAGES.layerListGridClientWmsColumnDeleteName(), FLD_DELETE_WIDTH);
	deleteFld.setType(ListGridFieldType.IMAGE);
	deleteFld.setAlign(Alignment.CENTER);
	addCellClickHandler(new CellClickHandler() {
		@Override
		public void onCellClick(CellClickEvent cellClickEvent) {
			if (cellClickEvent.getColNum() == getFieldNum(FLD_DELETE)) {
				Object layer = cellClickEvent.getRecord().getAttributeAsObject(FLD_OBJECT);
				if (layer instanceof InternalClientWmsLayer) {
					handler.onRemoveClientWmsLayer((InternalClientWmsLayer) layer);
				}
			}
		}
	});
	fields.add(deleteFld);
	return fields;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:LayerListWithRemoveButtonGrid.java


示例15: GeocoderAlternativesGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
/**
 * Create a grid with the alternatives.
 *
 * @param widget geocoder widget
 * @param alternatives list of alternatives
 */
@Api
public GeocoderAlternativesGrid(final GeocoderWidget widget, List<GetLocationForStringAlternative> alternatives) {
	super();
	this.setWidth(300);
	this.setHeight(200);
	this.setCanEdit(false);
	this.setPadding(5);

	ListGridField locationField = new ListGridField(LOCATION_FIELD);
	locationField.setCanEdit(false);
	locationField.setCanSort(false);
	locationField.setCanGroupBy(false);
	this.setFields(locationField);
	this.addRecordClickHandler(new GeocoderRecordClickHandler(widget));
	update(alternatives);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:GeocoderAlternativesGrid.java


示例16: updateFields

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
/**
 * Actually create or update the fields.
 */
private void updateFields() {
	if (layer != null) {
		// Create a header field for each attribute definition:
		List<ListGridField> fields = new ArrayList<ListGridField>();
		if (idInTable) {
			ListGridField gridField = new ListGridField(FIELD_NAME_FEATURE_ID, "ID");
			gridField.setAlign(Alignment.LEFT);
			gridField.setCanEdit(false);
			fields.add(gridField);
		}

		for (AttributeInfo attributeInfo : layer.getLayerInfo().getFeatureInfo().getAttributes()) {
			if (!attributeInfo.isHidden() && (attributeInfo.isIdentifying() || allAttributesDisplayed)) {
				fields.add(createAttributeGridField(attributeInfo));
			}
		}
		setFields(fields.toArray(new ListGridField[fields.size()]));
		setCanResizeFields(true);
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:24,代码来源:FeatureListGrid.java


示例17: updateFields

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
/**
 * Actually create or update the fields.
 */
private void updateFields() {
	if (featureInfo != null) {
		// Create a header field for each attribute definition:
		List<ListGridField> fields = new ArrayList<ListGridField>();
		if (idInTable) {
			ListGridField gridField = new ListGridField(ID_NAME, "ID");
			gridField.setAlign(Alignment.LEFT);
			gridField.setCanEdit(false);
			fields.add(gridField);
		}

		for (AttributeInfo attributeInfo : featureInfo.getAttributes()) {
			if (!attributeInfo.isHidden() && (attributeInfo.isIdentifying() || allAttributesDisplayed)) {
				fields.add(createAttributeGridField(attributeInfo));
			}
		}
		setFields(fields.toArray(new ListGridField[fields.size()]));
		setCanResizeFields(true);
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:24,代码来源:AttributeListGrid.java


示例18: FaqListGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
public FaqListGrid() {
    super();

    setWidth100();
    setHeight100();

    setCanExpandRecords(true);
    setExpansionMode(ExpansionMode.DETAIL_FIELD);

    // This is the field that is displayed when expanded.
    setDetailField("answer");

    ListGridField nameField = new ListGridField("title", "FAQ");
    setFields(nameField);

    setData(FaqData.getRecords());
    draw();
}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:19,代码来源:FaqListGrid.java


示例19: UserRoleRequestListGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
public UserRoleRequestListGrid() {
    super();

    i_userRoleRequestDS = UserRoleRequestXmlDS.getInstance();

    setWidth100();
    setHeight(200);
    setShowAllRecords(true);
    setDataSource(i_userRoleRequestDS);

    setAutoFetchData(true);

    ListGridField userNameField = new ListGridField("UserName", "User Name");
    ListGridField requestDateField = new ListGridField("RequestDate", "Request Date");
    ListGridField responseDateField = new ListGridField("ResponseDate", "Response Date");
    ListGridField requestGrantedField = new ListGridField("RequestGranted", "Request Granted");

    setFields(userNameField, requestDateField, requestGrantedField, responseDateField);
}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:20,代码来源:UserRoleRequestListGrid.java


示例20: SharpNewsListGrid

import com.smartgwt.client.widgets.grid.ListGridField; //导入依赖的package包/类
public SharpNewsListGrid() {
    super();

    i_sharpNewsXmlDS = SharpNewsXmlDS.getInstance();

    setWidth100();
    setHeight100();
    setShowAllRecords(true);
    setDataSource(i_sharpNewsXmlDS);

    setShowEmptyMessage(false);
    setShowHeader(false);

    setCellHeight(GRID_CELL_HEIGHT);
    setWrapCells(true);

    ListGridField infoField = new ListGridField(SharpNewsColumns.INFO.colName(), "Information");

    setFields(infoField);

    setAutoFetchData(true);
    setCanEdit(false);
}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:24,代码来源:SharpNewsListGrid.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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