|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is an interface which every Node editor panel must implement. Node editors provide a way to change information contained in a DOM node within an xml file. This includes special menu items to add to the right-click popup menu and an editing panel to change attributes and sub-nodes. DOMEditors can also specify what types of nodes should not show up in the tree view (this functionality may move into the plugin classes instead of here... it doesn't really belong here.)
GenericDOMEditor
,
GenericDOMEditPanel
Method Summary | |
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)
Deprecated. |
boolean |
suppressAddType(GrammarComplexType el)
|
boolean |
suppressNode(MerlotDOMNode node)
Returns true if the component editor wants a particular node hidden from the user. |
Method Detail |
public javax.swing.JMenuItem[] getMenuItems(MerlotDOMNode node)
node
- the node for which to get the menu itemspublic javax.swing.JPanel getEditPanel(MerlotDOMNode node)
public void savePanel(javax.swing.JPanel p) throws java.beans.PropertyVetoException
p
- the panel that was retreived with getEditPanel(node);
java.beans.PropertyVetoException
public void grabFocus(javax.swing.JPanel p)
public boolean suppressNode(MerlotDOMNode node)
public boolean suppressAddType(DTDElement el)
public boolean suppressAddType(GrammarComplexType el)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |