com.japisoft.xmlappkit
Interface XMLEditorsView

All Superinterfaces:
XMLEditorsModelListener
All Known Implementing Classes:
TabbedPaneEditorsView

public interface XMLEditorsView
extends XMLEditorsModelListener

Here the main view for showing all available editor. As a sample, such view could be a tabbed pane or desktop pane

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com
See Also:
XMLEditorsModelListener

Method Summary
 void addXMLEditorSelectionListener(XMLEditorSelectionListener listener)
          Add a listener for XML editor selection
 XMLEditor getSelectedXMLEditor()
           
 javax.swing.JComponent getView()
           
 void removeXMLEditorSelectionListener(XMLEditorSelectionListener listener)
          Remove a listener for XML editor selection
 void selectXMLEditor(int index)
          Select an XMLEditor from the XMLEditorModel order content
 void selectXMLEditor(XMLEditor editor)
          Select an XMLEditor from the XMLEditorModel content
 void setEnabled(boolean enabled)
          Enabled/Disable the global view
 void setEnabled(int index, boolean enabled)
          Enabled/Disabled an editor from the XMLEditorModel order content
 void setEnabled(XMLEditor editor, boolean enabled)
          Enabled/Disabled this editor
 
Methods inherited from interface com.japisoft.xmlappkit.XMLEditorsModelListener
modelUpdated
 

Method Detail

getView

public javax.swing.JComponent getView()
Returns:
the view for this set of editors

selectXMLEditor

public void selectXMLEditor(XMLEditor editor)
Select an XMLEditor from the XMLEditorModel content


selectXMLEditor

public void selectXMLEditor(int index)
Select an XMLEditor from the XMLEditorModel order content


getSelectedXMLEditor

public XMLEditor getSelectedXMLEditor()
Returns:
the selected XMLEditor. null is returned for no selection

setEnabled

public void setEnabled(XMLEditor editor,
                       boolean enabled)
Enabled/Disabled this editor


setEnabled

public void setEnabled(int index,
                       boolean enabled)
Enabled/Disabled an editor from the XMLEditorModel order content


setEnabled

public void setEnabled(boolean enabled)
Enabled/Disable the global view


addXMLEditorSelectionListener

public void addXMLEditorSelectionListener(XMLEditorSelectionListener listener)
Add a listener for XML editor selection


removeXMLEditorSelectionListener

public void removeXMLEditorSelectionListener(XMLEditorSelectionListener listener)
Remove a listener for XML editor selection