org.merlotxml.merlot
Class TextInputEditor

java.lang.Object
  |
  +--org.merlotxml.merlot.ChildTableEditor
        |
        +--org.merlotxml.merlot.TextInputEditor

public class TextInputEditor
extends ChildTableEditor

Sample plugin that does something besides the generic editor. this is mainly stuff for a demo version. nothing spectacular here.


Inner classes inherited from class org.merlotxml.merlot.ChildTableEditor
ChildTableEditor.ChildTableEditPanel, ChildTableEditor.ChildTableModel, ChildTableEditor.GenericChildTableEditPanel
 
Constructor Summary
TextInputEditor()
           
 
Method Summary
 boolean editsChildren()
          returns true if this editor also edits it's children.
 java.lang.String[] getEditableTypes()
           
 javax.swing.JMenuItem[] getMenuItems(MerlotDOMNode nd)
          Returns a set of menu items for any special actions for this particular editor that it wants in the popup menu.
protected  void init()
           
 boolean suppressAddType(DTDElement el)
          Suppress ability to add textbox nodes
 boolean suppressNode(MerlotDOMNode node)
          suppress display of textbox nodes
 
Methods inherited from class org.merlotxml.merlot.ChildTableEditor
addEditChildType, getEditPanel, grabFocus, savePanel, setColumns, setColumnTypes, setColumnWidths, setMinChildren, setPreferredTableHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextInputEditor

public TextInputEditor()
Method Detail

init

protected void init()

getMenuItems

public javax.swing.JMenuItem[] getMenuItems(MerlotDOMNode nd)
Returns a set of menu items for any special actions for this particular editor that it wants in the popup menu. Standard stuff like cut, copy, paste is taken care of by other objects. If nothing needs added
Tags copied from interface: MerlotDOMEditor
Parameters:
node - the node for which to get the menu items

getEditableTypes

public java.lang.String[] getEditableTypes()

editsChildren

public boolean editsChildren()
returns true if this editor also edits it's children.

suppressNode

public boolean suppressNode(MerlotDOMNode node)
suppress display of textbox nodes

suppressAddType

public boolean suppressAddType(DTDElement el)
Suppress ability to add textbox nodes