Package com.tll.common.msg

Examples of com.tll.common.msg.Msg


        valid = false;
      }
      if(!valid) {
        final String smsg = StringUtil.replaceVariables("Please enter a number between %1 and %2.", new Object[] {
          Integer.valueOf(1), Integer.valueOf(numPages) });
        Msgs.post(new Msg(smsg, MsgLevel.ERROR), tbPage, Position.BOTTOM, 3000, false);
        tbPage.setText(Integer.toString(crntPage));
        return;
      }
      assert listingOperator != null : "No listing operator set";
      listingOperator.gotoPage(page - 1);
View Full Code Here


          EditEvent.fireUpdate(this, medited, mchanged);
        }
      }
      catch(final NoChangesException e) {
        // no field edits were made
        Msgs.post(new Msg("No changes detected.", MsgLevel.INFO), this, Position.CENTER, 3000, true);
      }
      catch(final ValidationException e) {
        // turn on incremental validation after first pass
        fieldPanel.getFieldGroup().validateIncrementally(true);
      }
View Full Code Here

   * @param target
   * @param errorMsg
   */
  public Error(ErrorClassifier classifier, IWidgetRef target, String errorMsg) {
    this.classifier = classifier;
    errorMsgs.add(new Msg(errorMsg, MsgLevel.ERROR));
    this.target = target;
  }
View Full Code Here

        else {
          s =
            "This is classified " + level.getName() + " message #" + Integer.toString(i + 1) + " (cid: " + cfr
            + ")";
        }
        list.add(new Msg(s, level));
      }
      return list;
    }
View Full Code Here

   * Constructor
   * @param msg
   * @param level
   */
  public Status(String msg, MsgLevel level) {
    addMsg(new Msg(msg, level));
  }
View Full Code Here

   * @param msg the message
   * @param level the msg level
   * @param attribs the message attribs
   */
  public Status(String msg, MsgLevel level, int attribs) {
    addMsg(new Msg(msg, level, attribs, null));
  }
View Full Code Here

   * @param attribs
   * @param refToken
   * @see Msg#Msg(String, MsgLevel, int, String)
   */
  public void addMsg(String msg, MsgLevel level, int attribs, String refToken) {
    addMsg(new Msg(msg, level, attribs, refToken));
  }
View Full Code Here

      reload();
      return;

    case ADDED:
      model = event.getModel();
      gmp.add(new Msg(model.descriptor() + " added", MsgLevel.INFO), null);
      editPanel.setModel(model);
      break;

    case UPDATED:
      model = event.getModel();
      gmp.add(new Msg(model.descriptor() + " updated", MsgLevel.INFO), null);
      editPanel.setModel(model);
      break;

    case DELETED:
      // we need to defer so as not to interfere with ViewManager's
View Full Code Here

   * @param target
   * @param errorMsg
   */
  public Error(final ErrorClassifier classifier, final IWidgetRef target, final String errorMsg) {
    this.classifier = classifier;
    errorMsgs.add(new Msg(errorMsg, MsgLevel.ERROR));
    this.target = target;
  }
View Full Code Here

      reload();
      return;

    case ADDED:
      model = event.getModel();
      gmp.add(new Msg(model.descriptor() + " added", MsgLevel.INFO), null);
      editPanel.setModel(model);
      break;

    case UPDATED:
      model = event.getModel();
      gmp.add(new Msg(model.descriptor() + " updated", MsgLevel.INFO), null);
      editPanel.setModel(model);
      break;

    case DELETED:
      // we need to defer so as not to interfere with ViewManager's
View Full Code Here

TOP

Related Classes of com.tll.common.msg.Msg

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.