Class cern.lhcias.csgui.TagsView.CompoundView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----cern.lhcias.csgui.TagsView.CompoundView

public class CompoundView
extends Panel
implements TagsView


Class CompoundView is a container for other TagsView.
TagsView type implemented: CompoundView
Configuration: the URL of the file containing the description in standard dgsl
Ex:
#ViewType CompoundView
#Size 600 105
#
# format: component type x y width height component_configuration
component TREND_TYPE 1 1 95 95 d3
component TEXT_TYPE 100 1 95 95 d2
component LED_TYPE 200 1 95 95 2
component TextLabel 300 1 55 25 d2
component HScrollbar 400 5 55 25 d2

It is possible to dynamically create a compoundView. When CompoundView receives a
request to insert a Tag, a list of Tags or a TagsView, it opens a dialog window in
which it is possible to specify how and where to insert the component.
It is also possible to move a TagsView component inside the CompoundView. To do so,
double click in the CompoundView, but outside any included components. A dialog window
will open. This new window subscribes to the TagClicked event. So, to move a component,
one has to click on it in the CompoundView main window and then change its coordinates
in the dialog window.


Variable Index

 o DEFAULT_TYPE
 

Constructor Index

 o CompoundView()
 

Method Index

 o addAlarmListener(AlarmListener)
 
 o addOpenViewListener(OpenViewListener)
 
 o addTag(String)
 
 o addTag(String, String)
 
 o addTag(String, String, int, int, int, int)
 
 o addTag(TagsView)
 
 o addTag(Vector)
 
 o addTagClickedListener(TagClickedListener)
 
 o doYouImplement(String)
 
 o get_name(int)
 
 o getComponentNb()
 
 o getComponentsList()
 
 o getLocalTagNames()
 
 o getPossibleTypes()
 
 o getPreferredSize()
 
 o getTagNames()
 
 o getType()
 
 o instantiate(TagArrays, String, TagChangeAdapter, TagClickedAdapter, OpenViewAdapter, configurationMgr, AlarmAdapter)
 
 o paint(Graphics)
 
 o receiveTagChange(TagChangeEvent)
 
 o removeAlarmListener(AlarmListener)
 
 o removeNotify()
 
 o removeOpenViewListener(OpenViewListener)
 
 o removeTag(String)
 
 o removeTag(TagsView)
 
 o removeTag(Vector)
 
 o removeTagClickedListener(TagClickedListener)
 
 o removeWindowCompSettings()
 
 o setBackground(String)
 
 o setConfig(String)
This method will configure the CompoundView according to the content
of the file which URL is given by the parameter config.
 o setProperty(String, String, String)
 
 o setTagsViewBounds(TagsView, int, int, int, int)
 
 o setTagsViewProperty(TagsView, String, String)
 
 o toString()
this method will save remotely the description of the file and will
return the URL of the remote file.

Variables

 o DEFAULT_TYPE

 public static final String DEFAULT_TYPE

Constructors

 o CompoundView

 public CompoundView()

Methods

 o addTagClickedListener

 public synchronized void addTagClickedListener(TagClickedListener listener)

 o removeTagClickedListener

 public synchronized void removeTagClickedListener(TagClickedListener listener)

 o addOpenViewListener

 public void addOpenViewListener(OpenViewListener listener)

 o removeOpenViewListener

 public void removeOpenViewListener(OpenViewListener listener)

 o addAlarmListener

 public void addAlarmListener(AlarmListener listener)

 o removeAlarmListener

 public void removeAlarmListener(AlarmListener listener)

 o instantiate

 public void instantiate(TagArrays TA,
                         String configname,
                         TagChangeAdapter adapter,
                         TagClickedAdapter cadapter,
                         OpenViewAdapter Opadapter,
                         configurationMgr cm,
                         AlarmAdapter aA)

 o getPreferredSize

 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container

 o toString

 public String toString()
this method will save remotely the description of the file and will
return the URL of the remote file. It needs to get the name of the
remote save program through the CentralManager.getRemoteSavePg method.
Overrides:
toString in class Component

 o setConfig

 public void setConfig(String config)
This method will configure the CompoundView according to the content
of the file which URL is given by the parameter config.
Ex of a configuration file:
#ViewType CompoundView
#Size 600 105
#
#Background http://www.myhost.ch/BACK/C_panel.gif
# format: component type x y width height component_configuration
component TREND_TYPE 1 1 95 95 d3
If the file contains some Tag definitions (lines starting with #TagDef, it will
send their description to the TagArrays.

 o getComponentNb

 public int getComponentNb()

 o getComponentsList

 public Vector getComponentsList()

 o setTagsViewBounds

 public void setTagsViewBounds(TagsView tV,
                               int x,
                               int y,
                               int width,
                               int height)

 o setTagsViewProperty

 public void setTagsViewProperty(TagsView tV,
                                 String Property,
                                 String Value)

 o removeWindowCompSettings

 public void removeWindowCompSettings()

 o addTag

 public void addTag(String tagName)

 o addTag

 public void addTag(String config,
                    String type)

 o addTag

 public void addTag(String config,
                    String type,
                    int x,
                    int y,
                    int width,
                    int height)

 o addTag

 public void addTag(Vector tagNames)

 o addTag

 public void addTag(TagsView TVcomponent)

 o removeTag

 public void removeTag(String name)

 o removeTag

 public void removeTag(Vector tagNames)

 o removeTag

 public void removeTag(TagsView TVcomponent)

 o get_name

 public String get_name(int i)

 o getTagNames

 public Vector getTagNames()

 o getLocalTagNames

 public Vector getLocalTagNames()

 o removeNotify

 public void removeNotify()
Overrides:
removeNotify in class Container

 o setProperty

 public void setProperty(String tagname,
                         String tagProperty,
                         String propertyValue)

 o receiveTagChange

 public void receiveTagChange(TagChangeEvent tagevent)

 o setBackground

 public void setBackground(String BackgroundURL)

 o paint

 public void paint(Graphics g)
Overrides:
paint in class Container

 o doYouImplement

 public boolean doYouImplement(String type)

 o getPossibleTypes

 public Vector getPossibleTypes()

 o getType

 public String getType()