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