Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gendiapo.editor
Class GenericGenDiapoEditPanel  view GenericGenDiapoEditPanel download GenericGenDiapoEditPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.merlotxml.merlot.GenericDOMEditPanel
                      extended byorg.gendiapo.editor.GenericGenDiapoEditPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.Comparator, GenDiapoEditPanel, java.awt.image.ImageObserver, java.awt.MenuContainer, org.merlotxml.merlot.MerlotConstants, org.merlotxml.merlot.MerlotNodeListener, java.io.Serializable

public class GenericGenDiapoEditPanel
extends org.merlotxml.merlot.GenericDOMEditPanel
implements GenDiapoEditPanel, org.merlotxml.merlot.MerlotNodeListener, java.util.Comparator


Nested Class Summary
(package private)  class GenericGenDiapoEditPanel.CheckBoxListener
           
protected  class GenericGenDiapoEditPanel.StandardAttributeChecker
          Checks attributes according to their type.
protected  class GenericGenDiapoEditPanel.TokenValue
           
 
Nested classes inherited from class org.merlotxml.merlot.GenericDOMEditPanel
org.merlotxml.merlot.GenericDOMEditPanel.IDObject, org.merlotxml.merlot.GenericDOMEditPanel.IDREFComboBoxRenderer, org.merlotxml.merlot.GenericDOMEditPanel.ScrollablePanel
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.JTabbedPane _attributs
           
protected  java.util.Vector _disabledPanel
           
protected  java.util.Hashtable _first
           
protected  boolean _hasBeenDeleted
           
protected  java.util.Hashtable _last
           
protected  java.util.Hashtable _onglet
           
private static java.lang.String ID_DEF
           
private static java.lang.String ONG_NAME
           
 
Fields inherited from class org.merlotxml.merlot.GenericDOMEditPanel
_attrComponents, _attributePanel, _dtd_attributes, _first_component, _first_field, _node, _node_attributes, _prev, _readonlyAttrs, _requiredAttrIcon, _subtext, _target, _text, _vetoListeners, ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.merlotxml.merlot.MerlotConstants
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GenericGenDiapoEditPanel(org.merlotxml.merlot.MerlotDOMNode node)
          Constructeur
 
Method Summary
protected  void addAttribute(org.merlotxml.util.xml.DTDAttribute a)
           
protected  void addAttributeComponent(javax.swing.JLabel l, javax.swing.JComponent c, int align)
           
protected  void addAttributeComponent(javax.swing.JLabel l, javax.swing.JComponent c, int align, java.lang.String ref)
           
protected  void addAttributeComponentTab(javax.swing.JLabel l, javax.swing.JComponent c, int align, java.lang.String ref)
           
protected  void buildPanel()
           
 int compare(java.lang.Object obj, java.lang.Object obj1)
          Return an integer that is negative, zero or positive depending on whether the first argument is less than, equal to or greater than the second according to this ordering.
protected  int compareAttribute(org.merlotxml.util.xml.DTDAttribute a, org.merlotxml.util.xml.DTDAttribute b)
           
 javax.swing.JScrollPane createTab(java.lang.String id)
           
protected  void disabledPanel()
           
 boolean equals(java.lang.Object obj)
          Return true if the object is equal to this object.
protected  CategoryObject getCategObject(java.lang.String id, CategoryObject[] tab)
           
protected  CategoryObject[] getCategories(org.merlotxml.merlot.MerlotDOMDocument doc, org.merlotxml.merlot.MerlotDOMNode targetNode, java.lang.String targetAttrName)
          Recherche categories
protected  javax.swing.JComponent getEditComponent(org.merlotxml.util.xml.DTDAttribute attr)
          Create a component based on the attribute type, and get the default from the node, or if the node doesn't have it set, get the default value from the attribute definition itself
protected  javax.swing.JComponent getIdRefsComponent(org.merlotxml.merlot.MerlotDOMNode targetNode, java.lang.String targetAttrName)
           
 javax.swing.JTabbedPane getOngletAttributs()
           
 java.lang.String getTab(org.merlotxml.util.xml.DTDAttribute a)
           
protected  java.lang.String getUserName(org.merlotxml.util.xml.DTDAttribute attr, java.lang.Object o)
           
 javax.swing.JTabbedPane initOnglet()
           
protected  void initPanelLayout()
           
protected  void initTable()
           
 void nodeChanged(org.merlotxml.merlot.MerlotDOMNode parent, int[] indices, org.merlotxml.merlot.MerlotDOMNode[] children)
           
 void nodeDeleted(org.merlotxml.merlot.MerlotDOMNode node)
           
 void nodeInserted(org.merlotxml.merlot.MerlotDOMNode parent, int[] indices, org.merlotxml.merlot.MerlotDOMNode[] children)
          notifies the listener that one or more nodes were inserted under the given parent.
 void nodeRemoved(org.merlotxml.merlot.MerlotDOMNode parent, int[] indices, org.merlotxml.merlot.MerlotDOMNode[] children)
          notifies the listener that one or more nodes under the given parent were deleted.
protected  void save(java.util.HashMap attributes)
          Surcharge methode pour cas des categories
protected  void setupPanel()
           
protected  boolean suppressAttribute(org.merlotxml.util.xml.DTDAttribute a)
          Surcharge methode Vrai si attribut ne doit pas être affiché dans les onglets
 
Methods inherited from class org.merlotxml.merlot.GenericDOMEditPanel
addVetoableChangeListener, checkNmtokenChars, fireVetoableChange, getDisplayTextForAttribute, getIdComponent, getIdForNode, getIdManager, getIdRefComponent, getIndexInVector, getRequiredAttrIcon, grabFocus, IdAttributesAreCompatible, init, removeVetoableChangeListener, save, setupHideTable, setupReadonlyTable
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_DEF

private static final java.lang.String ID_DEF
See Also:
Constant Field Values

ONG_NAME

private static final java.lang.String ONG_NAME
See Also:
Constant Field Values

_onglet

protected java.util.Hashtable _onglet

_last

protected java.util.Hashtable _last

_first

protected java.util.Hashtable _first

_attributs

protected javax.swing.JTabbedPane _attributs

_disabledPanel

protected java.util.Vector _disabledPanel

_hasBeenDeleted

protected boolean _hasBeenDeleted
Constructor Detail

GenericGenDiapoEditPanel

public GenericGenDiapoEditPanel(org.merlotxml.merlot.MerlotDOMNode node)
Constructeur

Method Detail

buildPanel

protected void buildPanel()

nodeInserted

public void nodeInserted(org.merlotxml.merlot.MerlotDOMNode parent,
                         int[] indices,
                         org.merlotxml.merlot.MerlotDOMNode[] children)
Description copied from interface: org.merlotxml.merlot.MerlotNodeListener
notifies the listener that one or more nodes were inserted under the given parent.

Specified by:
nodeInserted in interface org.merlotxml.merlot.MerlotNodeListener

nodeRemoved

public void nodeRemoved(org.merlotxml.merlot.MerlotDOMNode parent,
                        int[] indices,
                        org.merlotxml.merlot.MerlotDOMNode[] children)
Description copied from interface: org.merlotxml.merlot.MerlotNodeListener
notifies the listener that one or more nodes under the given parent were deleted. Their previous indices are given.

Specified by:
nodeRemoved in interface org.merlotxml.merlot.MerlotNodeListener

nodeDeleted

public void nodeDeleted(org.merlotxml.merlot.MerlotDOMNode node)
Specified by:
nodeDeleted in interface org.merlotxml.merlot.MerlotNodeListener

nodeChanged

public void nodeChanged(org.merlotxml.merlot.MerlotDOMNode parent,
                        int[] indices,
                        org.merlotxml.merlot.MerlotDOMNode[] children)
Specified by:
nodeChanged in interface org.merlotxml.merlot.MerlotNodeListener

getOngletAttributs

public javax.swing.JTabbedPane getOngletAttributs()
Specified by:
getOngletAttributs in interface GenDiapoEditPanel

createTab

public javax.swing.JScrollPane createTab(java.lang.String id)
Specified by:
createTab in interface GenDiapoEditPanel

initTable

protected void initTable()

initOnglet

public javax.swing.JTabbedPane initOnglet()
Specified by:
initOnglet in interface GenDiapoEditPanel

initPanelLayout

protected void initPanelLayout()

setupPanel

protected void setupPanel()

compareAttribute

protected int compareAttribute(org.merlotxml.util.xml.DTDAttribute a,
                               org.merlotxml.util.xml.DTDAttribute b)

compare

public int compare(java.lang.Object obj,
                   java.lang.Object obj1)
Description copied from interface: java.util.Comparator
Return an integer that is negative, zero or positive depending on whether the first argument is less than, equal to or greater than the second according to this ordering. This method should obey the following contract:
  • if compare(a, b) < 0 then compare(b, a) > 0
  • if compare(a, b) throws an exception, so does compare(b, a)
  • if compare(a, b) < 0 and compare(b, c) < 0 then compare(a, c) < 0
  • if compare(a, b) == 0 then compare(a, c) and compare(b, c) must have the same sign
To be consistent with equals, the following additional constraint is in place:
  • if a.equals(b) or both a and b are null, then compare(a, b) == 0.

Although it is permissible for a comparator to provide an order inconsistent with equals, that should be documented.

Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Description copied from interface: java.util.Comparator
Return true if the object is equal to this object. To be considered equal, the argument object must satisfy the constraints of Object.equals(), be a Comparator, and impose the same ordering as this Comparator. The default implementation inherited from Object is usually adequate.

Specified by:
equals in interface java.util.Comparator

disabledPanel

protected void disabledPanel()

getTab

public java.lang.String getTab(org.merlotxml.util.xml.DTDAttribute a)
Specified by:
getTab in interface GenDiapoEditPanel

addAttribute

protected void addAttribute(org.merlotxml.util.xml.DTDAttribute a)

addAttributeComponent

protected void addAttributeComponent(javax.swing.JLabel l,
                                     javax.swing.JComponent c,
                                     int align)

addAttributeComponent

protected void addAttributeComponent(javax.swing.JLabel l,
                                     javax.swing.JComponent c,
                                     int align,
                                     java.lang.String ref)

addAttributeComponentTab

protected void addAttributeComponentTab(javax.swing.JLabel l,
                                        javax.swing.JComponent c,
                                        int align,
                                        java.lang.String ref)

suppressAttribute

protected boolean suppressAttribute(org.merlotxml.util.xml.DTDAttribute a)
Surcharge methode Vrai si attribut ne doit pas être affiché dans les onglets


getEditComponent

protected javax.swing.JComponent getEditComponent(org.merlotxml.util.xml.DTDAttribute attr)
Create a component based on the attribute type, and get the default from the node, or if the node doesn't have it set, get the default value from the attribute definition itself


getIdRefsComponent

protected javax.swing.JComponent getIdRefsComponent(org.merlotxml.merlot.MerlotDOMNode targetNode,
                                                    java.lang.String targetAttrName)

getCategories

protected CategoryObject[] getCategories(org.merlotxml.merlot.MerlotDOMDocument doc,
                                         org.merlotxml.merlot.MerlotDOMNode targetNode,
                                         java.lang.String targetAttrName)
Recherche categories


getCategObject

protected CategoryObject getCategObject(java.lang.String id,
                                        CategoryObject[] tab)

save

protected void save(java.util.HashMap attributes)
             throws java.beans.PropertyVetoException
Surcharge methode pour cas des categories


getUserName

protected java.lang.String getUserName(org.merlotxml.util.xml.DTDAttribute attr,
                                       java.lang.Object o)