|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Facilities for accessing inner components of the XMLContainer
XMLContainer
Method Summary | |
void |
dispose()
This is only for inner usage, it mustn't be called by the user |
javax.swing.JPopupMenu |
getCurrentTreePopup()
|
XMLEditor |
getEditor()
|
ElementView |
getElementView()
|
ErrorView |
getErrorView()
|
javax.swing.JSplitPane |
getSecondarySplitPane()
|
javax.swing.JSplitPane |
getSplitPane()
|
javax.swing.JToolBar |
getToolBar()
|
javax.swing.JTree |
getTree()
|
javax.swing.JToolBar |
getTreeToolBar()
|
boolean |
isPopupAvailable()
|
boolean |
isToolBarAvailable()
|
boolean |
isToolBarVisible()
|
boolean |
isTreeAvailable()
|
boolean |
isTreePopupAvailable()
|
boolean |
isTreeToolBarAvailable()
|
boolean |
isTreeVisible()
|
void |
setElementView(ElementView view)
Set a view fo visualizing an XML element under the tree. if view is null no view will be available |
void |
setErrorView(ErrorView view)
Define a new error view panel. |
void |
setInitialElementViewDividerLocation(double location)
Reset the initial divider location between the tree and the element view. |
void |
setInitialTreeTextDividerLocation(double location)
Reset the initial divider location between tree and text. |
void |
setPopupAvailable(boolean popupAvailable)
Create a default popup. |
void |
setToolBarAvailable(boolean toolBarAvailable)
Create a default toolbar. |
void |
setToolBarVisible(boolean toolbarVisible)
Show or hide the default toolbar. |
void |
setTreeAvailable(boolean treeAvailable)
Decide to have a left tree with the XML document content or not. |
void |
setTreeDelegate(javax.swing.JTree treeDelegate)
This is a way to share a tree which is outside the XMLContainer. |
void |
setTreePopupAvailable(boolean treePopupAvailable)
Reset the tree popup. |
void |
setTreeToolBarAvailable(boolean treeToolBarAvailable)
Decide to have a toolbar at the top of the tree or not. |
void |
setTreeVisible(boolean treeVisible)
Show or hide the location tree. |
Method Detail |
public XMLEditor getEditor()
XMLContainer
this is not always the same instancepublic void setTreeVisible(boolean treeVisible)
XMLPadProperties.setProperty("tree", "false" )
treeVisible
- Show or hide the current location treepublic boolean isTreeVisible()
true
if there's a current location tree and the splitpane bar is not closedpublic void setTreeAvailable(boolean treeAvailable)
true
public boolean isTreeAvailable()
true
if the tree is availablepublic void setTreeToolBarAvailable(boolean treeToolBarAvailable)
false
public boolean isTreeToolBarAvailable()
true
if the tree is availablepublic javax.swing.JTree getTree()
public void setTreeDelegate(javax.swing.JTree treeDelegate)
setTreeAvailable( false )
method is called
public javax.swing.JPopupMenu getCurrentTreePopup()
public javax.swing.JToolBar getToolBar()
public javax.swing.JToolBar getTreeToolBar()
null
public void setToolBarVisible(boolean toolbarVisible)
XMLContainer
. If you wish no toolbar, you must
call setToolBarAvailable( false )
public boolean isToolBarVisible()
public void setToolBarAvailable(boolean toolBarAvailable)
true
. If user has
an external toolbar, this property must be set to false
. It is
possible to control the visibility by calling setToolBarVisible( ... )
public boolean isToolBarAvailable()
true
if a default toolbar is availablepublic void setPopupAvailable(boolean popupAvailable)
true
public boolean isPopupAvailable()
true
if a default popup is availablepublic void setTreePopupAvailable(boolean treePopupAvailable)
true
. This code has no effect if no tree
is used.
public boolean isTreePopupAvailable()
true
if a tree exists and if the tree popup is availablepublic javax.swing.JSplitPane getSplitPane()
null
depending on the moment you call itpublic javax.swing.JSplitPane getSecondarySplitPane()
null
depending on the moment you call itpublic void setInitialTreeTextDividerLocation(double location)
location
- Location between 0 and 1 / 0.5 means at the middlepublic void setInitialElementViewDividerLocation(double location)
location
- Location between 0 and 1 / 0.5 means at the middlepublic void setErrorView(ErrorView view)
public ErrorView getErrorView()
public void setElementView(ElementView view)
null
no view will be available
public ElementView getElementView()
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |