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


Java CheckBox.getValue方法代码示例

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


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

示例1: fillFutureFlags

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
protected void fillFutureFlags(UpdateRoomGroupRequest request) {
	if (iProperties.hasFutureSessions()) {
		for (AcademicSessionInterface session: iProperties.getFutureSessions()) {
			CheckBox ch = iFutureSessionsToggles.get(session.getId());
			if (ch != null) {
				Integer flags = RoomCookie.getInstance().getFutureFlags(session.getId());
				if (ch.getValue()) {
					request.addFutureSession(session.getId());
					if (flags == null)
						RoomCookie.getInstance().setFutureFlags(session.getId(), FutureOperation.getFlagDefaultsEnabled());
				} else {
					if (flags != null)
						RoomCookie.getInstance().setFutureFlags(session.getId(), null);
				}
			}
		}
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:19,代码来源:RoomGroupEdit.java

示例2: fillFutureFlags

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
protected void fillFutureFlags(UpdateRoomFeatureRequest request) {
	if (iProperties.hasFutureSessions()) {
		for (AcademicSessionInterface session: iProperties.getFutureSessions()) {
			CheckBox ch = iFutureSessionsToggles.get(session.getId());
			if (ch != null) {
				Integer flags = RoomCookie.getInstance().getFutureFlags(session.getId());
				if (ch.getValue()) {
					request.addFutureSession(session.getId());
					if (flags == null)
						RoomCookie.getInstance().setFutureFlags(session.getId(), FutureOperation.getFlagDefaultsEnabled());
				} else {
					if (flags != null)
						RoomCookie.getInstance().setFutureFlags(session.getId(), null);
				}
			}
		}
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:19,代码来源:RoomFeatureEdit.java

示例3: generateAlsoUpdateMessage

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
protected String generateAlsoUpdateMessage(boolean includeWhenNoFlags) {
	if ((iRoom.getUniqueId() == null && iProperties.hasFutureSessions()) || iRoom.hasFutureRooms()) {
		List<String> ret = new ArrayList<String>();
		for (int i = 1; i < iApplyTo.getRowCount(); i++) {
			CheckBox ch = (CheckBox)iApplyTo.getWidget(i, 0);
			if (ch.getValue()) {
				int flags = 0;
				for (FutureOperation op: FutureOperation.values()) {
					CheckBox x = (CheckBox)iApplyTo.getWidget(i, 6 + op.ordinal());
					if (x.getValue())
						flags = op.set(flags);
				}
				if (flags == 0 && !includeWhenNoFlags) continue;
				ret.add(iApplyTo.getData(i).getSession().getLabel());
			}
		}
		if (!ret.isEmpty())
			return ToolBox.toString(ret);
	}
	return null;
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:22,代码来源:RoomEdit.java

示例4: getAllSelectedPaths

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
/**
 * getAllSelectedPaths
 *
 * @return
 */
public List<String> getAllSelectedPaths() {
	List<String> paths = new ArrayList<String>();
	for (int i = 0; dataTable.getRowCount() > i; i++) {
		CheckBox checkBox = (CheckBox) dataTable.getWidget(i, colMassiveIndex);
		if (checkBox.getValue()) {
			Object obj = data.get(Integer.parseInt(dataTable.getText(i, colDataIndex)));
			if (obj instanceof GWTDocument) {
				paths.add(((GWTDocument) obj).getPath());
			} else if (obj instanceof GWTFolder) {
				paths.add(((GWTFolder) obj).getPath());
			} else if (obj instanceof GWTMail) {
				paths.add(((GWTMail) obj).getPath());
			}
		}
	}
	return paths;
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:23,代码来源:ExtendedScrollTable.java

示例5: getAllSelectedUUIDs

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
/**
 * getAllSelectedUUIDs
 */
public List<String> getAllSelectedUUIDs() {
	List<String> uuidList = new ArrayList<String>();

	for (int i = 0; dataTable.getRowCount() > i; i++) {
		CheckBox checkBox = (CheckBox) dataTable.getWidget(i, colMassiveIndex);

		if (checkBox.getValue()) {
			Object obj = data.get(Integer.parseInt(dataTable.getText(i, colDataIndex)));
			if (obj instanceof GWTDocument) {
				uuidList.add(((GWTDocument) obj).getUuid());
			} else if (obj instanceof GWTFolder) {
				uuidList.add(((GWTFolder) obj).getUuid());
			} else if (obj instanceof GWTMail) {
				uuidList.add(((GWTMail) obj).getUuid());
			}
		}
	}

	return uuidList;
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:24,代码来源:ExtendedScrollTable.java

示例6: getAllSelectedDocumentsUUIDs

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
/**
 * getAllSelectedDocumentsUUIDs
 */
public List<String> getAllSelectedDocumentsUUIDs() {
	List<String> uuidList = new ArrayList<String>();

	for (int i = 0; dataTable.getRowCount() > i; i++) {
		CheckBox checkBox = (CheckBox) dataTable.getWidget(i, colMassiveIndex);

		if (checkBox.getValue()) {
			Object obj = data.get(Integer.parseInt(dataTable.getText(i, colDataIndex)));
			if (obj instanceof GWTDocument) {
				uuidList.add(((GWTDocument) obj).getUuid());
			}
		}
	}

	return uuidList;
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:20,代码来源:ExtendedScrollTable.java

示例7: getAllSelectedDocumentsPaths

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
/**
 * getAllSelectedDocumentsPaths
 */
public List<String> getAllSelectedDocumentsPaths() {
	List<String> pathList = new ArrayList<String>();

	for (int i = 0; dataTable.getRowCount() > i; i++) {
		CheckBox checkBox = (CheckBox) dataTable.getWidget(i, colMassiveIndex);

		if (checkBox.getValue()) {
			Object obj = data.get(Integer.parseInt(dataTable.getText(i, colDataIndex)));
			if (obj instanceof GWTDocument) {
				pathList.add(((GWTDocument) obj).getPath());
			}
		}
	}

	return pathList;
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:20,代码来源:ExtendedScrollTable.java

示例8: getAllSelectedMailUUIDs

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
/**
 * getAllSelectedMailUUIDs
 */
public List<String> getAllSelectedMailUUIDs() {
	List<String> uuidList = new ArrayList<String>();

	for (int i = 0; dataTable.getRowCount() > i; i++) {
		CheckBox checkBox = (CheckBox) dataTable.getWidget(i, colMassiveIndex);

		if (checkBox.getValue()) {
			Object obj = data.get(Integer.parseInt(dataTable.getText(i, colDataIndex)));
			if (obj instanceof GWTMail) {
				uuidList.add(((GWTMail) obj).getUuid());
			}
		}
	}

	return uuidList;
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:20,代码来源:ExtendedScrollTable.java

示例9: getAllSelectedPdfDocuments

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
/**
 * getAllSelectedPdfDocuments
 *
 * @return
 */
public List<GWTDocument> getAllSelectedPdfDocuments() {
	List<GWTDocument> docs = new ArrayList<GWTDocument>();
	for (int i = 0; dataTable.getRowCount() > i; i++) {
		CheckBox checkBox = (CheckBox) dataTable.getWidget(i, colMassiveIndex);
		if (checkBox.getValue()) {
			Object obj = data.get(Integer.parseInt(dataTable.getText(i, colDataIndex)));
			if (obj instanceof GWTDocument) {
				GWTDocument doc = (GWTDocument) obj;
				if (doc.getMimeType().equals("application/pdf")) {
					docs.add(doc);
				}
			}
		}
	}
	return docs;
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:22,代码来源:ExtendedScrollTable.java

示例10: checkParentState

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
private void checkParentState(TreeItem treeItem, Boolean value) {
  TreeItem parentItem = treeItem.getParentItem();

  if (parentItem == null) {
    return;
  }

  if (!(parentItem.getWidget() instanceof FlowPanel)) {
    return;
  }
  FlowPanel parentChangeContainer = (FlowPanel) parentItem.getWidget();

  if (!(parentChangeContainer.getWidget(0) instanceof CheckBox)) {
    return;
  }
  CheckBox parentCheckBox = (CheckBox) parentChangeContainer.getWidget(0);

  if (value && !parentCheckBox.getValue()) {
    parentCheckBox.setValue(true);
    checkParentState(parentItem, true);
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:23,代码来源:PreviewViewImpl.java

示例11: applyChanges

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
private void applyChanges() {
        ensureSelectAllCB();
        DefaultTableDefinition<TableData.Row> tdef =
                (DefaultTableDefinition<TableData.Row>) table.getTable().getTableDefinition();
        boolean reloadNeeded = false;

        for (ColDef col : checkBoxes.keySet()) {
            CheckBox cb = checkBoxes.get(col);
            if (tdef.isColumnVisible(col) != cb.getValue()) {
                col.getColumn().setVisible(cb.getValue());
                tdef.setColumnVisible(col, cb.getValue());
                reloadNeeded = true;
            }
        }

        if (reloadNeeded) {
            String vcols = getVisibleColStr(table.getTable());
            if (vcols.equals(defVisibleCols)) {
                Preferences.set(table.getName() + VISI_COL_PREF, null);
            } else {
                Preferences.set(table.getName() + VISI_COL_PREF, vcols);
            }
//            table.getTable().clearHiddenFilters();
            table.redrawTable();
        }
    }
 
开发者ID:lsst,项目名称:firefly,代码行数:27,代码来源:TableOptions.java

示例12: updateDeleteButton

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
void updateDeleteButton() {
  int off = 0;
  boolean on = false;
  for (int row = 1; row < table.getRowCount(); row++) {
    if (table.getWidget(row, 1) == null) {
      off++;
    } else {
      CheckBox sel = (CheckBox) table.getWidget(row, 1);
      if (sel.getValue()) {
        on = true;
        break;
      }
    }
  }
  deleteIdentity.setVisible(off < table.getRowCount() - 1);
  deleteIdentity.setEnabled(on);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:18,代码来源:MyIdentitiesScreen.java

示例13: generateAlsoUpdateMessage

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
protected String generateAlsoUpdateMessage() {
	if (!iProperties.hasFutureSessions()) return null;
	List<String> ret = new ArrayList<String>();
	for (AcademicSessionInterface session: iProperties.getFutureSessions()) {
		CheckBox ch = iFutureSessionsToggles.get(session.getId());
		if (ch != null && ch.getValue()) {
			ret.add(session.getLabel());
		}
	}
	if (!ret.isEmpty())
		return ToolBox.toString(ret);
	return null;
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:14,代码来源:RoomGroupEdit.java

示例14: futureChanged

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
protected void futureChanged() {
	if ((iRoom.getUniqueId() == null && iProperties.hasFutureSessions()) || iRoom.hasFutureRooms()) {
		for (int i = 1; i < iApplyTo.getRowCount(); i++) {
			CheckBox ch = (CheckBox)iApplyTo.getWidget(i, 0);
			if (ch.getValue()) {
				iEventStatus.setHint(MESSAGES.eventStatusHint(iRoom.hasSessionName() ? iRoom.getSessionName() : iProperties.getAcademicSessionName()));
				return;
			}
		}
	}
	iEventStatus.clearHint();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:13,代码来源:RoomEdit.java

示例15: hasSelection

import com.google.gwt.user.client.ui.CheckBox; //导入方法依赖的package包/类
public boolean hasSelection() {
	for (int row = 1; row < getRowCount(); row++) {
		Widget w =  getWidget(row, 0);
		if (w != null && w instanceof CheckBox) {
			CheckBox ch = (CheckBox)w;
			if (ch.getValue()) return true;
		}
	}
	return false;
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:11,代码来源:EventMeetingTable.java


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