Package com.tll.common.msg

Examples of com.tll.common.msg.Msg


          @Override
          public void onClick(ClickEvent event) {
            MsgLevel level = MsgLevel.values()[rnd.nextInt(MsgLevel.values().length)];
            String msgText = msgTexts[rnd.nextInt(msgTexts.length)];
            Msg msg = new Msg(msgText, level);
            Status status = new Status(msg);
            statusDisplay.addStatus(status);
          }
        }),
      };
View Full Code Here


        setVisible(true);
        break;

      case UPDATED:
        setModel(event.getModel());
        msgDisplay.add(new Msg(fieldPanel.getModel().descriptor() + " updated.", MsgLevel.INFO), null);
        break;

      case ADDED:
        InterfaceStack.this.stackPanel.setStackText(InterfaceStack.this.stackPanel.getWidgetIndex(InterfacePanel.this),
            getStackHtml(event.getModel()), true);
        setModel(event.getModel());
        showCancelButton(false);
        showDeleteButton(true);
        msgDisplay.add(new Msg(fieldPanel.getModel().descriptor() + " added.", MsgLevel.INFO), null);
        break;

      case DELETED:
        msgDisplay.add(new Msg(fieldPanel.getModel().descriptor() + " deleted.", MsgLevel.INFO), null);
        // remove interface
        removeInterface(InterfacePanel.this);
        break;
      }
    }
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

        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

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.