|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 |
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)
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);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)
public boolean suppressAddType(DTDElement el)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |