|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.NullEditor
This is a null editor that suppresses certain types of elements from being edited graphically.
Constructor Summary | |
NullEditor()
|
Method Summary | |
boolean |
editsChildren()
returns true if this editor also edits it's children. |
java.lang.String[] |
getEditableTypes()
Returns the element types that this editor handles |
javax.swing.JPanel |
getEditPanel(MerlotDOMNode node)
returns a panel for editing this type of component. |
javax.swing.JMenuItem[] |
getMenuItems(MerlotDOMNode node)
Returns a set of menu items for any special actions for this particular editor that it wants in the popup menu. |
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 |
savePanel(javax.swing.JPanel p)
called by the editor when the user has chosen to save their changes in a panel. |
boolean |
suppressAddType(DTDElement el)
allows the plugin to hide certain items on the add-> menu. |
boolean |
suppressAddType(GrammarComplexType el)
|
boolean |
suppressNode(MerlotDOMNode node)
Returns true if the component editor wants a particular node hidden from the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullEditor()
Method Detail |
public void grabFocus(javax.swing.JPanel p)
MerlotDOMEditor
grabFocus
in interface MerlotDOMEditor
public javax.swing.JMenuItem[] getMenuItems(MerlotDOMNode node)
MerlotDOMEditor
getMenuItems
in interface MerlotDOMEditor
node
- the node for which to get the menu itemspublic javax.swing.JPanel getEditPanel(MerlotDOMNode node)
getEditPanel
in interface MerlotDOMEditor
public void savePanel(javax.swing.JPanel p) throws java.beans.PropertyVetoException
savePanel
in interface MerlotDOMEditor
p
- the panel that was retreived with getEditPanel(node);
java.beans.PropertyVetoException
public java.lang.String[] getEditableTypes()
public boolean editsChildren()
If this returns true, then the editsChild(childnode) is called for each child to see if this editor wants to edit that particular child XXX currently not used on the editor level
public boolean suppressNode(MerlotDOMNode node)
suppressNode
in interface MerlotDOMEditor
public boolean suppressAddType(DTDElement el)
suppressAddType
in interface MerlotDOMEditor
public boolean suppressAddType(GrammarComplexType el)
suppressAddType
in interface MerlotDOMEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |