Package org.opencms.gwt.client.seo
Class CmsSeoOptionsDialog
java.lang.Object
com.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
org.opencms.gwt.client.ui.CmsPopup
org.opencms.gwt.client.seo.CmsSeoOptionsDialog
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.EventPreview,com.google.gwt.user.client.ui.AcceptsOneWidget,com.google.gwt.user.client.ui.HasAnimation,com.google.gwt.user.client.ui.HasOneWidget,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.SourcesPopupEvents,Iterable<com.google.gwt.user.client.ui.Widget>,I_CmsAutoHider,I_CmsFormHandler
The SEO options dialog, which makes it possible to both edit the SEO relevant properties of
a resource as well as alias paths for the resource.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsPopup
CmsPopup.HistoryHandlerNested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallbackNested 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.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static CmsAliasMessagesThe alias messages.protected CmsAliasListThe inner alias list.protected intThe validation status for the aliases.protected com.google.gwt.user.client.ui.FlowPanelThe root panel for this dialog.protected intThe validation status for the properties.protected org.opencms.util.CmsUUIDThe structure id of the resource whose aliases are being edited.protected static String[]The properties which should be displayed.protected static final intThe validation has detected an error.protected static final intThe validation has finished successfully.protected static final intThe validation isn't finished yet.Fields inherited from class org.opencms.gwt.client.ui.CmsPopup
DEFAULT_WIDTH, m_closeCommand, m_notificationWidgetInstalled, m_windowWidth, WIDE_WIDTHFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCmsSeoOptionsDialog(org.opencms.util.CmsUUID structureId, org.opencms.gwt.shared.CmsListInfoBean infoBean, List<org.opencms.gwt.shared.alias.CmsAliasBean> aliases, Map<String, org.opencms.xml.content.CmsXmlContentProperty> propertyConfig, I_CmsPropertyEditorHandler propertyEditorHandler) Creates a new dialog instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if properties are currently being submitted.static voidloadAliases(org.opencms.util.CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<List<org.opencms.gwt.shared.alias.CmsAliasBean>> callback) Loads the aliases for a given page.protected voidThe method which is called when the user clicks the save button of the dialog.voidonSubmitValidationResult(CmsForm form, boolean ok) This method is called when the validation triggered by an attempt to submit the form has finished.voidonValidationResult(CmsForm form, boolean ok) This method is called when the normal validation triggered by changing fields has finished.protected voidSaves the aliases.voidsaveAliases(org.opencms.util.CmsUUID uuid, List<org.opencms.gwt.shared.alias.CmsAliasBean> aliases) Saves the aliases for a given page.protected voidSaves the properties.voidshow()voidupdate(boolean submit) Updates the validation status and optionally submits the data.Methods inherited from class org.opencms.gwt.client.ui.CmsPopup
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, center, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, hide, hide, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, showArrow, wrapWithBorderPaddingMethods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeToMethods inherited from class com.google.gwt.user.client.ui.SimplePanel
getWidget, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface org.opencms.gwt.client.ui.I_CmsAutoHider
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabledMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
aliasMessages
The alias messages. -
seoProperties
The properties which should be displayed. -
VALIDATION_FAILED
The validation has detected an error.- See Also:
-
VALIDATION_OK
The validation has finished successfully.- See Also:
-
VALIDATION_RUNNING
The validation isn't finished yet.- See Also:
-
m_aliasList
The inner alias list. -
m_aliasValidationStatus
The validation status for the aliases. -
m_panel
The root panel for this dialog. -
m_propertyValidationStatus
The validation status for the properties. -
m_structureId
The structure id of the resource whose aliases are being edited.
-
-
Constructor Details
-
Method Details
-
loadAliases
public static void loadAliases(org.opencms.util.CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<List<org.opencms.gwt.shared.alias.CmsAliasBean>> callback) Loads the aliases for a given page.- Parameters:
structureId- the structure id of the pagecallback- the callback for the loaded aliases
-
isSubmitting
Description copied from interface:I_CmsFormHandlerReturns true if properties are currently being submitted.- Specified by:
isSubmittingin interfaceI_CmsFormHandler- Returns:
- true if properties are being submitted
-
onSubmitValidationResult
Description copied from interface:I_CmsFormHandlerThis method is called when the validation triggered by an attempt to submit the form has finished.- Specified by:
onSubmitValidationResultin interfaceI_CmsFormHandler- Parameters:
form- the formok- the validation result- See Also:
-
onValidationResult
Description copied from interface:I_CmsFormHandlerThis method is called when the normal validation triggered by changing fields has finished.- Specified by:
onValidationResultin interfaceI_CmsFormHandler- Parameters:
form- the formok- the validation result- See Also:
-
saveAliases
public void saveAliases(org.opencms.util.CmsUUID uuid, List<org.opencms.gwt.shared.alias.CmsAliasBean> aliases) Saves the aliases for a given page.- Parameters:
uuid- the page structure idaliases- the aliases to save
-
show
-
update
Updates the validation status and optionally submits the data.- Parameters:
submit- the submit flag
-
onClickSave
The method which is called when the user clicks the save button of the dialog. -
saveAliases
Saves the aliases. -
saveProperties
Saves the properties.
-