net.fenyo.gnetwatch.data
Class Views

java.lang.Object
  extended by net.fenyo.gnetwatch.data.Views

public class Views
extends java.lang.Object

This class creates and manages views, depending on the events that are created.

Version:
$Id: Views.java,v 1.26 2008/05/21 16:46:06 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  GUI gui
           
private static Log log
           
 
Constructor Summary
Views(GUI gui)
          Constructor.
 
Method Summary
 boolean canManageThisChild(VisualElement visual_element)
          Checks that the parameter can be a child of this visual element.
 void refreshDataViews(Target target, java.lang.Class event_type)
          Each time a target gets a new event type, this method creates the associated view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

gui

private final GUI gui
Constructor Detail

Views

public Views(GUI gui)
Constructor.

Parameters:
gui - GUI instance.
Method Detail

refreshDataViews

public void refreshDataViews(Target target,
                             java.lang.Class event_type)
                      throws java.lang.Exception
Each time a target gets a new event type, this method creates the associated view.

Parameters:
target - new target.
Throws:
java.lang.Exception

canManageThisChild

public boolean canManageThisChild(VisualElement visual_element)
Checks that the parameter can be a child of this visual element.

Parameters:
visual_element - visual element.
Returns:
boolean true is the parameter can be a child of this visual element.