Skip to Content
author's profile photo Former Member
Former Member

webdynpro WD API

Doing programming in webdynpro need a lots of WD_xxx

where can i find this WD API

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:22 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member
      // ---------------------------------------------------------------------------
      // This file has been generated by the Web Dynpro Code Generator.
      // DO NOT MODIFY! CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
      // ---------------------------------------------------------------------------
      package com.sap.tc.webdynpro.tutorials.viewcomposition.maincomp.wdp;
      
      import com.sap.tc.webdynpro.progmodel.api.*;
      import com.sap.tc.webdynpro.progmodel.gci.*;
      import com.sap.tc.webdynpro.progmodel.context.*;
      import com.sap.tc.webdynpro.services.exceptions.WDRuntimeException;
      
      /** Interface that is provided to application class. */
      
      public interface IPrivateCompControlView {
      
        /*
         * Event Handler identifiers.
         */ 
          
        /** Event handler constant. */
        public static IWDEventHandlerId WD_EVENTHANDLER_ON_ACTION_DISPLAY_RIGHT_IMAGE_COMP_INSTANCE = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIEventHandlerId("onActionDisplayRightImageCompInstance", "CompControlView", "com.sap.tc.webdynpro.tutorials.viewcomposition.maincomp.MainComp");
        
        /** Event handler constant. */
        public static IWDEventHandlerId WD_EVENTHANDLER_ON_ACTION_DELETE_LEFT_COMP_INSTANCE = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIEventHandlerId("onActionDeleteLeftCompInstance", "CompControlView", "com.sap.tc.webdynpro.tutorials.viewcomposition.maincomp.MainComp");
        
        /** Event handler constant. */
        public static IWDEventHandlerId WD_EVENTHANDLER_ON_ACTION_LEAVE_RIGHT_COMP_INTERFACE_VIEW = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIEventHandlerId("onActionLeaveRightCompInterfaceView", "CompControlView", "com.sap.tc.webdynpro.tutorials.viewcomposition.maincomp.MainComp");
        
        /** Event handler constant. */
        public static IWDEventHandlerId WD_EVENTHANDLER_ON_ACTION_CREATE_LEFT_IMAGE_COMPONENT_INSTANCE = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIEventHandlerId("onActionCreateLeftImageComponentInstance", "CompControlView", "com.sap.tc.webdynpro.tutorials.viewcomposition.maincomp.MainComp");
        
        /**
         * Provides access to the generic API of this controller.
         */
        IWDViewController wdGetAPI();
      
      
        /**
         * Interface for the node 'Context'.
         *
         * singleton = true, cardinality = _1_1, selection = _1_1
         */
        public static class IContextNode extends Node
        {
          private InternalCompControlView gen_delegate;
      
          IContextNode(InternalCompControlView delegate, IGCINodeInfo nodeInfo, Node parent) {
            super(nodeInfo, parent);
            gen_delegate = delegate;
          }
      
          protected com.sap.tc.webdynpro.progmodel.context.Node createNode(IGCINodeInfo nodeInfo, com.sap.tc.webdynpro.progmodel.context.Node parentNode, com.sap.tc.webdynpro.progmodel.context.NodeElement parentElement) {
            if (nodeInfo == gen_delegate.infoContext)
              return new IPrivateCompControlView.IContextNode(gen_delegate, nodeInfo, parentNode);
            return super.createNode(nodeInfo, parentNode, parentElement);
          }
      
          protected com.sap.tc.webdynpro.progmodel.context.NodeElement doCreateElement(IGCINodeInfo nodeInfo, Object reference) {
            if (nodeInfo == gen_delegate.infoContext) {
              return new IPrivateCompControlView.IContextElement(gen_delegate, nodeInfo);
            }
            return super.doCreateElement(nodeInfo, reference);
          }
      
          // ---- typed accessors --------------------------------------------------
      
          /**
           * Provides access to the generic context API as described by IWDContext.
           */
          public IWDContext wdGetAPI() {
            return getContext();
          }
      
          /**
           * Creates a new element for this node. The element is <b>not</b> bound 
           * to the node. Use {@link #bind(IContextElement)} or 
           * {@link IWDNode#bind(Collection)} to bind it or {@link IWDNode#addElement(IWDNodeElement)}
           * to add it to the node.
           * @return an element for this node
           */
          public IPrivateCompControlView.IContextElement createContextElement() {
            return (IPrivateCompControlView.IContextElement)createElement();
          }
      
          /**
           * Binds a single IContextElement to the node.
           * @param element a node element for this node
           */
          public void bind(IPrivateCompControlView.IContextElement element) {
            bind(element == null ? java.util.Collections.EMPTY_LIST : java.util.Collections.singletonList(element));
          }
      
          /** 
           * Returns the element at the lead selection.
           * @return the element at the lead selection or <code>null</code> if the
           *         lead selection is not set
           */
          public IPrivateCompControlView.IContextElement currentContextElement() {
            return (IPrivateCompControlView.IContextElement) getCurrentElement();
          }
      
          // ---- hooks ------------------------------------------------------------
      
          // ---- child nodes ------------------------------------------------------------
      
        }
      
        /**
         * Interface for the elements of the node Context.
         */
        public static class IContextElement extends com.sap.tc.webdynpro.progmodel.context.NodeElement
        {
          private InternalCompControlView gen_delegate;
      
          public IContextElement(InternalCompControlView delegate, com.sap.tc.webdynpro.progmodel.gci.IGCINodeInfo info) {
            super(info);
            gen_delegate = delegate;
          }
      
        }
      
        /**
         * Returns the context root node.
         * @return the context root node.
         */
        IContextNode wdGetContext();
      
        /** Fires outbound plug. */
        void wdFirePlugShowRightCompOut( java.lang.String name );
      
        /** Fires outbound plug. */
        void wdFirePlugShowLeftCompOut( java.lang.String name );
      
        /** Fires outbound plug. */
        void wdFirePlugShowEmptyView( );
      
        /** Declared event handler. */
        void onActionDisplayRightImageCompInstance(IWDCustomEvent wdEvent );
      
        /** Declared event handler. */
        void onActionDeleteLeftCompInstance(IWDCustomEvent wdEvent );
      
        /** Declared event handler. */
        void onActionLeaveRightCompInterfaceView(IWDCustomEvent wdEvent );
      
        /** Declared event handler. */
        void onActionCreateLeftImageComponentInstance(IWDCustomEvent wdEvent );
      
        /** Gets component usage. */
        IWDComponentUsage wdGetLeftImageCompInstComponentUsage();
      
        /** Gets action 'DisplayRightImageComponentInstance'. */
        IWDAction wdGetDisplayRightImageComponentInstanceAction();
      
        /** Gets action 'DeleteLeftCompInstance'. */
        IWDAction wdGetDeleteLeftCompInstanceAction();
      
        /** Gets action 'LeaveRightCompInterfaceView'. */
        IWDAction wdGetLeaveRightCompInterfaceViewAction();
      
        /** Gets action 'CreateLeftImageComponentInstance'. */
        IWDAction wdGetCreateLeftImageComponentInstanceAction();
      
        /** Enumeration of all available action event handlers. */
        public final class WDActionEventHandler extends com.sap.tc.webdynpro.progmodel.gci.GCIActionEventHandlerEnum
        {
          public static final WDActionEventHandler DISPLAY_RIGHT_IMAGE_COMPONENT_INSTANCE = new WDActionEventHandler("onActionDisplayRightImageCompInstance", true, NO_PARAMETERS);
          public static final WDActionEventHandler DELETE_LEFT_COMP_INSTANCE = new WDActionEventHandler("onActionDeleteLeftCompInstance", true, NO_PARAMETERS);
          public static final WDActionEventHandler LEAVE_RIGHT_COMP_INTERFACE_VIEW = new WDActionEventHandler("onActionLeaveRightCompInterfaceView", true, NO_PARAMETERS);
          public static final WDActionEventHandler CREATE_LEFT_IMAGE_COMPONENT_INSTANCE = new WDActionEventHandler("onActionCreateLeftImageComponentInstance", true, NO_PARAMETERS);
      
          private WDActionEventHandler(String value, boolean isValidating, Object[] declaredParameters) {
            super(value, isValidating, declaredParameters);
          }
        }
      
        /**
         * Creates a new action for this controller.
         * @param eventHandler is the action's event handler with an appropriate signature
         * @param text is the text displayed in the UI element triggering this action
         */
        IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);
      
        /**
         * Creates a new action with the given name for this controller.
         * @param eventHandler is the action's event handler with an appropriate signature
         * @param name is the action's name
         * @param text is the text displayed in the UI element triggering this action
         */
        IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);
      
      }
      
      

      i expecting some like this :

      everytime in IPrivatexxxView

      import com.sap.tc.webdynpro.progmodel.api.*;

      import com.sap.tc.webdynpro.progmodel.gci.*;

      import com.sap.tc.webdynpro.progmodel.context.*;

      import com.sap.tc.webdynpro.services.exceptions.WDRuntimeException;

      ....

      ....

      when i search in help cannot find this above api....

      pls help

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.