Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

dexter.core
Class AbstractService  view AbstractService download AbstractService.java

java.lang.Object
  extended bydexter.core.AbstractService
All Implemented Interfaces:
Entry, Service, dexter.swingExtensions.Trayable
Direct Known Subclasses:
DefaultService

public abstract class AbstractService
extends java.lang.Object
implements Service, Entry, dexter.swingExtensions.Trayable


Nested Class Summary
 class AbstractService.OptionAction
           
 
Field Summary
protected  java.lang.String classname
           
(package private)  java.util.Vector dataChangeListeners
           
(package private)  javax.swing.ImageIcon icon
           
(package private)  int id
           
(package private)  java.lang.String name
           
protected  AbstractService.OptionAction optionAction
           
protected  javax.swing.JMenuItem optionMenuItem
           
protected  PluginMenu pluginMenu
           
protected  javax.swing.JPopupMenu popup
           
protected  dexter.property.PropertyFile propertyFile
           
protected  dexter.property.Property pTray
           
protected  javax.swing.tree.DefaultMutableTreeNode root
           
(package private)  java.lang.String toolTipText
           
(package private)  java.util.Vector trayListeners
           
protected  dexter.swingExtensions.TreePanel treePanel
           
 
Constructor Summary
AbstractService()
          Creates a new instance of Service
 
Method Summary
 void addDataChangeListener(DataChangeListener dcl)
           
 void addTrayListener(dexter.swingExtensions.TrayListener tcl)
           
 void destroy()
           
 void fireAddToTray()
           
 void fireChangeTray()
           
 void fireNodeAdded(javax.swing.tree.DefaultMutableTreeNode parent, javax.swing.tree.DefaultMutableTreeNode node)
           
 void fireNodeChanged(javax.swing.tree.DefaultMutableTreeNode node)
           
 void fireNodeMoved(javax.swing.tree.DefaultMutableTreeNode newParent, javax.swing.tree.DefaultMutableTreeNode node)
           
 void fireNodeRemoveAll(javax.swing.tree.DefaultMutableTreeNode node)
           
 void fireNodeRemoved(javax.swing.tree.DefaultMutableTreeNode node)
           
 void fireRemoveFromTray()
           
 void fireSelected()
           
 java.awt.Font getFont()
           
 javax.swing.ImageIcon getIcon()
           
 int getId()
          Getter for property id.
 javax.swing.JPanel getPanel()
           
 PluginMenu getPluginMenu()
           
 javax.swing.JPopupMenu getPopupMenu()
           
 dexter.property.PropertyFile getPropertyFile()
           
 javax.swing.ImageIcon getRollOverIcon()
           
 javax.swing.tree.DefaultMutableTreeNode getRootTreeNode()
           
 java.lang.String getToolTipText()
           
 javax.swing.ImageIcon getTrayIcon()
           
 javax.swing.JPopupMenu getTrayPopupMenu()
           
 void init()
           
protected  void invokePropertyDlg()
           
abstract  boolean isDestroyed()
           
 boolean isTray()
           
 void removeDataChangeListener(DataChangeListener dcl)
           
 void removeFromTray()
           
 void removeTrayListener(dexter.swingExtensions.TrayListener tcl)
           
 void sendToTray()
           
 void setIcon(javax.swing.ImageIcon icon)
           
 void setId(int id)
          Setter for property id.
 void setServiceName(java.lang.String name)
           
 void setToolTipText(java.lang.String ttt)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void updateUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

int id

popup

protected javax.swing.JPopupMenu popup

optionMenuItem

protected javax.swing.JMenuItem optionMenuItem

pluginMenu

protected PluginMenu pluginMenu

optionAction

protected AbstractService.OptionAction optionAction

classname

protected java.lang.String classname

dataChangeListeners

java.util.Vector dataChangeListeners

trayListeners

java.util.Vector trayListeners

root

protected javax.swing.tree.DefaultMutableTreeNode root

name

java.lang.String name

toolTipText

java.lang.String toolTipText

icon

javax.swing.ImageIcon icon

treePanel

protected dexter.swingExtensions.TreePanel treePanel

pTray

protected dexter.property.Property pTray

propertyFile

protected dexter.property.PropertyFile propertyFile
Constructor Detail

AbstractService

public AbstractService()
Creates a new instance of Service

Method Detail

addDataChangeListener

public void addDataChangeListener(DataChangeListener dcl)

removeDataChangeListener

public void removeDataChangeListener(DataChangeListener dcl)

addTrayListener

public void addTrayListener(dexter.swingExtensions.TrayListener tcl)
Specified by:
addTrayListener in interface Service

removeTrayListener

public void removeTrayListener(dexter.swingExtensions.TrayListener tcl)
Specified by:
removeTrayListener in interface Service

fireNodeRemoved

public void fireNodeRemoved(javax.swing.tree.DefaultMutableTreeNode node)

fireNodeRemoveAll

public void fireNodeRemoveAll(javax.swing.tree.DefaultMutableTreeNode node)

fireNodeAdded

public void fireNodeAdded(javax.swing.tree.DefaultMutableTreeNode parent,
                          javax.swing.tree.DefaultMutableTreeNode node)

fireAddToTray

public void fireAddToTray()

fireRemoveFromTray

public void fireRemoveFromTray()

fireChangeTray

public void fireChangeTray()

fireNodeMoved

public void fireNodeMoved(javax.swing.tree.DefaultMutableTreeNode newParent,
                          javax.swing.tree.DefaultMutableTreeNode node)

fireNodeChanged

public void fireNodeChanged(javax.swing.tree.DefaultMutableTreeNode node)

getRootTreeNode

public javax.swing.tree.DefaultMutableTreeNode getRootTreeNode()

setServiceName

public void setServiceName(java.lang.String name)

setToolTipText

public void setToolTipText(java.lang.String ttt)

fireSelected

public void fireSelected()
Specified by:
fireSelected in interface Entry

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface Entry

setIcon

public void setIcon(javax.swing.ImageIcon icon)

getToolTipText

public java.lang.String getToolTipText()
Specified by:
getToolTipText in interface Entry

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


invokePropertyDlg

protected void invokePropertyDlg()

getPopupMenu

public javax.swing.JPopupMenu getPopupMenu()
Specified by:
getPopupMenu in interface Entry

getPropertyFile

public dexter.property.PropertyFile getPropertyFile()
Specified by:
getPropertyFile in interface Service

init

public void init()
Specified by:
init in interface Service

destroy

public void destroy()
Specified by:
destroy in interface Service

getFont

public java.awt.Font getFont()
Specified by:
getFont in interface Entry

getPanel

public javax.swing.JPanel getPanel()
Specified by:
getPanel in interface Service

getId

public int getId()
Getter for property id.

Specified by:
getId in interface Service

setId

public void setId(int id)
Setter for property id.

Specified by:
setId in interface Service

getRollOverIcon

public javax.swing.ImageIcon getRollOverIcon()
Specified by:
getRollOverIcon in interface dexter.swingExtensions.Trayable

getTrayIcon

public javax.swing.ImageIcon getTrayIcon()
Specified by:
getTrayIcon in interface dexter.swingExtensions.Trayable

getTrayPopupMenu

public javax.swing.JPopupMenu getTrayPopupMenu()
Specified by:
getTrayPopupMenu in interface dexter.swingExtensions.Trayable

isTray

public boolean isTray()
Specified by:
isTray in interface dexter.swingExtensions.Trayable

removeFromTray

public void removeFromTray()
Specified by:
removeFromTray in interface dexter.swingExtensions.Trayable

isDestroyed

public abstract boolean isDestroyed()
Specified by:
isDestroyed in interface Service

sendToTray

public void sendToTray()
Specified by:
sendToTray in interface dexter.swingExtensions.Trayable

updateUI

public void updateUI()
Specified by:
updateUI in interface Service

getPluginMenu

public PluginMenu getPluginMenu()
Specified by:
getPluginMenu in interface Service