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