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

Quick Search    Search Deep

com.paradoxpoint.libitina.tool
Class ToolBox  view ToolBox download ToolBox.java

java.lang.Object
  extended bycom.paradoxpoint.libitina.tool.ToolBox
All Implemented Interfaces:
ToolContainer

public class ToolBox
extends java.lang.Object
implements ToolContainer


Field Summary
private  javax.swing.event.EventListenerList listenerList
          Utility field used by event firing mechanism.
private  java.beans.PropertyChangeSupport propertyChangeSupport
          Utility field used by bound properties.
private  Tool tool
          Holds value of property tool.
private static java.util.Map tools
           
 
Constructor Summary
ToolBox()
          Creates a new instance of ToolBox
 
Method Summary
 void addToolSelectionListener(ToolSelectionListener listener)
          Registers ToolSelectionListener to receive events.
private  void fireToolChanged(ToolSelectionEvent event)
          Notifies all registered listeners about the event.
 Tool getTool()
          Getter for property tool.
 Tool getTool(java.lang.String name)
           
 void removeToolSelectionListener(ToolSelectionListener listener)
          Removes ToolSelectionListener from the list of listeners.
 void setTool(Tool tool)
          Setter for property tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tools

private static java.util.Map tools

listenerList

private javax.swing.event.EventListenerList listenerList
Utility field used by event firing mechanism.


tool

private Tool tool
Holds value of property tool.


propertyChangeSupport

private java.beans.PropertyChangeSupport propertyChangeSupport
Utility field used by bound properties.

Constructor Detail

ToolBox

public ToolBox()
Creates a new instance of ToolBox

Method Detail

getTool

public Tool getTool(java.lang.String name)

addToolSelectionListener

public void addToolSelectionListener(ToolSelectionListener listener)
Registers ToolSelectionListener to receive events.


removeToolSelectionListener

public void removeToolSelectionListener(ToolSelectionListener listener)
Removes ToolSelectionListener from the list of listeners.


fireToolChanged

private void fireToolChanged(ToolSelectionEvent event)
Notifies all registered listeners about the event.


getTool

public Tool getTool()
Getter for property tool.

Specified by:
getTool in interface ToolContainer

setTool

public void setTool(Tool tool)
Setter for property tool.

Specified by:
setTool in interface ToolContainer