java.lang.Object
org.merlotxml.merlot.plugins.configeditor.ConfigEditor
- All Implemented Interfaces:
- org.merlotxml.merlot.MerlotDOMEditor
- public class ConfigEditor
- extends java.lang.Object
- implements org.merlotxml.merlot.MerlotDOMEditor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
private static boolean DEBUG
TEDebug
ConfigEditorDebug TEDebug
ConfigEditor
public ConfigEditor()
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
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 tobe able to directly add an "access" element, so
it can request that that be suppressed.
- Specified by:
suppressAddType in interface org.merlotxml.merlot.MerlotDOMEditor