public class XWikiExplorer extends com.google.gwt.user.client.ui.Widget implements HasDoubleClickNodeHandlers
| Constructor and Description |
|---|
XWikiExplorer(String url)
Creates a new document tree widget.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addDoubleClickNodeHandler(DoubleClickNodeHandler handler)
Registers the given handles for double click node events.
|
String |
getSelectedAttachment()
Get the name of the attachment selected in the Tree.
|
String |
getSelectedPage()
Get the name of the page selected in the Tree.
|
String |
getSelectedSpace()
Get the name of the space selected in the Tree.
|
String |
getSelectedWiki()
Get the name of the wiki selected in the Tree.
|
boolean |
hasSelectedNode() |
void |
invalidateCache()
Reload the tree content next time it is displayed again.
|
boolean |
isNewAttachment()
Is the selected resource a new attachment.
|
boolean |
isNewPage()
Is the selected resource a new page.
|
protected void |
onLoad() |
protected void |
onUnload() |
void |
selectEntity(EntityReference entityReference,
String anchor)
Selects the tree node corresponding to the specified entity and anchor.
|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic XWikiExplorer(String url)
url - the URL of the resource that represents the treeprotected void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widgetprotected void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetpublic String getSelectedWiki()
public String getSelectedSpace()
public String getSelectedPage()
public String getSelectedAttachment()
public boolean isNewPage()
public boolean isNewAttachment()
public void selectEntity(EntityReference entityReference, String anchor)
entityReference - an entity referenceanchor - a string identifying a fragment of the specified entitypublic boolean hasSelectedNode()
true if a node is selected in the tree, false otherwisepublic com.google.gwt.event.shared.HandlerRegistration addDoubleClickNodeHandler(DoubleClickNodeHandler handler)
HasDoubleClickNodeHandlersaddDoubleClickNodeHandler in interface HasDoubleClickNodeHandlershandler - the object to be notified when a node is double clickedpublic void invalidateCache()
Copyright © 2004–2016 XWiki. All rights reserved.