public class CmsImportView
extends com.google.gwt.user.client.ui.Composite
It contains buttons for uploading a file, a form used to submit the file to the server, and an area used for displaying the result of the import operation on the server.
| 限定符和类型 | 类和说明 |
|---|---|
protected static interface |
CmsImportView.I_CmsImportViewUiBinder
The UiBinder interface for this widget.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.google.gwt.user.client.ui.FormPanel |
m_formPanel
The actual form.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_formPanelContents
The panel containing the form elements.
|
protected com.google.gwt.user.client.ui.Label |
m_pathLabel
The label containing the path or name of the CSV file to import.
|
protected CmsImportResultList |
m_results
The panel containing the results of the server-side import operation.
|
protected CmsScrollPanel |
m_scrollPanel
The scroll panel containing the import results.
|
protected com.google.gwt.user.client.ui.HasText |
m_separator
Text box for setting the separator.
|
protected CmsPushButton |
m_submitButton
The button used to submit the file which should be imported to the server.
|
protected CmsUploadButton |
m_uploadButton
The upload button.
|
| 构造器和说明 |
|---|
CmsImportView()
Creates a new widget instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addImportResult(CmsAliasImportResult result)
Adds an import result to the displayed list of import results.
|
protected void |
clearResults()
Clears the panel used to display the import results.
|
protected void |
handleImportResults(java.util.List<CmsAliasImportResult> results)
Processes the result of the import operation from the server.
|
protected void |
initializeForm()
Initializes the form used for submitting the alias CSV file to the server.
|
void |
onClickSubmit(com.google.gwt.event.dom.client.ClickEvent event)
The event handler for the submit button.
|
static void |
showPopup()
Shows a popup containing the import view.
|
protected void |
updatePath(java.lang.String path)
Updates the path of the file to import.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents@UiField protected com.google.gwt.user.client.ui.FormPanel m_formPanel
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_formPanelContents
@UiField protected com.google.gwt.user.client.ui.Label m_pathLabel
@UiField protected CmsImportResultList m_results
@UiField protected CmsScrollPanel m_scrollPanel
@UiField protected com.google.gwt.user.client.ui.HasText m_separator
@UiField protected CmsPushButton m_submitButton
protected CmsUploadButton m_uploadButton
public static void showPopup()
@UiHandler(value="m_submitButton") public void onClickSubmit(com.google.gwt.event.dom.client.ClickEvent event)
event - the click eventprotected void addImportResult(CmsAliasImportResult result)
result - the result to addprotected void clearResults()
protected void handleImportResults(java.util.List<CmsAliasImportResult> results)
results - the string containing the results of the import sent by the serverprotected void initializeForm()
protected void updatePath(java.lang.String path)
path - the new path