org.viewaframework.view
Class AbstractViewContainerTray

java.lang.Object
  extended by org.viewaframework.view.AbstractViewContainer
      extended by org.viewaframework.view.DefaultViewContainer
          extended by org.viewaframework.view.AbstractViewContainerTray
All Implemented Interfaces:
RootPaneContainer, ViewControllerAware, ApplicationAware, MessageAware, ViewModelAware, ComponentsAware, DelegatorAware, ViewContainerEventAware, ViewContainerEventControllerAware, ViewContainer

public abstract class AbstractViewContainerTray
extends DefaultViewContainer

This class creates a tray icon in the system tray. It's based in the JDK 1.6 TrayIcon object.

Since:
1.0.4
Author:
Mario Garcia

Field Summary
 
Fields inherited from interface org.viewaframework.view.ViewContainer
CONTENTPANE, FRAME, MENUBAR, ROOTPANE, TOOLBAR
 
Constructor Summary
AbstractViewContainerTray(String Id)
          Constructor
 
Method Summary
 List<Delegator> getDelegators()
           
 Image getImage()
          Returns the current tray icon's image
 String getToolTip()
          Returns the current tray icon's toolTip
 ViewTrayIcon getTrayIcon()
          Returns the tray icon object
 void setDelegators(List<Delegator> delegators)
           
 void setImage(Image icon)
          Exposing the setImage method from TrayIcon
 void setToolTip(String toolTip)
          Exposing the setToolTip method from TrayIcon
 void setTrayIcon(ViewTrayIcon trayIcon)
          Establishing the TrayIcon
 
Methods inherited from class org.viewaframework.view.AbstractViewContainer
addDelegator, addModelValue, addViewContainerListener, fireViewClose, fireViewFinalUIState, fireViewInit, fireViewInitBackActions, fireViewInitUIState, getActionDescriptors, getApplication, getComponentByName, getComponentsByName, getContainer, getContentPane, getGlassPane, getIconImage, getId, getJToolBar, getLayeredPane, getMessage, getMessageBundle, getModelValue, getNamedComponents, getRootPane, getTitle, getViewContainerListeners, getViewControllerMap, getViewModelMap, removeDelegator, removeViewContainerListener, setActionDescriptors, setApplication, setContentPane, setGlassPane, setIconImage, setId, setJToolbar, setLayeredPane, setMessageBundle, setNamedComponents, setTitle, setViewContainerListeners, setViewControllerMap, setViewModelMap, viewClose, viewFinalUIState, viewInit, viewInitBackActions, viewInitUIState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewContainerTray

public AbstractViewContainerTray(String Id)
Constructor

Parameters:
Id -
Method Detail

getDelegators

public List<Delegator> getDelegators()
Specified by:
getDelegators in interface DelegatorAware
Overrides:
getDelegators in class AbstractViewContainer

getImage

public Image getImage()
Returns the current tray icon's image

Returns:

getToolTip

public String getToolTip()
Returns the current tray icon's toolTip

Returns:

getTrayIcon

public ViewTrayIcon getTrayIcon()
Returns the tray icon object

Returns:

setDelegators

public void setDelegators(List<Delegator> delegators)
Specified by:
setDelegators in interface DelegatorAware
Overrides:
setDelegators in class AbstractViewContainer

setImage

public void setImage(Image icon)
Exposing the setImage method from TrayIcon

Parameters:
icon -

setToolTip

public void setToolTip(String toolTip)
Exposing the setToolTip method from TrayIcon

Parameters:
toolTip -

setTrayIcon

public void setTrayIcon(ViewTrayIcon trayIcon)
Establishing the TrayIcon

Parameters:
trayIcon -


Copyright © 2010. All Rights Reserved.