SWT重写shell类中的最大化,最小化,关闭的方法

shell.addShellListener(new   ShellAdapter()
{
/**
  *   Sent   when   a   shell   becomes   the   active   window.
  *   The   default   behavior   is   to   do   nothing.
  *
  *   @param   e   an   event   containing   information   about   the   activation
  */
public   void   shellActivated(ShellEvent   e)   {
}

/**
  *   Sent   when   a   shell   is   closed.
  *   The   default   behavior   is   to   do   nothing.
  *
  *   @param   e   an   event   containing   information   about   the   close
  */
public   void   shellClosed(ShellEvent   e)   {
}

/**
*   Sent   when   a   shell   stops   being   the   active   window.
*   The   default   behavior   is   to   do   nothing.
*
*   @param   e   an   event   containing   information   about   the   deactivation
*/
public   void   shellDeactivated(ShellEvent   e)   {
}

/**
*   Sent   when   a   shell   is   un-minimized.
*   The   default   behavior   is   to   do   nothing.
*
*   @param   e   an   event   containing   information   about   the   un-minimization
*/
public   void   shellDeiconified(ShellEvent   e)   {
}

/**
*   Sent   when   a   shell   is   minimized.
*   The   default   behavior   is   to   do   nothing.
*
*   @param   e   an   event   containing   information   about   the   minimization
*/
public   void   shellIconified(ShellEvent   e)   {
}

});
 

你可能感兴趣的:(类,shell,职场,SWT,休闲)