net.fenyo.gnetwatch.targets
Class TargetInterface

java.lang.Object
  extended by net.fenyo.gnetwatch.GUI.VisualElement
      extended by net.fenyo.gnetwatch.targets.Target
          extended by net.fenyo.gnetwatch.targets.TargetInterface

public class TargetInterface
extends Target

TargetInterface implements an interface of an IP target.

Version:
$Id: TargetInterface.java,v 1.11 2008/04/15 23:58:17 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  java.lang.String interfaceName
           
private static Log log
           
 
Fields inherited from class net.fenyo.gnetwatch.targets.Target
eventLists
 
Constructor Summary
TargetInterface()
          Default constructor.
TargetInterface(java.lang.String name, java.lang.String interface_name)
          Constructor.
 
Method Summary
 boolean canManageThisChild(VisualElement visual_element)
          Checks that the parameter can be attached to this target.
protected  java.lang.String getInterfaceName()
           
protected  void initialize(GUI gui)
          Initializes this target.
protected  void setInterfaceName(java.lang.String interface_name)
           
 
Methods inherited from class net.fenyo.gnetwatch.targets.Target
addEvent, addTarget, canAddTarget, disposed, equals, getEventLists, getEvents, getLastEvent, getName, hashCode, mergeEvents, registerComponent, setEventLists, setName, unregisterComponent
 
Methods inherited from class net.fenyo.gnetwatch.GUI.VisualElement
addParent, contains, duplicateTreeItemOnce, expandTreeItems, getAllParents, getChildren, getDescription, getGUI, getId, getItem, getParents, getProgress, getSubElements, getSubElements, getTreeItems, getType, informSelected, isDisposed, isThisOurTreeItem, removeVisualElements, selected, setChildren, setDescription, setGUI, setId, setImage, setImageExec, setImageFolder, setImageHost, setImageHost6, setImageHost6SNMP, setImageHostSNMP, setImageInterface, setImageMultiRow, setImageNetwork, setImageOscillo, setImageQueue, setImageWatch, setItem, setParent, setParent, setProgress, setType, unselected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

interfaceName

private java.lang.String interfaceName
Constructor Detail

TargetInterface

public TargetInterface(java.lang.String name,
                       java.lang.String interface_name)
                throws AlgorithmException
Constructor.

Parameters:
name - target name.
interface_name - interface name.
Throws:
AlgorithmException - exception.

TargetInterface

public TargetInterface()
                throws AlgorithmException
Default constructor.

Parameters:
none. -
Throws:
AlgorithmException - exception.
Method Detail

initialize

protected final void initialize(GUI gui)
Initializes this target.

Overrides:
initialize in class VisualElement
Parameters:
gui - current GUI instance.

getInterfaceName

protected java.lang.String getInterfaceName()

setInterfaceName

protected void setInterfaceName(java.lang.String interface_name)

canManageThisChild

public boolean canManageThisChild(VisualElement visual_element)
Checks that the parameter can be attached to this target.

Overrides:
canManageThisChild in class VisualElement
Parameters:
visual_element - parameter to check.
Returns:
true if the parameter can be attached to this target.