Examples of Toaster


Examples of com.nitido.utils.toaster.Toaster

            TreeSelectionListener listener) {
        this.zooInspectorManager = zooInspectorManager;
        this.setLayout(new BorderLayout());
        final JPopupMenu popupMenu = new JPopupMenu();
        final JMenuItem addNotify = new JMenuItem("Add Change Notification");
        this.toasterManager = new Toaster();
        this.toasterManager.setBorderColor(Color.BLACK);
        this.toasterManager.setMessageColor(Color.BLACK);
        this.toasterManager.setToasterColor(Color.WHITE);
        addNotify.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of com.nitido.utils.toaster.Toaster

            TreeSelectionListener listener, IconResource iconResource) {
        this.zooInspectorManager = zooInspectorManager;
        this.setLayout(new BorderLayout());
        final JPopupMenu popupMenu = new JPopupMenu();
        final JMenuItem addNotify = new JMenuItem("Add Change Notification");
        this.toasterManager = new Toaster();
        this.toasterManager.setBorderColor(Color.BLACK);
        this.toasterManager.setMessageColor(Color.BLACK);
        this.toasterManager.setToasterColor(Color.WHITE);
        toasterIcon = iconResource.get(IconResource.ICON_INFORMATION,"");
        addNotify.addActionListener(new ActionListener() {
View Full Code Here

Examples of com.sshtools.ui.awt.Toaster

  public AbstractAWTGUI() {
    OptionDialog.INFORMATION_ICON = "/images/dialog-information.gif"; //$NON-NLS-1$
    OptionDialog.WARNING_ICON = "/images/dialog-warning.gif"; //$NON-NLS-1$
    OptionDialog.QUESTION_ICON = "/images/dialog-question.gif"; //$NON-NLS-1$
    OptionDialog.ERROR_ICON = "/images/dialog-error.gif"; //$NON-NLS-1$
    popup = new Toaster(Toaster.BOTTOM_RIGHT, new Dimension(300, 100));
    popup.setTextAlign(Component.LEFT_ALIGNMENT);
    Font norm = new Font("Arial", Font.PLAIN, 10); //$NON-NLS-1$
    Font title = new Font("Arial Bold", Font.BOLD, 11); //$NON-NLS-1$
    popup.setTextFont(norm);
    popup.setTitleFont(title);
View Full Code Here

Examples of org.wicketstuff.scriptaculous.fx.Toaster

  public ToasterExamplePage()
  {
    super();
    final Model<String> messageModel=new Model<String>();

    final Toaster toasterStandard = new Toaster("standardToaster",messageModel,false);
    add(toasterStandard);
    add(new AjaxLink<String>("standard")
    {
   
      @Override
      public void onClick(AjaxRequestTarget target)
      {
        messageModel.setObject("heres how I look as standard");
        toasterStandard.publishMessage(target);
      }
    });

   
    final Toaster toasterMiddle = new Toaster("middleToaster",messageModel,true);
    toasterMiddle.getToasterSettings().setLocation(ToasterLocation.MiddleMiddle);
    toasterMiddle.getToasterSettings().setToasterBackground("red");
    toasterMiddle.getToasterSettings().setToasterBorderColor("green");
    toasterMiddle.setupCSSLocation();
    add(toasterMiddle);
    add(new AjaxLink<String>("middle")
    {
   
      @Override
      public void onClick(AjaxRequestTarget target)
      {
        messageModel.setObject("heres how I look when in middle");
        toasterMiddle.publishMessage(target);
   
      }
   
    });

   
    final Toaster toasterEffects = new Toaster("effectsToaster",messageModel,false);

    // Dont want a middle effect
    toasterEffects.getToasterSettings().setMiddle(null);
   
    Effect.DropOut fade=new Effect.DropOut(toasterEffects.getContainer());
    fade.setQueue("end");
   
    toasterEffects.getToasterSettings().setFade(fade);
    add(toasterEffects);
    add(new AjaxLink<String>("effects")
    {
   
      @Override
      public void onClick(AjaxRequestTarget target)
      {
        messageModel.setObject("heres how I look with custom effects");
        toasterEffects.publishMessage(target);
   
      }
   
    });   
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.