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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.merlotxml.merlot.GenericDOMEditor
      extended byorg.gendiapo.editor.GenericGenDiapoEditor
All Implemented Interfaces:
GenDiapoEditor, org.merlotxml.merlot.MerlotConstants, org.merlotxml.merlot.MerlotDOMEditor

public class GenericGenDiapoEditor
extends org.merlotxml.merlot.GenericDOMEditor
implements GenDiapoEditor


Nested Class Summary
 
Nested classes inherited from class org.merlotxml.merlot.GenericDOMEditor
org.merlotxml.merlot.GenericDOMEditor.GenericSanityCheckListener
 
Field Summary
(package private) static java.util.ArrayList EMPTY
           
 
Fields inherited from class org.merlotxml.merlot.GenericDOMEditor
_invalidCharHash, _manditoryFieldHash, ATTRNAME, EQUALS, NODENAME, SANITY_CHARS_PROP, SANITY_MANDITORY_PROP, START
 
Fields inherited from interface org.gendiapo.editor.GenDiapoEditor
EDITION_CUSTOM, EDITION_STYLE, EDITION_TREE
 
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
 
Constructor Summary
GenericGenDiapoEditor()
           
 
Method Summary
 boolean addVoid(org.merlotxml.merlot.MerlotDOMNode node)
           
 java.util.List attributesInStyledView(org.merlotxml.merlot.MerlotDOMNode node)
           
 int editionType(org.merlotxml.merlot.MerlotDOMNode node)
          editionType : indique si l'edition est en arbre ou style
 javax.swing.JPanel getEditPanel(org.merlotxml.merlot.MerlotDOMNode node)
          returns a panel for editing this type of component.
 javax.swing.JMenuItem[] getMenuItems(org.merlotxml.merlot.MerlotDOMNode node)
          Returns a set of menu items for any special actions for this particular editor that it wants in the popup menu.
 NodeControler getNodeControler(org.merlotxml.merlot.MerlotDOMNode node)
           
 javax.swing.text.html.StyleSheet getStyleSheet(org.merlotxml.merlot.MerlotDOMNode node)
          StyleSheet pour la vue stylee
 java.lang.String getUserName(org.merlotxml.util.xml.DTDElement element)
           
 java.lang.String getUserName(org.merlotxml.merlot.MerlotDOMNode node)
          Permet d'obtenir une description courte d'un noeud
 java.lang.String getUserName(org.merlotxml.merlot.MerlotDOMNode node, org.merlotxml.util.xml.DTDAttribute attribute)
           
 java.lang.String getUserName(org.merlotxml.merlot.MerlotDOMNode node, org.merlotxml.util.xml.DTDElement element)
           
 javax.swing.text.ViewFactory getViewFactory(org.merlotxml.merlot.MerlotDOMNode node)
          ViewFactory pour la vue stylee
 void grabFocus(javax.swing.JPanel p)
          Tells the edit panel it's gaining focus, so it can put the cursor in the first field.
 void installListener(javax.swing.JPanel p, org.merlotxml.merlot.MerlotDOMNode node)
           
 void savePanel(javax.swing.JPanel p)
          called by the editor when the user has chosen to save their changes in a panel.
 boolean suppressAddType(org.merlotxml.util.xml.DTDElement el)
          allows the plugin to hide certain items on the add-> menu.
 boolean suppressAddType(org.merlotxml.merlot.MerlotDOMNode node, org.merlotxml.util.xml.DTDElement el)
          Utiliser par GenDoc
 boolean suppressNode(org.merlotxml.merlot.MerlotDOMNode node)
          Returns true if the component editor wants a particular node hidden from the user.
 boolean suppressTag(org.merlotxml.merlot.MerlotDOMNode node, java.lang.String name)
          A implementer pour faire le plugin
 boolean suppressTag(java.lang.String name)
          Supprime le tag de l'arbre et la possibilite de l'ajouter
 
Methods inherited from class org.merlotxml.merlot.GenericDOMEditor
editsChildren, getEditableTypes, getInvalidChars, getManditoryFields, parseInvalidCharsProp, parseManditoryFieldsProp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

static final java.util.ArrayList EMPTY
Constructor Detail

GenericGenDiapoEditor

public GenericGenDiapoEditor()
Method Detail

getMenuItems

public javax.swing.JMenuItem[] getMenuItems(org.merlotxml.merlot.MerlotDOMNode node)
Returns a set of menu items for any special actions for this particular editor that it wants in the popup menu. Standard stuff like cut, copy, paste is taken care of by other objects. If nothing needs added, can return null.

Specified by:
getMenuItems in interface org.merlotxml.merlot.MerlotDOMEditor

getEditPanel

public javax.swing.JPanel getEditPanel(org.merlotxml.merlot.MerlotDOMNode node)
returns a panel for editing this type of component.

Specified by:
getEditPanel in interface org.merlotxml.merlot.MerlotDOMEditor

savePanel

public void savePanel(javax.swing.JPanel p)
               throws java.beans.PropertyVetoException
called by the editor when the user has chosen to save their changes in a panel.

Specified by:
savePanel in interface org.merlotxml.merlot.MerlotDOMEditor

grabFocus

public void grabFocus(javax.swing.JPanel p)
Tells the edit panel it's gaining focus, so it can put the cursor in the first field. XXX this should probably be handled by event listening instead

Specified by:
grabFocus in interface org.merlotxml.merlot.MerlotDOMEditor

suppressTag

public boolean suppressTag(java.lang.String name)
Description copied from interface: GenDiapoEditor
Supprime le tag de l'arbre et la possibilite de l'ajouter

Specified by:
suppressTag in interface GenDiapoEditor

suppressTag

public boolean suppressTag(org.merlotxml.merlot.MerlotDOMNode node,
                           java.lang.String name)
Description copied from interface: GenDiapoEditor
A implementer pour faire le plugin

Specified by:
suppressTag in interface GenDiapoEditor

suppressNode

public boolean suppressNode(org.merlotxml.merlot.MerlotDOMNode node)
Returns true if the component editor wants a particular node hidden from the user. If the editor wants to filter what the user sees in their display, it should look at the given node, otherwise it should return false. This is usefull particularly if the editor handles its children. It can hide the children nodes from the user's view.

Specified by:
suppressNode in interface org.merlotxml.merlot.MerlotDOMEditor

suppressAddType

public boolean suppressAddType(org.merlotxml.util.xml.DTDElement el)
allows the plugin to hide certain items on the add-> menu. For example, the plugin for the accessibility permissions might not want the user to be able to directly add an "access" element, so it can request that that be suppressed.

Specified by:
suppressAddType in interface org.merlotxml.merlot.MerlotDOMEditor

suppressAddType

public boolean suppressAddType(org.merlotxml.merlot.MerlotDOMNode node,
                               org.merlotxml.util.xml.DTDElement el)
Description copied from interface: GenDiapoEditor
Utiliser par GenDoc

Specified by:
suppressAddType in interface GenDiapoEditor

installListener

public void installListener(javax.swing.JPanel p,
                            org.merlotxml.merlot.MerlotDOMNode node)

editionType

public int editionType(org.merlotxml.merlot.MerlotDOMNode node)
Description copied from interface: GenDiapoEditor
editionType : indique si l'edition est en arbre ou style

Specified by:
editionType in interface GenDiapoEditor

getNodeControler

public NodeControler getNodeControler(org.merlotxml.merlot.MerlotDOMNode node)
Specified by:
getNodeControler in interface GenDiapoEditor

getViewFactory

public javax.swing.text.ViewFactory getViewFactory(org.merlotxml.merlot.MerlotDOMNode node)
Description copied from interface: GenDiapoEditor
ViewFactory pour la vue stylee

Specified by:
getViewFactory in interface GenDiapoEditor

attributesInStyledView

public java.util.List attributesInStyledView(org.merlotxml.merlot.MerlotDOMNode node)
Specified by:
attributesInStyledView in interface GenDiapoEditor

addVoid

public boolean addVoid(org.merlotxml.merlot.MerlotDOMNode node)
Specified by:
addVoid in interface GenDiapoEditor

getStyleSheet

public javax.swing.text.html.StyleSheet getStyleSheet(org.merlotxml.merlot.MerlotDOMNode node)
Description copied from interface: GenDiapoEditor
StyleSheet pour la vue stylee

Specified by:
getStyleSheet in interface GenDiapoEditor

getUserName

public java.lang.String getUserName(org.merlotxml.util.xml.DTDElement element)
Specified by:
getUserName in interface GenDiapoEditor

getUserName

public java.lang.String getUserName(org.merlotxml.merlot.MerlotDOMNode node,
                                    org.merlotxml.util.xml.DTDElement element)
Specified by:
getUserName in interface GenDiapoEditor

getUserName

public java.lang.String getUserName(org.merlotxml.merlot.MerlotDOMNode node)
Description copied from interface: GenDiapoEditor
Permet d'obtenir une description courte d'un noeud

Specified by:
getUserName in interface GenDiapoEditor

getUserName

public java.lang.String getUserName(org.merlotxml.merlot.MerlotDOMNode node,
                                    org.merlotxml.util.xml.DTDAttribute attribute)
Specified by:
getUserName in interface GenDiapoEditor