View RSS Feed

Recent Blogs Posts

  1. General Event Handling in Servlets Part 3

    by , 11-29-2011 at 12:35 AM
    In the first two article on general event handling with servlets we have covered how to detect changes in the servlet context and monitoring the creation and destruction of the servlet context. In this last article of the series we will look into how to use listeners with tag libraries. If you have not seen the first two articles of this series, General Event Handling in Servlets, Part 1 and General Event Handling in Servlets, Part 2, then I would recommend that you review them before continuing ...

    Updated 12-09-2011 at 05:16 PM by Servlet

    Categories
    Tutorial , Web , Listener , ServletContextListener
  2. General Event Handling in Servlets Part 2

    by , 11-29-2011 at 12:26 AM
    In the last article, we started to look into the Application Events Framework for servlets and javaserver pages. We listed eight different kinds of events listeners that are related to web application life-cycle events. If you are interested, go review the post, General Event Handling in Servlets Part 1.

    In that article, we looked at the first of the listeners for the initialization and destruction of servlet context and we presented an example of it’s use for a company that is constantly ...

    Updated 12-09-2011 at 05:13 PM by Servlet

    Categories
    ServletContextListener , Tutorial , Web , Listener
  3. Listening for Events with Spring

    by , 11-16-2011 at 05:03 PM
    During the application life cycle, the ApplicationContext will publish a handful of events that tell interested listeners what’s going on. All of these events are all subclasses of the abstract class org.springframework.context.ApplicationEvent. A couple of these subclasses are:
    • ContextClosedEvent—Published when the application context is closed
    • ContextRefreshedEvent—Published when the application context is initialized or refreshed
    • RequestHandledEvent—Published within a web application
    ...
    Categories
    Event
  4. SWT Text

    by , 11-10-2011 at 07:12 PM (My Java Tips)
    Text is a selectable user interface objects that allow the user to enter and modify text. Events associated with Text are: DefaultSelection, Modify, Verify. Different Text styles are CENTER, LEFT, MULTI, PASSWORD, SINGLE, RIGHT, READ_ONLY, WRAP. Please note that only one of the styles MULTI and SINGLE may be specified.


    The following are the important constructors of Text class.

    Text(Composite parent, int style)
    Constructs a new instance of this class given its ...
  5. SWT Events

    by , 11-10-2011 at 06:41 PM (My Java Tips)
    In order to work with events in SWT, you create a listener specific to the event that you wish to capture. There is an interface for each listener that you can use (for example SelectionListener). There is also a class that will provide you with the event information (for example SelectionEvent). Within the listener that you create, you must implement the methods defined in the interface.



    Java Code:
    SelectionListener listener = new SelectionListener()
    {
    	public
    ...
    Categories
    SWT / JFace