|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.ComponentFactory
Here a factory for default swing elements used by the XMLContainer. User can use
it by creating a sub-class of the ComponentFactory class and call the
setFactory
for overriding the default behavior, this it is possible
to replace any component used inside JXMLPad by your own.
XMLContainer
Constructor Summary | |
protected |
ComponentFactory()
|
Method Summary | |
ErrorView |
getDefaultErrorView()
|
static ComponentFactory |
getFactory()
|
ElementView |
getNewElementView(XMLContainer container)
|
javax.swing.JSplitPane |
getNewHorizontalSplitPane()
create an horizontal oriented splitpane |
javax.swing.JPanel |
getNewPanel()
create a panel for editor and tree |
javax.swing.JPopupMenu |
getNewPopupMenu()
create a default popupMenu |
javax.swing.JScrollPane |
getNewScrollPane()
create a scrollpane for editor or tree |
TitledPanelHelper |
getNewTitledPanelHelper()
|
javax.swing.JToolBar |
getNewToolBar()
create a default toolBar |
javax.swing.JTree |
getNewTree()
create a default tee |
javax.swing.JSplitPane |
getNewVerticalSplitPane()
create a vertical oriented splitpane |
XMLEditor |
getNewXMLEditor(EditorContext context)
create a default XMLEditor |
IView |
getUIContainer(XMLContainer container)
|
static void |
setFactory(ComponentFactory factory)
Override the default factory by a subclass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ComponentFactory()
Method Detail |
public static ComponentFactory getFactory()
public static void setFactory(ComponentFactory factory)
public javax.swing.JScrollPane getNewScrollPane()
public javax.swing.JPanel getNewPanel()
public javax.swing.JSplitPane getNewVerticalSplitPane()
public javax.swing.JSplitPane getNewHorizontalSplitPane()
public javax.swing.JTree getNewTree()
public javax.swing.JToolBar getNewToolBar()
public XMLEditor getNewXMLEditor(EditorContext context)
public javax.swing.JPopupMenu getNewPopupMenu()
public ElementView getNewElementView(XMLContainer container)
public TitledPanelHelper getNewTitledPanelHelper()
public IView getUIContainer(XMLContainer container)
public ErrorView getDefaultErrorView()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |