public class CmsAliasView
extends com.google.gwt.user.client.ui.Composite
| 限定符和类型 | 类和说明 |
|---|---|
protected static interface |
CmsAliasView.I_CmsAliasViewUiBinder
The UiBinder interface for this widget.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsPushButton |
m_cancelButton
The 'Cancel' button.
|
protected CmsAliasTableController |
m_controller
The alias table controller.
|
protected com.google.gwt.user.client.ui.HasText |
m_countLabel
Text container for the row count.
|
protected CmsPushButton |
m_deleteButton
The 'Delete' button.
|
protected CmsPushButton |
m_downloadButton
The 'Download' button.
|
protected CmsTextBox |
m_newAliasPath
The text box for entering the path for a new alias.
|
protected CmsPushButton |
m_newButton
The button for adding a new alias.
|
protected CmsSelectBox |
m_newMode
The select box for selecting the mode of a new alias.
|
protected CmsTextBox |
m_newResourcePath
The text box for entering the resource path for a new alias.
|
protected CmsPushButton |
m_newRewriteButton
The button for adding a new rewrite alias.
|
protected CmsSelectBox |
m_newRewriteMode
The select box for selecting a mode for new rewrite aliases.
|
protected CmsTextBox |
m_newRewriteRegex
The text box for entering a new rewrite pattern.
|
protected CmsTextBox |
m_newRewriteReplacement
The text box for entering a new rewrite replacement string.
|
protected CmsPushButton |
m_rewriteDeleteButton
The button for deleting rewrite aliases.
|
protected com.google.gwt.user.client.ui.Panel |
m_rewriteTableContainer
The container for the rewrite table.
|
protected CmsPushButton |
m_saveButton
The button for saving the alias table.
|
protected com.google.gwt.user.client.ui.Panel |
m_tableContainer
The panel containing the alias cell table.
|
protected CmsPushButton |
m_uploadButton
The button for importing alias CSV files.
|
| 构造器和说明 |
|---|
CmsAliasView(CmsAliasTableController controller)
Creates new view instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearNew()
Clears the input fields used to add new aliases.
|
void |
clearRewriteNew()
Clears the text boxes for adding new rewrites.
|
void |
clearValidationsForNew()
Clears the validation errors for the text boxes used to add new aliases.
|
void |
close()
Hides the popup.
|
java.util.List<CmsPushButton> |
getButtonBar()
Gets the buttons which should be displayed in the button bar of the popup containing this view.
|
java.util.List<CmsAliasTableRow> |
getLiveData()
Gets the list of rows used by the data provider.
|
java.util.List<CmsRewriteAliasTableRow> |
getRewriteData()
Gets the rewrite alias data.
|
CmsRewriteAliasTable |
getRewriteTable()
Gets the rewrite alias cell table.
|
CmsAliasCellTable |
getTable()
Gets the cell table used to edit the alias data.
|
protected void |
onClickDeleteRewrite(com.google.gwt.event.dom.client.ClickEvent e)
The event handler for the button to delete rewrite aliases.
|
void |
setData(java.util.List<CmsAliasTableRow> data,
java.util.List<CmsRewriteAliasTableRow> rewriteData)
Replaces the contents of the live data row list with another list of rows.
|
void |
setDeleteButtonEnabled(boolean enabled)
Enables or disables the delete button.
|
void |
setNewAliasPathError(java.lang.String error)
Sets the validation error message for the alias path text box.
|
void |
setNewAliasResourceError(java.lang.String error)
Sets the validation error message for the resource path text box.
|
void |
setPopup(CmsPopup popup)
Sets the popup used to display this widget.
|
void |
setRewriteDeleteButtonEnabled(boolean enabled)
Enables or disables the delete button for rewrite aliases.
|
void |
setSaveButtonEnabled(boolean enabled)
Enables or disables the save button.
|
void |
sortByErrors()
Ensures that rows with errors will be placed at the top of the table.
|
void |
update(CmsRewriteAliasValidationReply result)
Updates the view after the rewrite aliases have been validated.
|
void |
update(java.util.List<CmsAliasTableRow> data)
Updates the table data with a new list of rows.
|
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 CmsPushButton m_cancelButton
protected CmsAliasTableController m_controller
@UiField protected com.google.gwt.user.client.ui.HasText m_countLabel
@UiField protected CmsPushButton m_deleteButton
@UiField protected CmsPushButton m_downloadButton
@UiField protected CmsTextBox m_newAliasPath
@UiField protected CmsPushButton m_newButton
@UiField protected CmsSelectBox m_newMode
@UiField protected CmsTextBox m_newResourcePath
@UiField protected CmsPushButton m_newRewriteButton
@UiField protected CmsSelectBox m_newRewriteMode
@UiField protected CmsTextBox m_newRewriteRegex
@UiField protected CmsTextBox m_newRewriteReplacement
@UiField protected CmsPushButton m_rewriteDeleteButton
@UiField protected com.google.gwt.user.client.ui.Panel m_rewriteTableContainer
@UiField protected CmsPushButton m_saveButton
@UiField protected com.google.gwt.user.client.ui.Panel m_tableContainer
@UiField protected CmsPushButton m_uploadButton
public CmsAliasView(CmsAliasTableController controller)
controller - the controller for the viewpublic void clearNew()
public void clearRewriteNew()
public void clearValidationsForNew()
public void close()
public java.util.List<CmsPushButton> getButtonBar()
public java.util.List<CmsAliasTableRow> getLiveData()
public java.util.List<CmsRewriteAliasTableRow> getRewriteData()
public CmsRewriteAliasTable getRewriteTable()
public CmsAliasCellTable getTable()
public void setData(java.util.List<CmsAliasTableRow> data, java.util.List<CmsRewriteAliasTableRow> rewriteData)
data - the new list of rows to be placed into the live data listrewriteData - the list of rewrite alias datapublic void setDeleteButtonEnabled(boolean enabled)
enabled - if true, the delete button will be enabled, else disabledpublic void setNewAliasPathError(java.lang.String error)
error - the validation error messagepublic void setNewAliasResourceError(java.lang.String error)
error - the validation error messagepublic void setPopup(CmsPopup popup)
popup - the popup instancepublic void setRewriteDeleteButtonEnabled(boolean enabled)
enabled - true if the delete button should be enabledpublic void setSaveButtonEnabled(boolean enabled)
enabled - true if the save button should be enabled, false if it should be disabledpublic void sortByErrors()
public void update(CmsRewriteAliasValidationReply result)
result - the result of the rewrite alias validationpublic void update(java.util.List<CmsAliasTableRow> data)
Rows in the table for which a row with the same key is also contained in the 'data' parameter will be updated, the other rows from the 'data' list will be added.
data - the list of rows to update@UiHandler(value="m_rewriteDeleteButton") protected void onClickDeleteRewrite(com.google.gwt.event.dom.client.ClickEvent e)
e - the click event