ikbs.graphics.model
Class PAttributProperty

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by ikbs.tools.utils.IkbsPanel
                  extended by ikbs.graphics.model.PElementProperty
                      extended by ikbs.graphics.model.PAttributProperty
All Implemented Interfaces:
GetFrame, InfoListener, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, java.util.Observer, javax.accessibility.Accessible

public class PAttributProperty
extends PElementProperty

IKBS- Panel d'édition des attributs

Version:
2.7
Author:
David Grosser
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static boolean affIdent
           
protected  AttributDesc attribut
           
protected  DescriptiveAttribute attTempo
           
protected static java.awt.Color BACKGROUND_COLOR
           
protected  java.awt.CheckboxGroup cbg
           
protected  ModelEditor editeur
           
protected  InfoListener il
           
protected static int longText
           
protected  TextFieldChoix nom
           
protected  TextFieldChoix nomComplet
           
protected static int NUMERIC
           
protected static java.awt.Color NUMERIC_COLOR
           
protected  CheckboxChoix numerique
           
protected  TextFieldChoix pere
           
protected  AttributePanel pValeurs
           
protected  TextFieldChoix quest
           
protected static int SYMBOLIC
           
protected static java.awt.Color SYMBOLIC_COLOR
           
protected  CheckboxChoix symbolique
           
protected static int TAXONOMIC
           
protected static java.awt.Color TAXONOMIC_COLOR
           
protected  CheckboxChoix taxonomique
           
protected static int TEXT
           
protected static java.awt.Color TEXT_COLOR
           
protected  CheckboxChoix texte
           
protected  java.awt.Panel type
           
protected static int TYPE_CHANGED
           
protected static int VISUALISER
           
 
Fields inherited from class ikbs.graphics.model.PElementProperty
decision, DECISION, edition, elementGraph, poids, pPoids, tComm, urlString
 
Fields inherited from class ikbs.tools.utils.IkbsPanel
c
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PAttributProperty(AttributDesc attributDesc, ModelEditor editeur, boolean editable)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Actions
 java.awt.Dimension adaptedSize()
           
protected  java.awt.Color changeColorType()
          Choix de la couleur en fonction du type d'attribut
protected  void changeType()
          Changement du type d'attribut
 void dispose()
          Pour libérer les ressources et les liens
 java.lang.String getCommentaire()
          Accès au commentaire
 void init()
          Initialisation du panel des propriétés des attributs
 void itemStateChanged(java.awt.event.ItemEvent e)
          Lorsqu'un un checkbox est activé
 void setCommentaire(java.lang.String s)
          affectation du commentaire
 void update(java.util.Observable o, java.lang.Object args)
          Lorsque les connaissances ont évoluées
 void valider()
          Pour valider les modifications sur le panel des propriétés
 
Methods inherited from class ikbs.graphics.model.PElementProperty
getEdition, removeInfo, setEdition, setInfo, setInfoListener, showDocument
 
Methods inherited from class ikbs.tools.utils.IkbsPanel
getFrame, initGridBagConstraint, xyPosition, xyPosition
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

affIdent

public static boolean affIdent

BACKGROUND_COLOR

protected static java.awt.Color BACKGROUND_COLOR

NUMERIC_COLOR

protected static java.awt.Color NUMERIC_COLOR

SYMBOLIC_COLOR

protected static java.awt.Color SYMBOLIC_COLOR

TEXT_COLOR

protected static java.awt.Color TEXT_COLOR

TAXONOMIC_COLOR

protected static java.awt.Color TAXONOMIC_COLOR

NUMERIC

protected static final int NUMERIC
See Also:
Constant Field Values

SYMBOLIC

protected static final int SYMBOLIC
See Also:
Constant Field Values

TEXT

protected static final int TEXT
See Also:
Constant Field Values

TAXONOMIC

protected static final int TAXONOMIC
See Also:
Constant Field Values

VISUALISER

protected static final int VISUALISER
See Also:
Constant Field Values

TYPE_CHANGED

protected static final int TYPE_CHANGED
See Also:
Constant Field Values

longText

protected static int longText

attribut

protected AttributDesc attribut

attTempo

protected DescriptiveAttribute attTempo

editeur

protected ModelEditor editeur

il

protected InfoListener il

cbg

protected java.awt.CheckboxGroup cbg

symbolique

protected CheckboxChoix symbolique

numerique

protected CheckboxChoix numerique

taxonomique

protected CheckboxChoix taxonomique

texte

protected CheckboxChoix texte

nom

protected TextFieldChoix nom

pere

protected TextFieldChoix pere

quest

protected TextFieldChoix quest

nomComplet

protected TextFieldChoix nomComplet

type

protected java.awt.Panel type

pValeurs

protected AttributePanel pValeurs
Constructor Detail

PAttributProperty

public PAttributProperty(AttributDesc attributDesc,
                         ModelEditor editeur,
                         boolean editable)
Method Detail

getCommentaire

public java.lang.String getCommentaire()
Accès au commentaire


setCommentaire

public void setCommentaire(java.lang.String s)
affectation du commentaire


init

public void init()
Initialisation du panel des propriétés des attributs

Overrides:
init in class PElementProperty

changeColorType

protected java.awt.Color changeColorType()
Choix de la couleur en fonction du type d'attribut


valider

public void valider()
Description copied from class: PElementProperty
Pour valider les modifications sur le panel des propriétés

Specified by:
valider in class PElementProperty

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Actions


itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Lorsqu'un un checkbox est activé


changeType

protected void changeType()
Changement du type d'attribut


dispose

public void dispose()
Pour libérer les ressources et les liens

Specified by:
dispose in class PElementProperty

adaptedSize

public java.awt.Dimension adaptedSize()
Overrides:
adaptedSize in class IkbsPanel

update

public void update(java.util.Observable o,
                   java.lang.Object args)
Lorsque les connaissances ont évoluées