com.japisoft.xmlpad.elementview
Interface ElementView

All Known Implementing Classes:
TableElementView

public interface ElementView

Interface for showing / editing an XML element

Version:
1.0
Author:
(c) 2003 JAPISoft / Alexandre Brillant

Method Summary
 boolean autoScroll()
           
 void dispose()
          Dispose inner resource like the context
 javax.swing.JComponent getView()
           
 void init(ElementViewContext context)
          Initialize this view with a context for interacting with the XMLContainer
 void setEditable(boolean editable)
          Make this element view editable
 void updateView(com.japisoft.fastparser.node.SimpleNode node)
          Update the view content with this node
 

Method Detail

init

public void init(ElementViewContext context)
Initialize this view with a context for interacting with the XMLContainer


getView

public javax.swing.JComponent getView()
Returns:
the main view for this element

updateView

public void updateView(com.japisoft.fastparser.node.SimpleNode node)
Update the view content with this node


autoScroll

public boolean autoScroll()
Returns:
true is this view doesn't need to be inside a JScrollPane and false else

dispose

public void dispose()
Dispose inner resource like the context


setEditable

public void setEditable(boolean editable)
Make this element view editable