本文整理汇总了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);
}
}
}
}
}
示例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);
}
}
}
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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();
}
}
示例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);
}
示例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;
}
示例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();
}
示例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;
}