|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.DecoratedPopupPanel
com.google.gwt.user.client.ui.DialogBox
org.cafesip.gwtcomp.client.ui.ServerFileBrowser
public class ServerFileBrowser
Lets GWT applications browse and selects files that are present in the web server hosting the GWT application. For system administration purposes, very often, users have to specify a file or a directory in the server. This widget lets the user browser the files in the server using a file selector user interface.
Note that this component requires a GWT servlet to be running on the server. You will need to include the gwtcomp-servlet.jar in the WEB-INF/web.xml file and in the web.xml file, add the following segment:
<servlet>
<servlet-name>DirListingService</servlet-name>
<servlet-class>
org.cafesip.gwtcomp.server.DirListingServiceImpl
</servlet-class>
</servlet>
...
<servlet-mapping>
<servlet-name>DirListingService</servlet-name>
<url-pattern>/gwtcomp/directoryService</url-pattern>
</servlet-mapping>
Examples:
Screen-Shots:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
com.google.gwt.user.client.ui.PopupPanel.PositionCallback |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ServerFileBrowser()
A constructor for this class. |
|
ServerFileBrowser(java.lang.String filter)
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
addServerFileListener(ServerFileBrowserListener listener)
Adds a listener for events. |
java.lang.String |
getFilter()
Returns the filter string. |
void |
removeServerFileListener(ServerFileBrowserListener listener)
Removes an event listener. |
void |
setFilter(java.lang.String filter)
Sets a filter string. |
| Methods inherited from class com.google.gwt.user.client.ui.DialogBox |
|---|
doAttachChildren, doDetachChildren, getHTML, getText, onEnsureDebugId, onEventPreview, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, setHTML, setText |
| Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel |
|---|
clear, getCellElement, getWidget, iterator, remove, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, hide, isAnimationEnabled, onDetach, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setAnimationEnabled, setHeight, setPopupPosition, setPopupPositionAndShow, setTitle, setVisible, setWidth, show |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, disown, onLoad, onUnload, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onBrowserEvent, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerFileBrowser(java.lang.String filter)
filter - a regular expression filter String. Only files/directories
matching the pattern will be displayed.public ServerFileBrowser()
| Method Detail |
|---|
public void addServerFileListener(ServerFileBrowserListener listener)
listener - public void removeServerFileListener(ServerFileBrowserListener listener)
listener - public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter - The filter to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||