Class Reify
- All Implemented Interfaces:
HasAttachHandlers,HasHandlers,EventListener,HasVisibility,IsWidget,LogicalStructure,HasClearHandlers,HasClickHandlers,HasDoubleClickHandlers,HasDragMoveHandlers,HasDragRepositionMoveHandlers,HasDragRepositionStartHandlers,HasDragRepositionStopHandlers,HasDragResizeMoveHandlers,HasDragResizeStartHandlers,HasDragResizeStopHandlers,HasDragStartHandlers,HasDragStopHandlers,HasDropHandlers,HasDropMoveHandlers,HasDropOutHandlers,HasDropOverHandlers,HasFocusChangedHandlers,HasHoverHandlers,HasHoverHiddenHandlers,HasKeyDownHandlers,HasKeyPressHandlers,HasMouseDownHandlers,HasMouseMoveHandlers,HasMouseOutHandlers,HasMouseOverHandlers,HasMouseStillDownHandlers,HasMouseUpHandlers,HasMouseWheelHandlers,HasMovedHandlers,HasParentMovedHandlers,HasResizedHandlers,HasRightMouseDownHandlers,HasRuleContextChangedHandlers,HasScrolledHandlers,HasShowContextMenuHandlers,HasVisibilityChangedHandlers,HasMembersChangedHandlers
Reify OnSite that allows developers to create and manage Smart GWT screens and datasources. Only internal framework code can create an instance of the Reify tool - do not try it directly in your applications. If you want to create visual tools similar to Reify, see the Dashboards & Tools framework overview. Note that in the Smart GWT SDK, this class present only to provide Reify utility class method APIs, and is not an instantiable widget. For example, you can call getMockDS() to export a DataSource as XML-formatted values and metadata for importing into Reify to create a MockDataSource.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled -
Field Summary
Fields inherited from class com.smartgwt.client.widgets.BaseWidget
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassNameFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddScreensToProject(String projectName, String[] screenNames) Add one or more screens to an existing Reify project.static voidaddScreensToProject(String projectName, String[] screenNames, Function callback) Add one or more screens to an existing Reify project.static voidchangeAutoChildDefaults(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName.static voidchangeAutoChildDefaults(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName.protected JavaScriptObjectcreate()static voidcreateProjectWithScreens(String projectName, String[] screenNames) Create a minimal Reify project that references one or more screens already stored invbScreens.static voidcreateProjectWithScreens(String projectName, String[] screenNames, Function callback) Create a minimal Reify project that references one or more screens already stored invbScreens.static voidHide the overlay view, destroying all overlay frames.static voideditInReify(EditInReifyConfig config) Save anEditContext's component tree (or raw screen XML) to Reify storage and open it in the Reify editor.static voideditInReify(EditInReifyConfig config, Function callback) Save anEditContext's component tree (or raw screen XML) to Reify storage and open it in the Reify editor.static voidShow the overlay view.static ProjectgetDataSourceProject(String dataSourceId) Determine which cached Reify project a DataSource belongs to, if any.static voidgetDataSourcesDS(String callback, ReifyDSSettings settings) Return aDataSourcefor browsing the list of DataSources in a Reify installation.static Map[]Return an Array of records describing every Reify-loadedDataSourcecurrently registered.static DataSourceReturn a live clientOnlyDataSourceof loaded DataSource records.static Map[]Return an Array of records describing every ReifyProjectcurrently registered in the loaded-resource registry.static DataSourceReturn aDataSourcebound to the live set of records returned bygetLoadedProjects().static Map[]Return an Array of records describing every screen currently registered in the loaded-resource registry.static DataSourceReturn a live clientOnlyDataSourceof loaded screen records.Getter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.static voidgetMockDS(String[] dsNames, MockDSExportCallback callback, MockDSExportSettings settings) Exports or serializes the specifiedDataSourcesusing the provided settings.static ReifygetOrCreateRef(JavaScriptObject jsObj) TheDataSourceto use for saving the project, using fileSource operations.TheDataSourceto use for saving the project, using fileSource operations.static voidgetProjectsDS(String callback, ReifyDSSettings settings) Return aDataSourcefor browsing the list of projects in a Reify installation, suitable for binding to aListGrid,TreeGrid,SelectItem, etc.static voidgetReifyAssetsInPage(Function callback) Find all assets (projects, screens, DataSources) in the current page that are also stored in Reify.static voidgetReifyDataSources(Function callback) Get a list of DataSources stored in Reify's DS storage.static voidgetReifyProjects(Function callback) Get a list of projects stored in Reify's project storage.static voidgetReifyScreens(Function callback) Get a list of screens stored in Reify's screen storage.static ProjectgetScreenProject(String screenName) Determine which Reify project a screen belongs to, if any.static voidgetScreensDS(String callback, ReifyDSSettings settings) Return aDataSourcefor browsing the list of screens in a Reify installation.static voidisDataSourceInReify(String dataSourceId, Function callback) Check whether a DataSource is stored in Reify's DS storage (vbDataSources).static voidisProjectInReify(String projectName, Function callback) Check whether a project loaded viaRPCManager.loadProject()is stored in Reify's project storage (vbProjects).static voidisScreenInReify(String screenName, Function callback) Check whether a screen is stored in Reify's screen storage (vbScreens).voidloadProject(String projectName) Loads an existing project fromprojectDataSourcewithin Reify making it the current project.static voidloadProject(String projectNames, LoadProjectCallback callback, LoadProjectSettings settings) Loads projects from theReifyserver specified byserverURL(orLoadProjectSettings.serverURL) using theProjectLoaderServlet, reachable at the relative pathprojectLoaderPath(orLoadProjectSettings.projectLoaderPath) underneath the server URL, and fires the given callback after the project has been cached.voidloadProject(String projectName, String ownerId) SeeloadProject()voidloadProject(String projectName, String ownerId, Function callback) Loads an existing project fromprojectDataSourcewithin Reify making it the current project.static voidloadReify(ReifyLoadConfig config, Function callback) Load the Reify editor, either inline in the current page or in a new browser window.static voidloadSavedProject(String path, LoadProjectCallback callback) Loads aProjectfrom a file on the server previously saved bysaveProject(), without contacting a Reify server.static voidloadSavedProject(String path, LoadProjectCallback callback, LoadProjectSettings settings) Loads aProjectfrom a file on the server previously saved bysaveProject(), without contacting a Reify server.static voidloadScreenInReify(String screenName, ReifyLoadConfig config, Function callback) Open a named screen in Reify for editing.protected voidonInit()static voidregisterLoadedDataSource(String dsName) Add aDataSourcereference to the loaded-resource registry.static voidregisterLoadedDataSource(String dsName, Map info) Add aDataSourcereference to the loaded-resource registry.static voidregisterLoadedProject(Project project) Add aProjectto the loaded-resource registry.static voidregisterLoadedProject(Project project, Map sourceInfo) Add aProjectto the loaded-resource registry.static voidregisterLoadedScreen(Canvas canvas) Add a screen Canvas instance to the loaded-resource registry.static voidregisterLoadedScreen(Canvas canvas, Map info) Add a screen Canvas instance to the loaded-resource registry.static voidsaveProject(Project project, String path) Saves a loadedProjectto a file on the server, using thesaveFilebuilt-in RPC.static voidsaveProject(Project project, String path, DSCallback callback) SeesaveProject()static voidsaveProject(Project project, String path, DSCallback callback, String format) Saves a loadedProjectto a file on the server, using thesaveFilebuilt-in RPC.static voidsaveProjectFile(String projectName, String projectXml) Save a project definition to Reify's project storage (vbProjects).static voidsaveProjectFile(String projectName, String projectXml, Function callback) Save a project definition to Reify's project storage (vbProjects).static voidsaveScreen(String screenName, String screenContents) Save screen content (XML or JSON) to Reify's screen storage (vbScreens).static voidsaveScreen(String screenName, String screenContents, Function callback) Save screen content (XML or JSON) to Reify's screen storage (vbScreens).static voidsetDefaultProperties(Reify reifyProperties) Class level method to set the default properties of this class.Setter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.static voidReassign the key combination that activates theoverlay view.static voidsetOverlayKey(String key) Reassign the key combination that activates theoverlay view.static voidsetPassword(String password) Setter forpassword.setProjectDataSource(DataSource projectDataSource) TheDataSourceto use for saving the project, using fileSource operations.setProjectDataSource(String projectDataSource) TheDataSourceto use for saving the project, using fileSource operations.static voidsetProjectLoaderPath(String path) Setter forprojectLoaderPath.static voidsetServerURL(String serverURL) Setter forserverURL.static voidsetUserName(String userName) Setter foruserName.static voidshowMockDS(String[] dsNames, MockDSExportCallback callback, MockDSExportSettings settings) Shows the result of runninggetMockDS()in a modal window so it can be copied and pasted as needed intoReifyor elsewhere.static voidShow the overlay view with optional dismiss behaviour.static voidshowOverlay(OverlaySettings settings) Show the overlay view with optional dismiss behaviour.static voidShow theoverlay viewif it is hidden, or hide it if it is showing.static voidunregisterLoadedDataSource(String dsName) Remove a DataSource entry from the loaded-resource registry.static voidunregisterLoadedProject(Project project) Remove aProjectfrom the loaded-resource registry, along with all of its screens and DataSources.static voidunregisterLoadedScreen(Canvas canvas) Remove a screen from the loaded-resource registry.Methods inherited from class com.smartgwt.client.widgets.layout.VLayout
setDefaultProperties, setLogicalStructureMethods inherited from class com.smartgwt.client.widgets.layout.Layout
addMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getChildTabPosition, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEditProxyConstructor, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutEndMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutStartMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersAsStringArray, getMembersLength, getMembersMargin, getMinMemberLength, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, layoutIsDirty, onInit_Layout, reflow, reflow, reflowNow, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, replaceMember, revealChild, revealChild, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEditProxyConstructor, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutEndMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutStartMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembers, setMembersMargin, setMinBreadthMember, setMinBreadthMember, setMinBreadthMember, setMinMemberLength, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMemberMethods inherited from class com.smartgwt.client.widgets.Canvas
addChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, contentsComponentConnected, dataContextChanged, deparent, depeer, disable, doValueDictation, doVoiceCommand, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAllCanvases, getAllCanvases, getAllCanvases, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAriaRole, getAriaStateDefaults, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoRevertStyles, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanDropContent, getCanDropFiles, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenAsStringArray, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContentsComponentDefaults, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDeferActionConversion, getDefiningProperty, getDefiningPropertyName, getDefiningPropertyNameOptions, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getEvents, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverScreen, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentCanvasAsString, getParentElement, getParentElementAsString, getPeers, getPendingMarkerStyle, getPendingMarkerVisible, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowFocusOutline, getShowHover, getShowHoverComponents, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSingleDiv, getSizeMayChangeOnRedraw, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestDataContext, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getTopLevelComponents, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseGeneratedStyles, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getWorkflows, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, initComplete, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, resolveContentsComponent, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoRevertStyles, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanDropContent, setCanDropFiles, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContentsComponentDefaults, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultNativeAutoHideScrollbars, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDeferActionConversion, setDefiningProperty, setDefiningPropertyNameOptions, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverScreen, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentCanvas, setParentElement, setParentElement, setPeers, setPendingMarkerStyle, setPendingMarkerVisible, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowFocusOutline, setShowHover, setShowHoverComponents, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSingleDiv, setSizeMayChangeOnRedraw, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, setTestDataContext, setTitle, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseGeneratedStyles, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setWorkflows, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPendingMarker, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, startDebuggingOverflow, stopDebuggingOverflow, supportsValueDictation, supportsVoiceCommands, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDropMethods inherited from class com.smartgwt.client.widgets.BaseWidget
addDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAutoDraw, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoDraw, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toStringMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEventMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Constructor Details
-
Reify
public Reify() -
Reify
-
-
Method Details
-
getOrCreateRef
-
changeAutoChildDefaults
Changes the defaults for Canvas AutoChildren namedautoChildName.- Parameters:
autoChildName- name of an AutoChild to customize the defaults for.defaults- Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, seeSGWTProperties.- See Also:
-
changeAutoChildDefaults
Changes the defaults for FormItem AutoChildren namedautoChildName.- Parameters:
autoChildName- name of an AutoChild to customize the defaults for.defaults- FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, seeSGWTProperties.- See Also:
-
create
-
setProjectDataSource
TheDataSourceto use for saving the project, using fileSource operations. If not set, the property defaults to "vbProjects" except in hostedMode where "isc_hostedProjects" is the default.- Parameters:
projectDataSource- New projectDataSource value. Default value is null- Returns:
Reifyinstance, for chaining setter calls- Throws:
IllegalStateException- this property cannot be changed after the component has been created- See Also:
-
getProjectDataSource
TheDataSourceto use for saving the project, using fileSource operations. If not set, the property defaults to "vbProjects" except in hostedMode where "isc_hostedProjects" is the default.- Returns:
- Current projectDataSource value. Default value is null
- See Also:
-
setProjectDataSource
TheDataSourceto use for saving the project, using fileSource operations. If not set, the property defaults to "vbProjects" except in hostedMode where "isc_hostedProjects" is the default.- Parameters:
projectDataSource- New projectDataSource value. Default value is null- Returns:
Reifyinstance, for chaining setter calls- Throws:
IllegalStateException- this property cannot be changed after the component has been created- See Also:
-
getProjectDataSourceAsString
TheDataSourceto use for saving the project, using fileSource operations. If not set, the property defaults to "vbProjects" except in hostedMode where "isc_hostedProjects" is the default.- Returns:
- Current projectDataSource value. Default value is null
- See Also:
-
loadProject
Loads an existing project fromprojectDataSourcewithin Reify making it the current project. If project cannot be found a new project will be created and loaded.The last accessed screen within the project is restored to the current screen.
- Parameters:
projectName- the name of the project to load
-
loadProject
SeeloadProject() -
loadProject
Loads an existing project fromprojectDataSourcewithin Reify making it the current project. If project cannot be found a new project will be created and loaded.The last accessed screen within the project is restored to the current screen.
- Parameters:
projectName- the name of the project to loadownerId- optional ID of the project ownercallback- optional callback to fire when the project has been loaded
-
addScreensToProject
Add one or more screens to an existing Reify project. The screens must already be saved viasaveScreen(). The project is loaded from vbProjects, the screen references are appended, and the project is saved back.- Parameters:
projectName- project namescreenNames- screen names to add
-
addScreensToProject
Add one or more screens to an existing Reify project. The screens must already be saved viasaveScreen(). The project is loaded from vbProjects, the screen references are appended, and the project is saved back.- Parameters:
projectName- project namescreenNames- screen names to addcallback- called with (DSResponse dsResponse, Object data)
-
createProjectWithScreens
Create a minimal Reify project that references one or more screens already stored invbScreens. The project is saved to vbProjects.If a project with this name already exists, it is overwritten. To add screens to an existing project, use
addScreensToProject()instead.- Parameters:
projectName- project namescreenNames- screen names to include
-
createProjectWithScreens
public static void createProjectWithScreens(String projectName, String[] screenNames, Function callback) Create a minimal Reify project that references one or more screens already stored invbScreens. The project is saved to vbProjects.If a project with this name already exists, it is overwritten. To add screens to an existing project, use
addScreensToProject()instead.- Parameters:
projectName- project namescreenNames- screen names to includecallback- called with (DSResponse dsResponse, Object data)
-
disableOverlay
public static void disableOverlay()Hide the overlay view, destroying all overlay frames. The loaded screen canvases are untouched. Idempotent. -
editInReify
Save anEditContext's component tree (or raw screen XML) to Reify storage and open it in the Reify editor. This is the primary convenience method for the "Dashboards & Tools to Reify" workflow.The method handles the complete flow:
- Serializes the EditContext to screen XML (if
editContextis provided instead of rawscreenContents) - Saves the screen to vbScreens via
saveScreen() - Creates a new project or adds the screen to an existing project
- Opens Reify via
loadReify()with the project and screen pre-selected
- Parameters:
config- configuration
- Serializes the EditContext to screen XML (if
-
editInReify
Save anEditContext's component tree (or raw screen XML) to Reify storage and open it in the Reify editor. This is the primary convenience method for the "Dashboards & Tools to Reify" workflow.The method handles the complete flow:
- Serializes the EditContext to screen XML (if
editContextis provided instead of rawscreenContents) - Saves the screen to vbScreens via
saveScreen() - Creates a new project or adds the screen to an existing project
- Opens Reify via
loadReify()with the project and screen pre-selected
- Parameters:
config- configurationcallback- called with a ReifyRemote instance
- Serializes the EditContext to screen XML (if
-
enableOverlay
public static void enableOverlay()Show the overlay view. Equivalent toshowOverlay()with default dismiss settings (Escape key dismisses, click-outside dismisses). Idempotent. -
getDataSourceProject
Determine which cached Reify project a DataSource belongs to, if any.- Parameters:
dataSourceId- DataSource ID- Returns:
- the project containing the DS, or null
-
getDataSourcesDS
Return aDataSourcefor browsing the list of DataSources in a Reify installation. SeegetProjectsDS()for behavior, settings, and remote-access details.- Parameters:
callback- called with(DataSource ds). SeeCallbacksettings- optional override settings
-
getLoadedDataSources
Return an Array of records describing every Reify-loadedDataSourcecurrently registered.- Returns:
- loaded DataSource records
-
getLoadedDataSourcesDS
Return a live clientOnlyDataSourceof loaded DataSource records. SeegetLoadedProjectsDS().- Returns:
- live discovery DS for DataSources
-
getLoadedProjects
Return an Array of records describing every ReifyProjectcurrently registered in the loaded-resource registry. Each record has fieldsprojectName,screenCount,dsCount,source,reifyURL,sourceLabel,loadedAt, andinstance(the live Project object).- Returns:
- loaded project records
-
getLoadedProjectsDS
Return aDataSourcebound to the live set of records returned bygetLoadedProjects(). The DS isclientOnlywithcacheAllData:true, so boundListGridsupdate automatically as projects are loaded and destroyed, and the DS supports synchronousfetchDataSynchronous().Returns the same DS instance on every call.
- Returns:
- live discovery DS for projects
-
getLoadedScreens
Return an Array of records describing every screen currently registered in the loaded-resource registry. SeegetLoadedProjects()for the registry overview.- Returns:
- loaded screen records
-
getLoadedScreensDS
Return a live clientOnlyDataSourceof loaded screen records. SeegetLoadedProjectsDS().- Returns:
- live discovery DS for screens
-
getMockDS
public static void getMockDS(String[] dsNames, MockDSExportCallback callback, MockDSExportSettings settings) Exports or serializes the specifiedDataSourcesusing the provided settings.The "reifyCSV"
formatgenerates comma-separated values to paste into the DataSource creation wizard inReify. The use case for the other two formats is, if you have a Smart GWT application, and you plan to loadMockDataSourcesto enable people to add screens to your application using Reify, you may want to test your application with the MockDataSources to ensure they have the right data to allow your application to function (for example, that records in one MockDataSource that are related to another MockDataSource match up). Similarly, you may want to test any custom classes that you upload to Reify in a standalone file usingMockDataSources.You can customize the
settings, such asnumRows(ornumLevelsfor tree-DataSources) to keep the data volume returned by the export low. When related DataSources are present, all related records will be included in the export, even ifnumRowsis exceeded. If this is too much data,criteriacan be used to further restrict exported records. Note thatsettingssupports an array ofrequestProperties, so that you can provide unique configuration for each DataSource being exported, rather than only global configuration.When exporting interlinked DataSources, set
MockDSExportSettings.followFKDepthto automatically discover additional DataSources reachable via foreignKey relationships, so you don't have to manually enumerate every related DataSource.Unless you need programmatic or expert control over the settings, you will likely find it easier to use the "Reify Export" button in the
DataSources tab, as when using that route, useful global and per-DataSource settings can be configured in an intuitively-arranged popup dialog.- Parameters:
dsNames-IDs of the desired DataSourcescallback- called with the complete export or serializationsettings- controls format and what records and metadata to include- See Also:
-
getProjectsDS
Return aDataSourcefor browsing the list of projects in a Reify installation, suitable for binding to aListGrid,TreeGrid,SelectItem, etc.By default, the local server's Reify storage is used. Pass a
ReifyDSSettingsobject withreifyURLset to access a remote Reify server (seedefaultReifyURL).The DataSource is delivered asynchronously via callback because the underlying DataSource definition may need to be loaded from the server first. Subsequent calls for the same target return the same DataSource instance.
- Parameters:
callback- called with(DataSource ds)? the DataSource is null on failure. SeeCallbacksettings- optional override settings
-
getReifyAssetsInPage
Find all assets (projects, screens, DataSources) in the current page that are also stored in Reify. This is an async operation since it queries the Reify file storage.- Parameters:
callback- called with (Object results) where results has properties: projects (Array), screens (Array), dataSources (Array)
-
getReifyDataSources
Get a list of DataSources stored in Reify's DS storage.- Parameters:
callback- called with (Array of String dsIds)
-
getReifyProjects
Get a list of projects stored in Reify's project storage.- Parameters:
callback- called with (Array of String projectNames)
-
getReifyScreens
Get a list of screens stored in Reify's screen storage.- Parameters:
callback- called with (Array of String screenNames)
-
getScreenProject
Determine which Reify project a screen belongs to, if any. A screen belongs to a project if it is listed in the project's screen list. This checks locally cached projects (loaded viaRPCManager.loadProject()).- Parameters:
screenName- name of the screen- Returns:
- the project containing the screen, or null
-
getScreensDS
Return aDataSourcefor browsing the list of screens in a Reify installation. SeegetProjectsDS()for behavior, settings, and remote-access details.- Parameters:
callback- called with(DataSource ds). SeeCallbacksettings- optional override settings
-
isDataSourceInReify
Check whether a DataSource is stored in Reify's DS storage (vbDataSources).- Parameters:
dataSourceId- DataSource IDcallback- called with (Boolean isStored)
-
isProjectInReify
Check whether a project loaded viaRPCManager.loadProject()is stored in Reify's project storage (vbProjects).- Parameters:
projectName- name of the projectcallback- called with (Boolean isStored)
-
isScreenInReify
Check whether a screen is stored in Reify's screen storage (vbScreens).- Parameters:
screenName- name of the screencallback- called with (Boolean isStored)
-
loadProject
public static void loadProject(String projectNames, LoadProjectCallback callback, LoadProjectSettings settings) Loads projects from theReifyserver specified byserverURL(orLoadProjectSettings.serverURL) using theProjectLoaderServlet, reachable at the relative pathprojectLoaderPath(orLoadProjectSettings.projectLoaderPath) underneath the server URL, and fires the given callback after the project has been cached. When a project is loaded, all of its DataSources and screens (except where explicitly overridden by settings) are also cached in the project.See
RPCManager.loadProject()for further details.- Parameters:
projectNames- Comma-separated string containing the names of project(s) to load.callback- Callback for notification of completion of project(s) loaded and screens cached.settings- Settings applicable to the loadProject operation.- See Also:
-
loadReify
Load the Reify editor, either inline in the current page or in a new browser window. Returns a ReifyRemote via callback that provides a uniform API for controlling and receiving notifications from the Reify instance regardless of how it was loaded.In inline mode, all required Reify modules are dynamically loaded into the current page via FileLoader.loadModules() and a Reify instance is created.
In window mode, Reify is opened in a new browser tab. Communication uses
window.postMessageby default (same-origin) or RealTime Messaging ifuseRTM: true(cross-origin).- Parameters:
config- configurationcallback- called with a ReifyRemote instance
-
loadSavedProject
Loads aProjectfrom a file on the server previously saved bysaveProject(), without contacting a Reify server.A saved project file is a JSON envelope containing each screen and DataSource definition. Each definition includes the JavaScript component code (the
codeproperty) and, when the project was originally loaded withincludeXML:true, the original XML source as well (thexmlproperty). Both representations are preserved through save/load round-trips.The resulting
Projectis cached the same way as one loaded vialoadProject(), and screens can be created viaProject.createScreen().- Parameters:
path- server path relative to the webRoot (e.g. "shared/myApp.proj.json")callback- called with the loadedProject- See Also:
-
loadSavedProject
public static void loadSavedProject(String path, LoadProjectCallback callback, LoadProjectSettings settings) Loads aProjectfrom a file on the server previously saved bysaveProject(), without contacting a Reify server.A saved project file is a JSON envelope containing each screen and DataSource definition. Each definition includes the JavaScript component code (the
codeproperty) and, when the project was originally loaded withincludeXML:true, the original XML source as well (thexmlproperty). Both representations are preserved through save/load round-trips.The resulting
Projectis cached the same way as one loaded vialoadProject(), and screens can be created viaProject.createScreen().- Parameters:
path- server path relative to the webRoot (e.g. "shared/myApp.proj.json")callback- called with the loadedProjectsettings- optional settings for project loading- See Also:
-
loadScreenInReify
Open a named screen in Reify for editing. The screen must be stored in Reify's screen storage (vbScreens); if not, a warning is logged and the call fails.This is the screen equivalent of
Project.loadInReify()andDataSource.loadInReify(). Since screens are not first-class objects in Smart GWT (they are Canvas hierarchies returned byRPCManager.loadScreen()), this method is on the Reify class rather than on a Screen instance.- Parameters:
screenName- screen to editconfig- optional config forloadReify()callback- called with ReifyRemote
-
registerLoadedDataSource
Add aDataSourcereference to the loaded-resource registry. Normally called fromregisterLoadedProject()for project-bundled DSes, but available for application code that loads DSes outside the project flow.- Parameters:
dsName- the DataSource's ID
-
registerLoadedDataSource
Add aDataSourcereference to the loaded-resource registry. Normally called fromregisterLoadedProject()for project-bundled DSes, but available for application code that loads DSes outside the project flow.- Parameters:
dsName- the DataSource's IDinfo- optional fields:projectName,source,reifyURL,sourceLabel
-
registerLoadedProject
Add aProjectto the loaded-resource registry. Called automatically byRPCManager.loadProject()as projects come back from the server, and may also be called by application code for projects assembled outside the normal load path (e.g. from local storage).Registration is idempotent: re-registering an already-known project just refreshes its record. An automatic destroy hook ensures the record is removed when the Project is destroyed.
- Parameters:
project- the Project instance to register
-
registerLoadedProject
Add aProjectto the loaded-resource registry. Called automatically byRPCManager.loadProject()as projects come back from the server, and may also be called by application code for projects assembled outside the normal load path (e.g. from local storage).Registration is idempotent: re-registering an already-known project just refreshes its record. An automatic destroy hook ensures the record is removed when the Project is destroyed.
- Parameters:
project- the Project instance to registersourceInfo- optional override for source provenance fields (source,reifyURL,sourceLabel); defaults derived fromdefaultReifyURL
-
registerLoadedScreen
Add a screen Canvas instance to the loaded-resource registry. Called automatically byRPCManager.loadScreen()(when no project is involved) and byProject.createScreen()(which both replaces the project's screen-definition record with one that points at the live Canvas, and arranges for cleanup when the Canvas is destroyed).- Parameters:
canvas- the screen's top-level Canvas instance
-
registerLoadedScreen
Add a screen Canvas instance to the loaded-resource registry. Called automatically byRPCManager.loadScreen()(when no project is involved) and byProject.createScreen()(which both replaces the project's screen-definition record with one that points at the live Canvas, and arranges for cleanup when the Canvas is destroyed).- Parameters:
canvas- the screen's top-level Canvas instanceinfo- optional fields:screenName,projectName,source,reifyURL,sourceLabel
-
saveProject
Saves a loadedProjectto a file on the server, using thesaveFilebuilt-in RPC. The file can later be loaded vialoadSavedProject()to recreate the project without contacting a Reify server.By default, the saved format is determined by how the project was loaded. If the project was loaded with
includeXML:true, only the original XML definitions are saved — these are the verbatim strings from the Reify server, with no re-serialization or round-tripping. Otherwise, the JavaScript component code is saved.The optional
formatparameter overrides this default:- "json" – saves only the JavaScript
coderepresentation - "xml" – saves only the
xmlrepresentation. RequiresincludeXML:trueto have been set when the project was loaded. - "both" – saves both
codeandxml(when present)
Note:
Project.createScreen()requires thecodeproperty. Files saved with onlyxml(the default whenincludeXMLwas used, or format "xml") cannot be loaded vialoadSavedProject()for screen creation. Use format "both" or "json" to produce a file suitable forloadSavedProject().The
saveFilebuilt-in method must be enabled inserver.properties:RPCManager.enabledBuiltinMethods: saveFile
- Parameters:
project- a loaded projectpath- server path relative to the webRoot (e.g. "shared/myApp.proj.json")- See Also:
- "json" – saves only the JavaScript
-
saveProject
SeesaveProject() -
saveProject
Saves a loadedProjectto a file on the server, using thesaveFilebuilt-in RPC. The file can later be loaded vialoadSavedProject()to recreate the project without contacting a Reify server.By default, the saved format is determined by how the project was loaded. If the project was loaded with
includeXML:true, only the original XML definitions are saved — these are the verbatim strings from the Reify server, with no re-serialization or round-tripping. Otherwise, the JavaScript component code is saved.The optional
formatparameter overrides this default:- "json" – saves only the JavaScript
coderepresentation - "xml" – saves only the
xmlrepresentation. RequiresincludeXML:trueto have been set when the project was loaded. - "both" – saves both
codeandxml(when present)
Note:
Project.createScreen()requires thecodeproperty. Files saved with onlyxml(the default whenincludeXMLwas used, or format "xml") cannot be loaded vialoadSavedProject()for screen creation. Use format "both" or "json" to produce a file suitable forloadSavedProject().The
saveFilebuilt-in method must be enabled inserver.properties:RPCManager.enabledBuiltinMethods: saveFile
- Parameters:
project- a loaded projectpath- server path relative to the webRoot (e.g. "shared/myApp.proj.json")callback- called on completionformat- "json", "xml", "both", or null for auto-detect- See Also:
- "json" – saves only the JavaScript
-
saveProjectFile
Save a project definition to Reify's project storage (vbProjects).projectXmlmust be valid Reify project XML as produced byReifyProject.xmlSerialize().- Parameters:
projectName- project nameprojectXml- project XML content
-
saveProjectFile
Save a project definition to Reify's project storage (vbProjects).projectXmlmust be valid Reify project XML as produced byReifyProject.xmlSerialize().- Parameters:
projectName- project nameprojectXml- project XML contentcallback- called with (DSResponse dsResponse, Object data)
-
saveScreen
Save screen content (XML or JSON) to Reify's screen storage (vbScreens). This makes the screen available for use in Reify projects vialoadReify()orloadScreenInReify().- Parameters:
screenName- name for the screenscreenContents- screen XML or JSON content, as produced byEditContext.serializeAllEditNodes()
-
saveScreen
Save screen content (XML or JSON) to Reify's screen storage (vbScreens). This makes the screen available for use in Reify projects vialoadReify()orloadScreenInReify().- Parameters:
screenName- name for the screenscreenContents- screen XML or JSON content, as produced byEditContext.serializeAllEditNodes()callback- called with (DSResponse dsResponse, Object data)
-
setOverlayKey
Reassign the key combination that activates theoverlay view.Pass a
KeyIdentifierobject. WhenkeyNameis present the binding is a press-to-toggle shortcut; when absent only modifiers are checked and the overlay uses hold-to-show mode (appears while held, auto-dismisses on release).A plain String string (e.g.
"F2") is also accepted and treated as a toggle shortcut. -
setOverlayKey
Reassign the key combination that activates theoverlay view.Pass a
KeyIdentifierobject. WhenkeyNameis present the binding is a press-to-toggle shortcut; when absent only modifiers are checked and the overlay uses hold-to-show mode (appears while held, auto-dismisses on release).A plain String string (e.g.
"F2") is also accepted and treated as a toggle shortcut. -
setPassword
Setter forpassword.- Parameters:
password-
-
setProjectLoaderPath
Setter forprojectLoaderPath.- Parameters:
path-
-
setServerURL
Setter forserverURL. -
setUserName
Setter foruserName.- Parameters:
userName-
-
showMockDS
public static void showMockDS(String[] dsNames, MockDSExportCallback callback, MockDSExportSettings settings) Shows the result of runninggetMockDS()in a modal window so it can be copied and pasted as needed intoReifyor elsewhere.Note that the callback is fired when the window is closed, not when it's populated.
- Parameters:
dsNames-IDs of the desired DataSourcescallback- called with the complete export or serializationsettings- controls format and what records and metadata to include
-
showOverlay
public static void showOverlay()Show the overlay view with optional dismiss behaviour. Greys out the page and draws a colored frame plus action icons around every loaded Reify screen. Idempotent.- See Also:
-
showOverlay
Show the overlay view with optional dismiss behaviour. Greys out the page and draws a colored frame plus action icons around every loaded Reify screen. Idempotent.- Parameters:
settings- optional dismiss and behaviour configuration- See Also:
-
toggleOverlay
public static void toggleOverlay()Show theoverlay viewif it is hidden, or hide it if it is showing. -
unregisterLoadedDataSource
Remove a DataSource entry from the loaded-resource registry.- Parameters:
dsName- the DataSource's ID
-
unregisterLoadedProject
Remove aProjectfrom the loaded-resource registry, along with all of its screens and DataSources. Called automatically byProject.destroy().- Parameters:
project- the Project to remove
-
unregisterLoadedScreen
Remove a screen from the loaded-resource registry. Called automatically when a registered screen Canvas is destroyed (via an observation ofCanvas.destroy()).- Parameters:
canvas- the screen's top-level Canvas instance
-
setDefaultProperties
Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
- Parameters:
reifyProperties- properties that should be used as new defaults when instances of this class are created- See Also:
-
getOrCreateJsObj
- Overrides:
getOrCreateJsObjin classBaseWidget
-
onInit
protected void onInit() -
setLogicalStructure
Setter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility. -
getLogicalStructure
Getter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.- Specified by:
getLogicalStructurein interfaceLogicalStructure- Overrides:
getLogicalStructurein classVLayout
-