|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.GenericDOMEditor
Editor of nodes and such
Nested Class Summary | |
static class |
GenericDOMEditor.GenericSanityCheckListener
|
Field Summary | |
protected static java.util.Hashtable |
_invalidCharHash
|
protected static java.util.Hashtable |
_manditoryFieldHash
|
protected static int |
ATTRNAME
|
protected static int |
EQUALS
|
protected static int |
NODENAME
|
static java.lang.String |
SANITY_CHARS_PROP
|
static java.lang.String |
SANITY_MANDITORY_PROP
|
protected static int |
START
|
Fields inherited from interface org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML |
Constructor Summary | |
GenericDOMEditor()
|
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. |
protected static java.lang.String |
getInvalidChars(MerlotDOMNode node,
java.lang.String fieldname)
|
protected static java.lang.String |
getManditoryFields(MerlotDOMNode node,
java.lang.String fieldname)
|
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 |
installListener(javax.swing.JPanel p,
MerlotDOMNode node)
|
protected static void |
parseInvalidCharsProp(java.lang.String prop)
|
protected static void |
parseManditoryFieldsProp(java.lang.String prop)
|
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 |
Field Detail |
protected static java.util.Hashtable _invalidCharHash
protected static java.util.Hashtable _manditoryFieldHash
public static final java.lang.String SANITY_CHARS_PROP
public static final java.lang.String SANITY_MANDITORY_PROP
protected static final int START
protected static final int NODENAME
protected static final int ATTRNAME
protected static final int EQUALS
Constructor Detail |
public GenericDOMEditor()
Method Detail |
public javax.swing.JMenuItem[] getMenuItems(MerlotDOMNode node)
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
MerlotDOMEditor
savePanel
in interface MerlotDOMEditor
p
- the panel that was retreived with getEditPanel(node);
java.beans.PropertyVetoException
public java.lang.String[] getEditableTypes()
public boolean editsChildren()
public void grabFocus(javax.swing.JPanel p)
MerlotDOMEditor
grabFocus
in interface MerlotDOMEditor
public boolean suppressNode(MerlotDOMNode node)
suppressNode
in interface MerlotDOMEditor
public boolean suppressAddType(DTDElement el)
MerlotDOMEditor
suppressAddType
in interface MerlotDOMEditor
public boolean suppressAddType(GrammarComplexType el)
suppressAddType
in interface MerlotDOMEditor
public void installListener(javax.swing.JPanel p, MerlotDOMNode node)
protected static void parseInvalidCharsProp(java.lang.String prop)
protected static void parseManditoryFieldsProp(java.lang.String prop)
protected static java.lang.String getInvalidChars(MerlotDOMNode node, java.lang.String fieldname)
protected static java.lang.String getManditoryFields(MerlotDOMNode node, java.lang.String fieldname)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |