|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.japisoft.xmlappkit.XMLAppContainer
Here the main component for managing XML with one or several
XML Editors. Call getXMLContext for loading/saving an
XML document. For adding a new editor, use the XMLEditorsModel
calling the getXMLEditorsModel. Ex :
JFrame fr = new JFrame(); XMLAppContainer container = XMLAppContainer.getInstance(); // Add the view of the XMLAppContainer fr.getContentPane().add( container.getView() ); // Add this new editor container.getXMLEditorsModel().addXMLEditor( new Group1Editor() );;
XMLEditor| Method Summary | |
XMLEditor |
getInitialXMLEditor()
|
static XMLAppContainer |
getInstance()
|
javax.swing.JComponent |
getView()
|
com.japisoft.xmlpad.XMLContainer |
getXMLContainerForSource()
|
XMLContext |
getXMLContext()
|
XMLEditorsModel |
getXMLEditorsModel()
|
XMLEditorsView |
getXMLEditorsView()
|
SourceXMLEditor |
getXMLSourceEditor()
|
boolean |
isAutoFormat()
|
static void |
main(java.lang.String[] args)
|
void |
setAutoFormat(boolean autoFormat)
This property will format automatically the source after each editor changes By default true |
void |
setInitialXMLEditor(XMLEditor editor)
Select this editor as the default active editor |
void |
setXMLEditorsModel(XMLEditorsModel model)
Reset the model containing all available XML Editors |
void |
setXMLEditorsView(XMLEditorsView view)
Update the view containing all XML Editors. |
void |
synchronizeCurrentXMLEditor()
Synchronized the source with the current XML editor changes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static XMLAppContainer getInstance()
public javax.swing.JComponent getView()
public XMLEditorsModel getXMLEditorsModel()
nullpublic void setXMLEditorsModel(XMLEditorsModel model)
public XMLContext getXMLContext()
public void setAutoFormat(boolean autoFormat)
true
public boolean isAutoFormat()
true if the source is formatted after each editing changespublic void setInitialXMLEditor(XMLEditor editor)
public XMLEditor getInitialXMLEditor()
public void setXMLEditorsView(XMLEditorsView view)
getDefaultXMLEditorsView that gives the default view
public XMLEditorsView getXMLEditorsView()
setXMLEditorsView has not
been called before, it will return the default one calling the getDefaultXMLEditorsViewpublic SourceXMLEditor getXMLSourceEditor()
public com.japisoft.xmlpad.XMLContainer getXMLContainerForSource()
public void synchronizeCurrentXMLEditor()
public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||