com.japisoft.xmlappkit
Interface XMLEditorsModel


public interface XMLEditorsModel

Here an ordered model for storing a set of XMLEditor. This model is binded to a view that showes all XMLEditor

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com
See Also:
com.japisoft.xmlappkit.XMLEditor, XMLAppContainer

Method Summary
 void addXMLEditor(XMLEditor editor)
          Add a new XMLEditor
 void addXMLEditor(XMLEditor editor, int index)
          Add a new XMLEditor for this index
 void fireModelUpdated()
          This is a way to force the view to be updated with the new model content.
 void moveEditor(int fromIndex, int toIndex)
          Move an editor from the fromIndex to the toIndex
 void removeXMLEditor(int index)
          Remove the XMLEditor at this index
 void removeXMLEditor(XMLEditor editor)
          Remove an XMLEditor
 void setXMLEditorModelListener(XMLEditorsModelListener listener)
          Set a listener for updating the view
 XMLEditor xmlEditorAt(int index)
           
 XMLEditor xmlEditorByName(java.lang.String name)
           
 XMLEditor xmlEditorByView(javax.swing.JComponent view)
           
 int xmlEditorCount()
           
 

Method Detail

addXMLEditor

public void addXMLEditor(XMLEditor editor)
Add a new XMLEditor


removeXMLEditor

public void removeXMLEditor(XMLEditor editor)
Remove an XMLEditor


addXMLEditor

public void addXMLEditor(XMLEditor editor,
                         int index)
Add a new XMLEditor for this index


moveEditor

public void moveEditor(int fromIndex,
                       int toIndex)
Move an editor from the fromIndex to the toIndex


removeXMLEditor

public void removeXMLEditor(int index)
Remove the XMLEditor at this index


xmlEditorCount

public int xmlEditorCount()
Returns:
the number of editor available

xmlEditorAt

public XMLEditor xmlEditorAt(int index)
Returns:
the editor for this index

xmlEditorByName

public XMLEditor xmlEditorByName(java.lang.String name)
Returns:
an XMLEditor by its name

xmlEditorByView

public XMLEditor xmlEditorByView(javax.swing.JComponent view)
Returns:
an XMLEditor by its view

setXMLEditorModelListener

public void setXMLEditorModelListener(XMLEditorsModelListener listener)
Set a listener for updating the view


fireModelUpdated

public void fireModelUpdated()
This is a way to force the view to be updated with the new model content. This method is only for internal usage, user shouldn't call it.