format_geometrie_GUI
Class VAE_ObjectInterfaceGenerator

java.lang.Object
  extended by format_geometrie_GUI.VAE_ObjectInterfaceGenerator
Direct Known Subclasses:
FunctionWindow, IfWindow, MatrixWindow, MotorWindow, MultiplexWindow, TimerWindow

public class VAE_ObjectInterfaceGenerator
extends java.lang.Object

Fenetre de g�n�ration d'interface générique.

Author:
Matthieu Courgeon

Field Summary
protected static java.util.Vector<AttributePanel> attrDisp
           
protected static TButton cancel
           
protected static double decalage
           
static java.awt.image.BufferedImage implied
           
protected static javax.swing.JPanel itemsPanel
           
protected static int nbPages
           
protected static TButton next
           
protected static TButton prev
           
static java.awt.image.BufferedImage required
           
protected static VAE_Control_Panel target
           
protected static java.lang.String typeName
           
protected static TButton valide
           
protected static javax.swing.JFrame window
           
 
Constructor Summary
VAE_ObjectInterfaceGenerator()
           
 
Method Summary
static java.util.Vector<AttributePanel> createAttributesDiplays(AttrList attributes)
          Genere la liste des champs de saisie a partir d'une liste d'attribut.
protected static AttributePanel createDisplay(Attribute at)
           
 void createObject()
          Creer l'objet et le poser sur le panneau de controle.
protected  void createWindow(AttrList attributes, Element element, VAE_Control_Panel crtl)
           
 void createWindow(VAE_Control_Panel crtl)
          Methode prevue pour etre surchargée.
 void createWindowFromElement(java.lang.String elementName, VAE_Control_Panel crtl)
          Creation d'une interface a partir d'un nom d'élément de la DTD VirChor.
static VAE_ObjectInterfaceGenerator getInstance()
          Retourne l'instance unique du générateur d'interface.
static void loadNeededFiles()
          Charge les images utilisées par la classe.
protected  void lockAttribute(AttributePanel attr)
           
static void objectPropertiesOverview(VAE_Object obj, VAE_ObjectBox box)
          Affiche une fenetre d'affichage modofication d'un objet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

required

public static java.awt.image.BufferedImage required

implied

public static java.awt.image.BufferedImage implied

itemsPanel

protected static javax.swing.JPanel itemsPanel

typeName

protected static java.lang.String typeName

attrDisp

protected static java.util.Vector<AttributePanel> attrDisp

window

protected static javax.swing.JFrame window

decalage

protected static double decalage

nbPages

protected static int nbPages

prev

protected static TButton prev

next

protected static TButton next

cancel

protected static TButton cancel

valide

protected static TButton valide

target

protected static VAE_Control_Panel target
Constructor Detail

VAE_ObjectInterfaceGenerator

public VAE_ObjectInterfaceGenerator()
Method Detail

objectPropertiesOverview

public static void objectPropertiesOverview(VAE_Object obj,
                                            VAE_ObjectBox box)
Affiche une fenetre d'affichage modofication d'un objet.

Parameters:
obj - Object a afficher.
box - Boite liée a l'objet.

createWindowFromElement

public void createWindowFromElement(java.lang.String elementName,
                                    VAE_Control_Panel crtl)
Creation d'une interface a partir d'un nom d'élément de la DTD VirChor. Le Controle est celui du patch cible pour la creation de la boite.

Parameters:
elementName - nom de l'element.
crtl - Panneau de controle

createWindow

public void createWindow(VAE_Control_Panel crtl)
Methode prevue pour etre surchargée. Ne fait rien ici.

Parameters:
crtl - Panneau de controle.

createWindow

protected void createWindow(AttrList attributes,
                            Element element,
                            VAE_Control_Panel crtl)

createDisplay

protected static AttributePanel createDisplay(Attribute at)

createAttributesDiplays

public static java.util.Vector<AttributePanel> createAttributesDiplays(AttrList attributes)
Genere la liste des champs de saisie a partir d'une liste d'attribut.

Parameters:
attributes - Liste d'attributs
Returns:
Liste de champs de saisie correspondante.

loadNeededFiles

public static void loadNeededFiles()
Charge les images utilisées par la classe.


createObject

public void createObject()
Creer l'objet et le poser sur le panneau de controle.


lockAttribute

protected void lockAttribute(AttributePanel attr)

getInstance

public static VAE_ObjectInterfaceGenerator getInstance()
Retourne l'instance unique du générateur d'interface.

Returns:
Générateur d'interface.