Class CmsEditExternalLinkDialog
- 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.ui.externallink.CmsEditExternalLinkDialog
-
- 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.logical.shared.ValueChangeHandler<java.lang.String>
,com.google.gwt.event.shared.EventHandler
,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
,java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
,I_CmsAutoHider
public final class CmsEditExternalLinkDialog extends CmsPopup implements com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>
Dialog to create and edit external link resources.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsPopup
CmsPopup.HistoryHandler
-
Nested 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.PositionCallback
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LINK_GALLERY_RESOURCE_TYPE_NAME
The link gallery resource type name.static java.lang.String
POINTER_RESOURCE_TYPE_NAME
The pointer resource type name.-
Fields inherited from class org.opencms.gwt.client.ui.CmsPopup
DEFAULT_WIDTH, m_closeCommand, m_notificationWidgetInstalled, m_windowWidth, WIDE_WIDTH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initContent(org.opencms.gwt.shared.CmsExternalLinkInfoBean linkInfo)
Initializes the dialog content.static CmsEditExternalLinkDialog
loadAndShowDialog(org.opencms.util.CmsUUID structureId)
Loads the link info and shows the edit dialog.protected void
onOk()
Called on dialog OK.void
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
Validates the form input.void
setContextMenuHandler(I_CmsContextMenuHandler contextMenuHandler)
Sets the context menu handler.protected void
setOkEnabled(boolean enabled, java.lang.String message)
Enables or disables the OK button.static CmsEditExternalLinkDialog
showNewLinkDialog(org.opencms.gwt.shared.CmsListInfoBean typeInfo, java.lang.String parentFolderPath)
Shows the create new link dialog.-
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, show, showArrow, wrapWithBorderPadding
-
Methods 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, showRelativeTo
-
Methods 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, unsinkEvents
-
Methods 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opencms.gwt.client.ui.I_CmsAutoHider
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
-
-
-
-
Field Detail
-
LINK_GALLERY_RESOURCE_TYPE_NAME
public static final java.lang.String LINK_GALLERY_RESOURCE_TYPE_NAME
The link gallery resource type name.- See Also:
- Constant Field Values
-
POINTER_RESOURCE_TYPE_NAME
public static final java.lang.String POINTER_RESOURCE_TYPE_NAME
The pointer resource type name.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadAndShowDialog
public static CmsEditExternalLinkDialog loadAndShowDialog(org.opencms.util.CmsUUID structureId)
Loads the link info and shows the edit dialog.- Parameters:
structureId
- the structure id- Returns:
- the dialog object
-
showNewLinkDialog
public static CmsEditExternalLinkDialog showNewLinkDialog(org.opencms.gwt.shared.CmsListInfoBean typeInfo, java.lang.String parentFolderPath)
Shows the create new link dialog.- Parameters:
typeInfo
- the 'pointer' type infoparentFolderPath
- the parent folder site path- Returns:
- the dialog object
-
onValueChange
public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
Validates the form input.- Specified by:
onValueChange
in interfacecom.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>
- See Also:
ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
-
setContextMenuHandler
public void setContextMenuHandler(I_CmsContextMenuHandler contextMenuHandler)
Sets the context menu handler.- Parameters:
contextMenuHandler
- the context menu handler to set
-
initContent
protected void initContent(org.opencms.gwt.shared.CmsExternalLinkInfoBean linkInfo)
Initializes the dialog content.- Parameters:
linkInfo
- the link info bean
-
onOk
protected void onOk()
Called on dialog OK.
-
setOkEnabled
protected void setOkEnabled(boolean enabled, java.lang.String message)
Enables or disables the OK button.- Parameters:
enabled
-true
to enable the buttonmessage
- the disabled reason
-
-