How to use these method of class CL_GUI_PDFVIEWER

how to use these methods in the class CL_GUI_PDFVIEWER
1) CREATE_ANNOTATION
2) GET_ANNOTATION_INFO
3) SET_ANNOTATION_SETTINGS

Hi,
   Refer
https://forums.sdn.sap.com/click.jspa?searchID=10926572&messageID=1803295
Regards
Kiran

Similar Messages

  • I don't  know how to use these methods. actionPerformed, additem, and remov

    cand any one help me to implement these actions.
    I want to be able to select item from the the list to the textarea by using the addit button.
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class Shopping extends Applet implements ActionListener, ItemListener
         private TextArea buy;
         private List foodList;
         private Button purches, remove;
         ItemList myitems;
         public void init(){          
              myitems = new ItemList();
              foodList = new List();
              foodList.add("Rice");
              foodList.add("Corn");
              foodList.add("Beans");
              foodList.add("Wheat");
              foodList.add("Banana");
              foodList.add("Bread");
              foodList.add("Meat");
              foodList.add("Fish");
              foodList.add("Nuts");
              foodList.add("Apple");
              foodList.add("may");
              foodList.add("salt");
              foodList.add("season");
              foodList.add("Beef");
              add(foodList);
              foodList.addItemListener(this);
              purches = new Button("Add IT");          
              add(purches);
              purches.addActionListener(this);
              remove = new Button("I don't want");
              add(remove);          
              remove.addActionListener(this);
              buy = new TextArea(10, 20);          
              add(buy);          
         public void itemStateChanged(ItemEvent e){
              if(e.getSource()==foodList){
                   String foodChoice = e.getItem().toString();
         public void actionPerformed(ActionEvent e){
              if(e.getSource()==purches);
              //myitems.addItem(items);
    class ItemList{
    String[] myList;
    private int count;
    public ItemList(){
    myList =new String[9];
    count=0;
    public int countList(){
    return count;
    public void addItem(String items){
    while(count < myList.length){
    myList[count++]=items;
    public void removeItem(String items){
    while(myList[count]!=null){
    if(myList[count].equals(items)){
    String discard = myList[--count];

    First of all the list does not produce any action event for a
    single click. It produces an action event for the double click.
    So you must use a choice list.
    for the list, the function used is actionPerformed(ActionEvent
    e)
    for the choice list , the function used is
    itemStateChanged(ItemEvent e)
    you must use a "\n" in the string to bring the item to the next
    line in the textarea.
    I am giving the full program below.
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class Shopping extends Applet implements ActionListener, ItemListener
    //my code here.
    String items=" ";
    //my code ends here.
    private TextArea buy;
    private Choice foodList;
    private Button purches, remove;
    ItemList myitems;
    public void init(){
    myitems = new ItemList();
    foodList = new Choice();
    foodList.add("Rice");
    foodList.add("Corn");
    foodList.add("Beans");
    foodList.add("Wheat");
    foodList.add("Banana");
    foodList.add("Bread");
    foodList.add("Meat");
    foodList.add("Fish");
    foodList.add("Nuts");
    foodList.add("Apple");
    foodList.add("may");
    foodList.add("salt");
    foodList.add("season");
    foodList.add("Beef");
    add(foodList);
    foodList.addItemListener(this);
    purches = new Button("Add IT");
    add(purches);
    purches.addActionListener(this);
    //my code
    //foodList.addActionListener(this);
    remove = new Button("I don't want");
    add(remove);
    remove.addActionListener(this);
    buy = new TextArea(10, 10);
    add(buy);
    public void itemStateChanged(ItemEvent e){
    //my code here.
         String s = ((Choice)e.getItemSelectable()).getSelectedItem();
         System.out.println(s);
         items=items+s+"\n"; //the \n is given so that the next item comes in the next line.
         buy.setText(items);
    //my code ends here.
    public void actionPerformed(ActionEvent e){
    //if(e.getSource()==purches);
    //myitems.addItem(items);
    String s=((List )e.getSource()).getSelectedItem();
    System.out.println(s);
    class ItemList{
    String[] myList;
    private int count;
    public ItemList(){
    myList =new String[9];
    count=0;
    public int countList(){
    return count;
    public void addItem(String items){
    while(count < myList.length){
    myList[count++]=items;
    public void removeItem(String items){
    while(myList[count]!=null){
    if(myList[count].equals(items)){
    String discard = myList[--count];

  • How to use a method in sequence diagram from a class diagram

    Hello, can someone tell me how to use the method from class diagram in sequence diagram? so far i only can add a classifier to the object lifeline but i still cannot add the method from the class...
    thx

    Now that Web Services is around, I'd look at possibly implement a Web Service call in your applet, which can then be given back any object(s) on return. Set up your server side to handle Web Service calls. In this way, you can break the applet out into an application should you want to (with very little work) and it will still function the same

  • How to use protected method of a class in application

    Hi,
      will u please tell me how to use protected method of class in application. (class:cl_gui_textcontrol, method:limit_text)
    Thanks in advance,
    Praba.

    Hi Prabha,
    You can set the maximum number of characters in a textedit control in the CREATE OBJECT statement itself.
    Just see the first parameter in the method . I mean MAX_NUMBER_CHARS. Just set that value to the required number.
    Eg:
    data: edit type ref to CL_GUI_TEXTEDIT.
    create object edit
      exporting
        MAX_NUMBER_CHARS       = 10
       STYLE                  = 0
       WORDWRAP_MODE          = WORDWRAP_AT_WINDOWBORDER
       WORDWRAP_POSITION      = -1
       WORDWRAP_TO_LINEBREAK_MODE = FALSE
       FILEDROP_MODE          = DROPFILE_EVENT_OFF
        parent                 = OBJ_CUSTOM_CONTAINER
       LIFETIME               =
       NAME                   =
      EXCEPTIONS
        ERROR_CNTL_CREATE      = 1
        ERROR_CNTL_INIT        = 2
        ERROR_CNTL_LINK        = 3
        ERROR_DP_CREATE        = 4
        GUI_TYPE_NOT_SUPPORTED = 5
        others                 = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    In this case, the max: number of characters will be set to 10.
    I hope your query is solved.
    Regards,
    SP.

  • How to use protected method in jsp code

    Could anyone tell me how to use protected method in jsp code ...
    I declare a Calendar class , and I want to use the isTimeSet method ,
    But if I write the code as follows ..
    ========================================================
    <%
    Calendar create_date = Calendar.getInstance();
    if (create_date.isTimeSet) System.out.println("true");
    %>
    ============================================================
    when I run this jsp , it appears the error wirtten "isTimeSet has protected access in java.util.Calendar"

    The only way to access a protected variable is to subclass.
    MyCalendar extends Calendar
    but I doubt you need to do this. If you only want to tell if a Calendar object has a time associated with it, try using
    cal.isSet( Calendar.HOUR );

  • How to use addPasswordToPasswordHistory method

    Hi
    Can some one please tell me how to use the method addPasswordToPasswordHistory from the class WSUser.I have a requirement to add user password to password history whenever user changes his password through my custom password change workflow.Custom workflow changes the password in idm but it will not add the previous password to the password history.
    It will be helpfull if you paste the code to use this method
    Regards
    Karthik P

    Hi Amar
    Thanks for the reply
    I tried setting the password through setPassword method but its giving an exception ==>java.lang.NoSuchMethodException: java.lang.String.setPassword(com..waveset.util.EncrypteData)
    Then I decrypted the password but no luck getting ==>java.lang.NoSuchMethodException: java.lang.String.setPassword() exception.
    Am i missing something here.do i need to pass the encrypted password in byte array format? if yes how to do that.
    Here encrypted password is coming from a form.
    regards
    karthik p
    .

  • How to use " toFront() " method in java application and in which package or

    How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.

    The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
    To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".

  • How to use getTaskId() method in xpress language.

    how to use getTaskId() method in xpress language.
    Edited by: negiqueries on Jan 19, 2009 10:37 PM

    The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
    To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".

  • How to use  Aggregations Method generated by WIZARD

    Hi All,
              I used ABAP wizard to develop I report.
    This wizard generated one class and method as below
      zcl_bt_alv_template=>factory(
                     exporting  im_syrepid = sy-repid
                                im_lheader = gv_title
                                im_allowls = abap_true  " Allow layout save
                     importing  ex_alvo    = r_alv_template
                     changing   ch_datatab = it_efficiency ).
    Inside this Factory Method there is one method for aggregations.
      ex_alvo->r_aggregations = ex_alvo->r_table->get_aggregations( ).
    How to use this Method for getting aggregations for some fields.
    Thanks,
    Prasad.

    Hi Patel,
                   I am getting DUMP for this.
    Its saying Access via 'NULL' object reference not possible.
    Patel when I am double clicking the 
    aggregation = if_salv_c_aggregation=>total
    This if_salv_c_aggregation is not having any methods.
    So may be the dump is coming.
    The dump is
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "R_AGGREGATIONS").
    Thanks,
    Prasad.
    Edited by: Dheeru Prasad on Aug 6, 2009 3:36 PM
    Edited by: Dheeru Prasad on Aug 6, 2009 3:39 PM
    Edited by: Dheeru Prasad on Aug 6, 2009 3:40 PM

  • Can any one suggest me how to use drawPixels method for 40 series devices

    Hello!
    I am using drawPixels method of DirectGraphics class the code I have written is :-
    Image offscreen=DirectUtils.createImage(width,height,0x00000000);// width and heights are integer value
    public final int MODEL=DirectGraphics.TYPE_INT_8888_ARGB ;
    Graphics offgra = offscreen.getGraphics();
    DirectGraphics directgraphics = DirectUtils.getDirectGraphics(offgra);
    directgraphics.drawPixels(imgData,false,0,width,0,0,width,height,0,MODEL); // imgData is a int array(int imgData[]) which contains required pixels of image.
    The above code is working fine with NOKIA 60 series device but when i use it with NOKIA 40 series device it gives java.lang.IllegalArgumentException.
    same time if i use :-
    directgraphics.drawPixels(imgData,false,0,width,0,0,width,height,0,DirectGraphics .TYPE_USHORT_4444_ARGB ) ;
    // imgData is a short array(short imgData[]) which contains required pixels of image. i have used different formet here.
    it works fine with 40 series device,
    can any one suggest me how to use drawPixels method for 40 series devices with format
    DirectGraphics .TYPE_INT_8888_ARGB .

    If Remote wipe is activated it can't be undone. And Once the Wipe is done, the device can nö longer be tracked.
    Sorry.

  • How to use these function modules

    Hi all,
    can anyone help that how to use these Function modules to update the status of a task, what are all the inputs i required to proceed
    1. FC_USER_AUTHORITY_CHECK
    <b>2. FC_USER_STATUS_CHECK
    3. FC_USER_STATUS_UPDATE</b>
    4. FC_USER_GET_CACTI
    5. FC_USER_CHECK_FOR_OUTPUT
    Thanks in Advance
    Ganesh

    Hi Rob,
    thanks for ur reply,
    but they are not clear what they are meant to be, I understood there are some flags needed to run the Function Modules 2 & 3 which are in bold...
    but how do i populate them.. i am not getting that..
    thanks
    ganesh

  • How to use the method for field-exit to trigger the workflow?

    Dear all,
         I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
         I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
        Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
    Thanks and regards,
    S.Suresh

    Hi
    You want to place your method which is defined for particular filed.right?
    For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI.  So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
    Regards,
    Hemalatha.

  • How to use the method "getChildrenRemoved()" declared in ElementChange?

    How to use the method "getChildrenRemoved()" declared in DocumentEvent.ElementChange?

    I have tried to use it,but the code below alway say "Yes"....
    I really have no ideas about why ec is always a null.
    public void removeUpdate(DocumentEvent ee) {
           DocumentEvent.ElementChange ec = ee.getChange(doc.getDefaultRootElement());
           if(ec == null)
              System.out.println("Yes");
                     }

  • How to use secondary method in workflow?

    Hi friends,
    can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
    thanks and regards,
    Arun.S

    Hi Arun Kumar,
    The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
    For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
    In order to execute a method along with user decision step execution use secondary methods (amodal call.)
    Let me know if you have any queries.
    Regards,
    Raj

  • How to use this method in JSTL?help me please!

    I know I can use "<C:set >" like as
    <c:set var="clabel3" value="${portalCustomizeBean.portalPage}"/> ,
    but now I want to use one method of portalCustomizeBean object not a attribute of it !!!!!
    who would tell me how to use?
    this is wrong in my code:
    <c:set var="clabel" value="${portalCustomizeBean.currentPageLabel}"/>
    <c:set var="clabel3" value="${portalCustomizeBean.toEntitiesExceptSpaceEscape(clabel)}"/>
    but how to use "toEntitiesExceptSpaceEscape" method in JSTL?????

    Why can't you just assign the method's return value to a variable and then print that? A bit of scriptlet code will do the trick. (As much as we all hate to use scriptlet code.)
    I believe you'll be able to do what you want in the 1.1 standard JSTL, but for now this will suffice. - MOD

Maybe you are looking for

  • Error 1334 (in LabVIEW Run-Time Engine 7.1.1 setup) when launching VB6's IDE

    What's going on here?  I have LabVIEW 7.0 and Visual Basic 6 installed on this Win-XP computer.  When I open VB6, I always get what looks like a Windows Installer error: First, it asked me for the location of "lvruntimeeng.msi", which I located for i

  • Photo Booth Not Opening for iSight

    I just got my Macbook. Photobooth will not open, nor will Preview. I haven't tried a few other programs (Comic Life, etc.), but I'm mainly concerned about Photo Booth and Preview. I wanna see my **** pdf's and take pictures with my iSight :c The came

  • VOFM  rounding issue need to perform calculations till only 2 decimals

    Hello  All, In Sales order the price calculations are  being performed till 4 decimal places but we want to restrict till 2 decimal only .  Providing example Suppose Price  is  2 USD .   Add 4.6%  for adjustment ,  this will become  2.092  ( for qty

  • THIS SUCKS!!! Re:Multiple paths in FILE_DATASTORE path attribute

    After 6 hours of struggle I managed to solve my problem. Everything was due to a stupid mistake (or incomplete documentation of intermediaText) on Oracle's part: 1. Pasted from Oracle8i interMedia Text Reference - Datastore Objects: You can specify m

  • LO cockpit extraction differnce between 2LIS_11_VAHDR     2LIS_11_VASTH

    Hi All I have a doubt reg LO cockpit extraction(LBWE) 1. The SD extractors like    2LIS_11_VAHDR     Sales document header    2LIS_11_VAITM     Sales document item    2LIS_11_VASCL    Sales document schedule line    2LIS_11_V_ITM  Allocation of order