org.jbundle.model.Task.getStatusText()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.jbundle.model.Task.getStatusText()方法的一些代码示例,展示了Task.getStatusText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.getStatusText()方法的具体详情如下:
包路径:org.jbundle.model.Task
类名称:Task
方法名:getStatusText

Task.getStatusText介绍

暂无

代码示例

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.view.html

String strMessage = this.getTask().getStatusText(DBConstants.INFORMATION_MESSAGE);
if (strMessage != null)
  if (strMoveValue.length() > 0)

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.request.misc

/**
 * ProcessServletCommand Method.
 */
public boolean processServletCommand() throws DBException
{
  boolean bDefaultParamsFound = super.processServletCommand();
  String strError = this.getTask().getStatusText(DBConstants.INFORMATION);
  if (bDefaultParamsFound)
    if ((strError == null) || (strError.length() == 0))
  {
    String strStatus = HtmlConstants.SERVLET_LINK + "?menu=";
    strStatus = "<a href=" + strStatus + ">Click here to return to the main menu</a>.";
    this.getTask().setStatusText(strStatus, DBConstants.INFORMATION);
    this.getScreenField().setEnabled(false);        // Display screen!
  }
  return bDefaultParamsFound;
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

String strMessage = this.getTask().getStatusText(DBConstants.INFORMATION_MESSAGE);
out.println(Utility.startTag(XMLTags.STATUS_TEXT));
if (strMessage != null)

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

if (strDesc.equals(strCommand))
  if (this.getTask().getStatusText(DBConstants.WARNING_MESSAGE) == null)

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

if (this.getTask().getStatusText(DBConstants.WARNING_MESSAGE) == null)

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Do the special HTML command.
 * This gives the screen a chance to change screens for special HTML commands.
 * You have a chance to change two things:
 * 1. The information display line (this will display on the next screen... ie., submit was successful)
 * 2. The error display line (if there was an error)
 * @return this or the new screen to display.
 */
public BaseScreen doServletCommand(BasePanel screenParent)
{
  BaseScreen screen = super.doServletCommand(screenParent);    // Process params from previous screen
  
  if (MenuConstants.SUBMIT.equalsIgnoreCase(this.getProperty(DBParams.COMMAND)))
  {
    if (this.getTask().getStatusText(DBConstants.WARNING_MESSAGE) == null)
    {   // Normal return = logged in, go to main menu.
      this.free();
      return null;    // This will cause the main menu to display
    }
    else
    {
      this.getScreenRecord().getField(UserScreenRecord.kCurrentPassword).setData(null, DBConstants.DISPLAY, DBConstants.INIT_MOVE);
      this.getScreenRecord().getField(UserScreenRecord.kNewPassword1).setData(null, DBConstants.DISPLAY, DBConstants.INIT_MOVE);
      this.getScreenRecord().getField(UserScreenRecord.kNewPassword2).setData(null, DBConstants.DISPLAY, DBConstants.INIT_MOVE);
    }
  }
  
  return screen;    // By default, don't do anything
}

相关文章