Code Monkey home page Code Monkey logo

toaster's Introduction

Toaster

alt text

Toaster is a Java API allowing developpers to create Notifications (smartphone like toast messages) in their Java Programs.

Why Toaster ?

Because today Java doesn't provide any Toastmessage interface to developpers.

How to use it ?

With toaster you can create personalisable toastmessage (max 2 lines or 50 characters). You can personalise font color, background color, aparition style, remove style, icon, corner style;

First instanciate the toaster using getInstance().

Toaster myToaster;
  myToaster = Toaster.getInstance();

Now you are ready to create toast ! Use one of the multiple Toast method provided by the toaster.

//Creates a toast with red background color, yellow font color and wich will stay on screen for 1s
  myToaster.Toast("Hello",Color.RED,Color.YELLOW,1000);
  //Creates a toast with red background color, yellow font color and wich will stay on screen until you click on it
  myToaster.Toast("Hello",Color.RED,Color.YELLOW,0);
  /*Creates a toast with square corners, red background color, yellow font color and wich will stay on screen for 1s. 
  This toast will appear by sliding from the right of your screen.*/
  myToaster.Toast("Hello",Color.RED,Color.YELLOW,ApparitionStyle.TrayLeft,RemoveStyle.TrayRight,AppearanceStyle.SquareCorners,1000);

What you could get

alt text

Javadoc

Java doc is in folder javadoc

Jar

A jar is provided in dist folder

License

Released under Apache License 2.0

toaster's People

Contributors

marcalx avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.