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


Java Label.setValue方法代码示例

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


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

示例1: createIdCell

import org.zkoss.zul.Label; //导入方法依赖的package包/类
private Component createIdCell(IdentityEnum id) {
	if (StringUtils.isNotBlank(id.name())){
		Listcell cell = new Listcell();
		Hlayout h = new Hlayout();
		Image image = new Image();
		image.setSrc((String) IDENTITY_CONVERTER.coerceToUi(id, image));
		image.setWidth("36px");
		Label label = new Label();
		label.setValue((String) IDENTITY_CONVERTER.coerceToUi(id, label));
		h.setSpacing("10px");
		Div div = new Div();
		div.setStyle("margin-top : 7px;");
		
		label.setParent(div);
		image.setParent(h);
		div.setParent(h);
		h.setParent(cell);
		return cell;
	}
	
	return new Listcell();
}
 
开发者ID:Meijinfr,项目名称:Run4WinTournamentManager,代码行数:23,代码来源:ListPlayerRenderer.java

示例2: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(String errorCode) {
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(ShutdownController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:ShutdownController.java

示例3: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 * @param exception exception to log
 */
private void showError(String errorCode, Exception exception) {
    if (exception != null) {
        Logger.getLogger(FileController.class.getName()).log(Level.SEVERE, "ERROR DISPATCHING JOB", exception);
    }
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(FileController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:19,代码来源:FileController.java

示例4: refreshGAList

import org.zkoss.zul.Label; //导入方法依赖的package包/类
@Command
@NotifyChange(value = { "service_list", "currentState", "userList", "userListbyOffice" })
public void refreshGAList() {
    if (isLogin()) {
        // QLog.l().logger().debug("\n\n\n\nGABOARD VISIBILITY: \n" + CheckGABoard + "\n\n");
        // QLog.l().logger().debug("\n\n\n\nGABOARD VISIBILITY user.getGABoard(): \n" + user.getGABoard() + "\n\n");
        // user.getGABoard()
        if (CheckGABoard == true) {
            // UsersInside.getInstance().getUsersInside()
            // .put(user.getName() + user.getPassword(), new Date().getTime());
            // QSessions.getInstance()
            // .update(user.getUser().getId(), Sessions.getCurrent().getRemoteHost(),
            // Sessions.getCurrent().getRemoteAddr().getBytes());
            ////
            // Long userId = user.getUser().getId();
            // QUser quser = QUserList.getInstance().getById(userId);
            // quser.setCurrentState(currentState);

            // aftercompose(#GAManagementDialog);
            GAManagementDialogWindow.doModal();
            Label CW = (Label) GAManagementDialogWindow.getFellow("GA_CW");
            String S_CW = new Integer(getCustomersCount()).toString();
            CW.setValue(S_CW);

            Label SC = (Label) GAManagementDialogWindow.getFellow("GA_SC");
            String S_SC = new Integer(servingCSR()).toString();
            SC.setValue(S_SC);

            Label LC = (Label) GAManagementDialogWindow.getFellow("GA_LC");
            String S_LC = new Integer(LogginCSR()).toString();
            LC.setValue(S_LC);
        }
        // BindUtils.postNotifyChange(null, null, Form.this, "*");
    }
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:36,代码来源:Form.java

示例5: nuevaEtiquetaDetalle

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * M�todo para Nueva etiqueta detalle de la clase GTTUtilsWeb.
 * 
 * @param dato
 *            Par�metro dato
 * @return el label
 */
public static Label nuevaEtiquetaDetalle(final Object dato) {
    final Label labelRetorno = new Label();
    if (dato != null) {
        if (dato instanceof Date) {
            labelRetorno.setValue(dateToString((Date) dato));
        } else {
            labelRetorno.setValue(dato.toString());
        }
    }
    return labelRetorno;
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:19,代码来源:GTTUtilsWeb.java

示例6: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(Row row, Exception exception, String errorCode) {
    if (exception != null) {
        Logger.getLogger(UpgradesGridRenderer.class.getName()).log(Level.SEVERE, "ERROR DELETING UPGRADE", exception);
    }
    Window errorWindow = (Window) row.getGrid().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(UpgradesGridRenderer.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:18,代码来源:UpgradesGridRenderer.java

示例7: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 * @param exception exception to be logged
 * @param row row where the exception occured
 */
private void showError(Row row, Exception exception, String errorCode) {
    if (exception != null) {
        Logger.getLogger(DestroyGridRenderer.class.getName()).log(Level.SEVERE, "ERROR DESTROYING OR RESURRECTING INSTANCE", exception);
    }
    Window errorWindow = (Window) row.getGrid().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(DestroyGridRenderer.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:20,代码来源:DestroyGridRenderer.java

示例8: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(String errorCode) {
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(RescueController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:RescueController.java

示例9: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(String errorCode) {
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(DestroyController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:DestroyController.java

示例10: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(String errorCode) {
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(UpgradeController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:UpgradeController.java

示例11: showError

import org.zkoss.zul.Label; //导入方法依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(String errorCode) {
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(RestoreController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:AddUpgradeController.java


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