|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.editors.SchemaDOMEditor
A new editor and an alternative to GenericDOMEditPanel for use with schemas. The reason for the change is that GenericDOMEditPanel's code was starting to get difficult to read.
Constructor Summary | |
SchemaDOMEditor()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaDOMEditor()
Method Detail |
public javax.swing.JPanel getEditPanel(MerlotDOMNode node)
getEditPanel
in interface MerlotDOMEditor
node
- Description of Parameter
public javax.swing.JMenuItem[] getMenuItems(MerlotDOMNode node)
getMenuItems
in interface MerlotDOMEditor
node
- the node for which to get the menu items
public void grabFocus(javax.swing.JPanel p)
grabFocus
in interface MerlotDOMEditor
p
- Description of Parameterpublic 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
- Description of Exceptionpublic boolean suppressAddType(DTDElement el)
suppressAddType
in interface MerlotDOMEditor
el
- Description of Parameter
public boolean suppressAddType(GrammarComplexType el)
suppressAddType
in interface MerlotDOMEditor
public boolean suppressNode(MerlotDOMNode node)
suppressNode
in interface MerlotDOMEditor
node
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |