Creating a button through a class... H E L P

Can any on ehelp me...
I need to make a class, so that i in my JSP-file can create multiple buttons with different names..
Something like this:
package form;
import java.awt.*;
import java.applet.*;
public class knap1 extends Applet
     public knap1()
          Button Knap = new Button("Knap");
          add(Knap);
I'm pretty new at this, so can any one help me...
Martin

You'r right...
The only thing i want is to have a set of different classes, that makes different form tag's by sending information to them..
fx. TextField("the_name", "size","max_length")
NumField("the_name", "size","max_length")
and so on....
Can you help from here....

Similar Messages

  • Create submit button through extension

    hi guys i have a requirement to create a new button on oaf page.i am extending controller and writing below code.but there is no button displaying on page.plz help me.am using jdev 9i and oracle ebs 11i.
       OASubmitButtonBean oasb= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
        oasb.setID("AssetDetails");
        oasb.setUINodeName("AssetDetails");
        oasb.setEvent("AssetDetails");
        oasb.setText("AssetDetails");
        webBean.addIndexedChild(oasb);
    Note:region type is defaultDobuleColumn where i am trying to add button.
    Please Please help me

    1)
    first of all you need to find the parent bean (defaultDobuleColumn)
    something like this :
      parentWebBean =  webBean.findChildRecursive("Name of the Parent Object");
    and then parentWebBean.addIndexedChild(oasb);
    2) At the same time you can add the submit button using personalization.

  • Need to create a button through personalization

    Hi
    I have an oracle seeded page where in one region i need to add a button thru personalization.I followed this steps:
    1. I went that region and personalized that region.
    2. Clicked on the Crete Item and selected item type as button.
    3. Here what all fields need to filled in order to properly work.
    I have an extended controller for aoracller seeded controller.When i press on this button the logic written in the extended controller should work.Can you please provide any solution for the same?
    Thanks
    Preeti

    Hi Preeti,
    Instead of creating button using personalization, crearte the button programatically in extended controller, and attach an event to this if it is not submit button.
    In PFR you can handle this button easily, using personalization if you will create button then you have to attach an event to this extended controller and then you need to handle the event for this So I think creating button programatically is simple than attaching an event to it.
    Regards,
    Reetesh Sharma

  • Creat New Button through Web Pl/Sql

    Hi,
    I have 2 Queries:
    First:How i can remove the default buttons which appear on the
    Form after i complete the Successful Generation of Web Pl/Sql?
    Second:How i can create my own Button object and place it on
    screen,bcz by default this buttons dosn't appear at all on
    screen.
    Thanx.
    Pritam

    New to Oracle and your nick says OCP? High hopes perhaps? ;-)
    The answer here is pretty complex (dealing with mod_plsql document table, processing CLOBs, using options such as external tables, writing your own tokeniser and CSV parser, etc).
    I'll be happy to touch on these.. but maybe you will find a lot more joy, a lot less frustration, in using APEX instead. See http://apex.oracle.com for details.

  • Create Submit button programatically

    Hi,
    Can some body help me with creation of submit button programatically.under page button bar region(Existing region on page)
    Thanks

    Hi,
    Please refer http://apps2fusion.com/apps/oa-framework/214-sample-code-add-submit-button-using-oa-framework-extension
    before adding button to pagebutton bar first get handle to page button bar region, then create submit button through code and then add it to page button bar.
    Regards,
    Reetesh Sharma

  • Creating a Button Class from MC

    I have a few simple questions for those who know about
    classes. I have been reading the tutorials on creating classes and
    specifically extending the MC class. I am pretty sure that an
    extended MC_Class might help me get what I need from my project.
    I essentially have a bunch of buttons, hundreds to be exact -
    and the exact number needs to be dynamic. Each one is currently a
    static MC with a bunch of variables assigned to each one via global
    variables. Its iis pulling in data taht assign the button values
    from XML files and - these XML files may change.
    Q1. If I extend the MC class so I can add attributes to MC's
    instance (Avoiding global variables) - will it mess with the rest
    of the movie clips in my scene? I mean if all I want to do is ad a
    a few dynamic string variables - it really shouldnt effect any of
    the other clips would it? MC.JumpURL = "newurl.com", MC.Thumnail
    ="/here/image.jpg" (This would help alot)
    Q2. What if I wanted to define actions of the new MC in the
    class? If the MC is an extension of the MC class. Would all of my
    MC's automatically take on the actions of the custom MC Class? For
    instance - I want the movieclip to animate onscreen and have
    rollover effects. I could do this easy if it were static - but I
    need this to become dynamic. Also - there are now unknown
    quantities to deal with
    Q3. How exactly would I call and assign the MC its atributes
    at the same time? And how do I specify this MC to use the functions
    defined in the class and not the other MC's I created elsewhere in
    the File.
    Example. Currently I have a grid of MCs' created when the
    User clicks a menu item (Another type of MC).
    Each new MC animates onstage - it calls a
    loadMovie(_root.thumb[0], this.Flipper) to assign and embedded MC
    an image defined in the XML that was loaded and assigned because I
    placed the instance on stage and wrote a MC script on each MC.
    Confused - check out what I am creating at
    www.vincesidwell.com/Fischer
    Click Fabrication or TurboSystems menus. Both menues will
    load a new set of Thumbnails at the bottom. They are loaded via an
    XML loaded by the menu and a function assigns the jpgs for the main
    gallery, Rollover image, and eventually a URL for a downloadable
    High Res Image.
    The client recently added more than 9 images per menu item. I
    will need to create a scrollable thumbnail gallery with dynamic
    quantities
    I can manually create the MC Scroller item for static number
    of buttons. But scripting an unknown for each ones links and images
    is insane. So I am looking at Classes. Assign a custom class for
    the flipping buttons and I should be able to assign tthem as the
    XML loads, and have it automatic. (pray please please please)
    Anyhelp?
    Thanks
    Vince Sidwell

    Hi there!
    I'll try and give some answers to your questions below...
    "vin-E" <[email protected]> wrote in message
    news:[email protected]...
    >I have a few simple questions for those who know about
    classes. I have
    >been
    > reading the tutorials on creating classes and
    specifically extending the
    > MC
    > class. I am pretty sure that an extended MC_Class might
    help me get what
    > I
    > need from my project.
    >
    > I essentially have a bunch of buttons, hundreds to be
    exact - and the
    > exact
    > number needs to be dynamic. Each one is currently a
    static MC with a
    > bunch of
    > variables assigned to each one via global variables. Its
    iis pulling
    > in
    > data taht assign the button values from XML files and -
    these XML files
    > may
    > change.
    >
    > Q1. If I extend the MC class so I can add attributes to
    MC's instance
    > (Avoiding global variables) - will it mess with the rest
    of the movie
    > clips in
    > my scene? I mean if all I want to do is ad a a few
    dynamic string
    > variables -
    > it really shouldnt effect any of the other clips would
    it? MC.JumpURL =
    > "newurl.com", MC.Thumnail ="/here/image.jpg" (This would
    help alot)
    You do not have to create a new MC class to assign local
    values or functions
    to it. A pseudo code example:
    Loop through total buttons you want to make (which can be
    number of entries
    in an XML file)
    Create a new movieclip and load the button graphic into
    this, give it a
    name like
    MyButtonX, where X is an increasing number based on which
    button this
    is. (Instead of creating
    and empty movielcip, you could also attach a movie (or
    button) from
    library.
    Assign the values and create the functions for this button
    that you
    would like (probably based
    on information in the XML file):
    MyButtonX.someVariable = node.attribues.someData;
    createOnRelease(MyButtonX, someOtherParamters)
    (where you have defined the function createOnRelease to do
    something
    like
    function createOnRelease(MC, someOtherParameteres) {
    MC.onRelease = function() {
    do what you want to do based on someOtherParameteres
    Position and resize MyButtonX
    In your example you have a 3x3 grid, which might extend to
    3xTOTAL,
    so you'd have to use some
    mathematical formula based on the value X, something like
    MyButtonX._x =
    (((X-1)%3)*(buttonWidths+hSpaceBetweenButtons)
    MyButtonY._y = Math.floor((X-1)/3)*(buttonHeights
    +vSpaceBetweenButtons
    end of loop.
    >
    > Q2. What if I wanted to define actions of the new MC in
    the class? If
    > the MC
    > is an extension of the MC class. Would all of my MC's
    automatically take
    > on
    > the actions of the custom MC Class? For instance - I
    want the movieclip
    > to
    > animate onscreen and have rollover effects. I could do
    this easy if it
    > were
    > static - but I need this to become dynamic. Also - there
    are now unknown
    > quantities to deal with
    If you actually create a new class, than all instances of
    that class will
    have the methods you define for it (just like all instances
    of a movieclip
    has those methods. At least, have them available. That
    doesn't mean they are
    always in use ... like for example the onRollOver. But again,
    you don't need
    to create a class to give all your dynamically created
    buttons a rollover
    effect. (Check code above).
    > Q3. How exactly would I call and assign the MC its
    atributes at the same
    > time? And how do I specify this MC to use the functions
    defined in the
    > class
    > and not the other MC's I created elsewhere in the File.
    You use the instance name of the MC to access that MC and its
    attributes/methods. For example button number 10 might look
    like this:
    trace(MyButton10._x);
    trace(MyButton10.someVariableYouHaveDefined);
    MyButton10.callSomeFunctionYouHaveDefined();
    For a movieclip to access a variable that has been defined
    for that instance
    of the movieclip, use "this" to point to that particular
    instance. So if we
    defined the function "callSomeFunctionYouHaveDefined" for
    button number 10
    and want to access "someVariableYouHaveDefined" for this
    particular
    instance, then
    MyButton10.callSomeFunctionYouHaveDefined = function() {
    trace(this.someVariableYouHaveDefined);
    > Example. Currently I have a grid of MCs' created when
    the User clicks a
    > menu
    > item (Another type of MC).
    > Each new MC animates onstage - it calls a
    loadMovie(_root.thumb[0],
    > this.Flipper) to assign and embedded MC an image defined
    in the XML that
    > was
    > loaded and assigned because I placed the instance on
    stage and wrote a MC
    > script on each MC.
    >
    > Confused - check out what I am creating at
    www.vincesidwell.com/Fischer
    >
    > Click Fabrication or TurboSystems menus. Both menues
    will load a new set
    > of
    > Thumbnails at the bottom. They are loaded via an XML
    loaded by the menu
    > and a
    > function assigns the jpgs for the main gallery, Rollover
    image, and
    > eventually
    > a URL for a downloadable High Res Image.
    >
    > The client recently added more than 9 images per menu
    item. I will need
    > to
    > create a scrollable thumbnail gallery with dynamic
    quantities
    >
    > I can manually create the MC Scroller item for static
    number of buttons.
    > But
    > scripting an unknown for each ones links and images is
    insane. So I am
    > looking
    > at Classes. Assign a custom class for the flipping
    buttons and I should
    > be
    > able to assign tthem as the XML loads, and have it
    automatic. (pray please
    > please please)
    Again, no need for a class for this. If you load the buttons
    into seperate
    MCs, and make sure to have all these MCs created inside a
    common parent MC
    for these buttons (which then _only_ contains these buttons).
    You can move
    this parent MC up and down on the stage based on the
    scrollbar. And you can
    read height off this MC to create your scrollbar.
    You might want to check out the following tutorials at
    http://www.gotoandlearn.com/:
    XML Video Playlist
    Creating Animated Buttons
    Introduction to OOP
    Now, I've said many times you don't need to make your own
    class to do what
    you want. That does not mean you can't make your own class. I
    just think
    that the main problem you are facing is the dynamic part,
    which you will be
    facing if you make your own class or not.
    /Jensen/
    >
    > Anyhelp?
    >
    > Thanks
    > Vince Sidwell
    >
    >
    >

  • Create Attachment in workflow through ABAP Class in ECC 5.0

    Hi,
    Wr are using SAP ECC 5.0 and i am trying to create attachment through ABAP class.
    Here in ECC 5.0, macro INCLUDE cntn01_swc is not available.
    I am getting an error in declaration of SOFM object, because again SWC0_OBJECT is not available.
    I've tried creating the parameter as type SOFM and of type table of SOFM but it also not working.
    Can anybody help me how i can create SOFM instance in ABAP class in ECC 5.0?
    Regards,
    Smit

    Hi
    I am not very much sure about ECC 5.0 environment. Firstly are you looking to create a SOFM object inside any class or program or Function module , If yes then you need to include a include INCLUDE CNTN01_SWC (No arrow brackets) if this include is not available then use INCLUDE<CNTN01>  then declare a variable of type SWC0_OBJECT if you are using first include or declare of type SWC_OBJECT.
    Once you include any of the includes then by making use of SWC macros you can create a object
    SWC0_CREATE_OBJECT <VARAIBLE> <BOR NAME> <BORKEY> for first include.
    SWC_CREATE_OBJECT <VARAIBLE> <BOR NAME> <BORKEY> for second include.
    Regards
    Pavan

  • Creating a button that flips back and forth on iPad in InDesign through DPS

    How do I create a button that flips back and forth on iPad in InDesign through DPS. I saw it on a food magzine on an ipad ... it's just a circle with text it in, when you click it the whole circle flips to the other side and there is a different color with different text. The circle does not change position, it just flips. Again, I want to do this so it shows up on the ipad through DPS.
    Thanks,
    Jay

    You need to create a Web overlay. There's an HTML example you can download and repurpose in this article:
    http://blogs.adobe.com/indesigndocs/2013/02/dps-tips-html5-examples.html

  • Button class not creating a button

    Hi,
    I have some AS3 code which I was hoping would create a
    re-usable button class but it does not. I just get a blank canvas.
    I am not getting any errors. Code is attached. Anyone see what is
    wrong?

    thanks for the response.
    to instantiate this class with the var code that you posted
    and I reposted. Would this code be added to the .as file or would I
    put that on frame 1 of the .fla file?
    Also I want to create multiple buttons and position them on a
    page within a grid. With the class code I have posted, how would I
    go about doing that? Lastly, I want one of two movie clips to
    display once the button is clicked. Can someone explain how I would
    go about that as well?
    thanks

  • Creating a triangle using polygon class problem, URGENT??

    Hi i am creating a triangle using polygon class which will eventually be used in a game where by a user clicks on the screen and triangles appear.
    class MainWindow extends Frame
         private Polygon[] m_polyTriangleArr;
                       MainWindow()
                              m_nTrianglesToDraw = 0;
             m_nTrianglesDrawn = 0;
                             m_polyTriangleArr = new Polygon[15];
                             addMouseListener(new MouseCatcher() );
            setVisible(true);
                         class MouseCatcher extends MouseAdapter
                             public void mousePressed(MouseEvent evt)
                  Point ptMouse = new Point();
                  ptMouse = evt.getPoint();
                if(m_nTrianglesDrawn < m_nTrianglesToDraw)
                                int npoints = 3;
                        m_polyTriangleArr[m_nTrianglesDrawn]
                      = new Polygon( ptMouse[].x, ptMouse[].y, npoints);
    }When i compile my code i get the following error message:
    Class Expected
    ')' expectedThe two error messages are refering to the section new Polygon(....)
    line. Please help

    Cannot find symbol constructor Polygon(int, int, int)
    Can some one tell me where this needs to go and what i should generally
    look like pleaseI don't think it is a good idea to try and add the constructor that the compiler
    can't find. Instead you should use the constructor that already exists
    in the Polygon class: ie the one that looks like Polygon(int[], int[], int).
    But this requires you to pass two int arrays and not two ints as you
    are doing at the moment. As you have seen, evt.getPoint() only supplies
    you with a single pair of ints: the x- and y-coordinates of where the mouse
    button was pressed.
    And this is the root of the problem. To draw a triangle you need three
    points. From these three points you can build up two arrays: one containing
    the x-coordinates and one containing the y-coordinates. It is these two
    arrays that will be used as the first two arguments to the Polygon constructor.
    So your task is to figure out how you can respond to mouse presses
    correctly, and only try and add a new triangle when you have all three of its
    vertices.
    [Edit] This assumes that you expect the user to specify all three vertices of the
    triangle. If this isn't the case, say what you do expect.

  • How can i create a button with richText display instead of label

    Hi All,
    I'm trying to create a button that will look exactly as the regular spark button but will have more than one color in his label (Like attached 'buttonPic.jpg')
    I have tried to create a new button skin and new button component that will replace the label text and will to the job, but still it looks like the button original class overides the richText definitions. (Code attached)
    Maybe there is other solution?
    This is my extra code in the MyButtonSkin
         <!-- layer 8: text -->
        <!---
        @copy spark.components.supportClasses.ButtonBase#labelDisplay
        -->
        <s:Label id="labelDisplay"
                 visible="false">
        </s:Label>
        <s:RichText id="exLabelDisplay"
                    color="0x900000"
                    textFlow="{TextConverter.importToFlow(htmlTextAsHTML, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                    left="7" right="7" top="2" bottom="2">
        </s:RichText>
        <fx:Declarations>
            <fx:String id="htmlTextAsHTML"><![CDATA[<p><b>0</b>+</p>]]></fx:String>
        </fx:Declarations>

    Hi mewk,
    probably it was a catch due to eyes that actually got a bit of sleep
    anyway small test app
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
    <fx:Script>
    <![CDATA[
    protected function updateBtn_clickHandler(event:MouseEvent):void
    richbtn.label=mytext.text;
    ]]>
    </fx:Script>
    <s:Button id="richbtn" x="69" y="58" width="169" height="83" skinClass="ButtonSkin1" label="&lt;p&gt;hello&lt;/p&gt;&lt;p&gt;goodbye&lt;/p&gt;"/>
    <s:Button x="70" y="333" label="Update rich button" id="updateBtn" click="updateBtn_clickHandler(event)"/>
    <s:TextArea x="69" y="174" id="mytext" text="&lt;p&gt;hello&lt;/p&gt;&lt;p&gt;&lt;b&gt;bold&lt;/b&gt;&lt;/p&gt;"/>
    </s:Application>
    and a skin with minimal change
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:fb="http://ns.adobe.com/flashbuilder/2009" minWidth="21" minHeight="21" alpha.disabled="0.5">
        <fx:Metadata>
            <![CDATA[
            [HostComponent("spark.components.Button")]
            ]]>
        </fx:Metadata>
        <fx:Script fb:purpose="styling">
            <![CDATA[        
    import flashx.textLayout.conversion.TextConverter;
                static private const exclusions:Array = ["labelDisplay"];
    override public function get colorizeExclusions():Array {return exclusions;}
              override protected function initializationComplete():void
                    useBaseColor = true;
                    super.initializationComplete();
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
                    var cr:Number = getStyle("cornerRadius");
                    if (cornerRadius != cr)
                        cornerRadius = cr;
                        shadow.radiusX = cornerRadius;
                        fill.radiusX = cornerRadius;
                        lowlight.radiusX = cornerRadius;
                        highlight.radiusX = cornerRadius;
                        border.radiusX = cornerRadius;
                    if (highlightStroke) highlightStroke.radiusX = cornerRadius;
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
                private var cornerRadius:Number = 2;
            ]]>       
        </fx:Script>
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="disabled" />
        </s:states>
        <!-- layer 1: shadow -->
        <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0x000000"
                                     color.down="0xFFFFFF"
                                     alpha="0.01"
                                     alpha.down="0" />
                    <s:GradientEntry color="0x000000"
                                     color.down="0xFFFFFF"
                                     alpha="0.07"
                                     alpha.down="0.5" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
        <!-- layer 2: fill -->
        <s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0xFFFFFF"
                                     color.over="0xBBBDBD"
                                     color.down="0xAAAAAA"
                                     alpha="0.85" />
                    <s:GradientEntry color="0xD8D8D8"
                                     color.over="0x9FA0A1"
                                     color.down="0x929496"
                                     alpha="0.85" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
        <!-- layer 3: fill lowlight -->
        <s:Rect id="lowlight" left="1" right="1" bottom="1" height="9" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0x000000" alpha="0.0099" />
                    <s:GradientEntry color="0x000000" alpha="0.0627" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
        <!-- layer 4: fill highlight -->
        <s:Rect id="highlight" left="1" right="1" top="1" height="9" radiusX="2">
            <s:fill>
                <s:SolidColor color="0xFFFFFF"
                              alpha="0.33"
                              alpha.over="0.22"
                              alpha.down="0.12" />
            </s:fill>
        </s:Rect>
        <!-- layer 5: highlight stroke (all states except down) -->
        <s:Rect id="highlightStroke" left="1" right="1" top="1" bottom="1" radiusX="2" excludeFrom="down">
            <s:stroke>
                <s:LinearGradientStroke rotation="90" weight="1">
                    <s:GradientEntry color="0xFFFFFF" alpha.over="0.22" />
                    <s:GradientEntry color="0xD8D8D8" alpha.over="0.22" />
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Rect>
        <!-- layer 6: highlight stroke (down state only) -->
        <s:Rect left="1" top="1" bottom="1" width="1" includeIn="down">
            <s:fill>
                <s:SolidColor color="0x000000" alpha="0.07" />
            </s:fill>
        </s:Rect>
        <s:Rect right="1" top="1" bottom="1" width="1" includeIn="down">
            <s:fill>
                <s:SolidColor color="0x000000" alpha="0.07" />
            </s:fill>
        </s:Rect>
        <s:Rect left="2" top="1" right="2" height="1" includeIn="down">
            <s:fill>
                <s:SolidColor color="0x000000" alpha="0.25" />
            </s:fill>
        </s:Rect>
        <s:Rect left="1" top="2" right="1" height="1" includeIn="down">
            <s:fill>
                <s:SolidColor color="0x000000" alpha="0.09" />
            </s:fill>
        </s:Rect>
        <!-- layer 7: border - put on top of the fill so it doesn't disappear when scale is less than 1 -->
        <s:Rect id="border" left="0" right="0" top="0" bottom="0" width="69" height="20" radiusX="2">
            <s:stroke>
                <s:LinearGradientStroke rotation="90" weight="1">
                    <s:GradientEntry color="0x000000"
                                     alpha="0.5625"
                                     alpha.down="0.6375" />
                    <s:GradientEntry color="0x000000"
                                     alpha="0.75"
                                     alpha.down="0.85" />
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Rect>
        <!-- layer 8: text -->
    <s:RichText id="LabelDisplay"
    color="0x900000"
    textFlow="{TextConverter.importToFlow(hostComponent.label, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
    left="7" right="7" top="2" bottom="2">
    </s:RichText>   
    </s:SparkSkin>

  • Creat transaction (se93) for Globa class in ABAP Objects

    Hi experts,
           Can any one tell me how to
    creat transaction (se93) for Globa class(se24)  in ABAP Objects
    if ,please assest me how to do it or send me example docu on this
    best Answer will be rewarded
    regards
    fareedas

    hi
    se93->give your transaction ->enter create.
    check the radio button (Method of calss(OO class).press enter.
    in next screen.
    transaction text ;give your own description
    tick the check box OO transaction model.
    give the class name method name which u have created in se 24.which was activated successfully.it should be activated otherwise it will not work.
    under GUI SUPPORT.
    TICK the all 3 check boxes.
    SAP GUI  FOR HTML
                            JAVA
                           WINDOWS.
    then save.
    u should b saved in package(don't forget).
    it was working.
    i have already checked and did it succesfully.
    reward points
    if u have any queries let me know.
    kiran jagana

  • Re: How do you create and use "common" type classes?

    Hi,
    You have 2 potential solutions in your case :
    1- Sub-class TextNullable class of Framework and add your methods in the
    sub-class.
    This is the way Domain class work. Only Nullable classes are sub-classable.
    This is usefull for Data Dictionary.
    The code will be located in any partition that uses or references the supplier
    plan.
    2- Put your add on code on a specific class and instanciate it in your user
    classes (client or server).
    You could also use interface for a better conception if needed. The code will
    also be in any partition that uses or references the supplier plan where your
    add on class is located.
    If you don't want that code to be on each partition, you could use libraries :
    configure as library the utility plan where is your add-on class.
    You can find an example of the second case (using a QuickSort class,
    GenericArray add-on) with the "QuickSort & List" sample on my personal site
    http://perso.club-internet.fr/dnguyen/
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    Robinson, Richard a &eacute;crit:
    I'm relatively new to forte and I'd like to know how can you handle utility
    type classes that you want to use through out your application? Ideally
    what I want is a static class with static methods.
    Let's say that I have a StringUtil class that has a bunch of methods for
    manipulating strings.
    My problem is that we have code that runs on the client and code that runs
    on the server. Both areas could use the StringUtil class, but from what I
    understand, I have to create StringUtil in a plan and then create a server
    object of type StringUtil. The server object will eventually get assigned
    to a partition. That's not good since I really want the server object to
    physically reside at the server end and at the client end. (Actually, I
    don't want a server object, I just want to invoke a static method of a
    static class).
    Any clues on how to solve this problem would be appreciated.
    Also, what is the url at Sage-it that has a summary of all emails that have
    been posted to [email protected]? Perhaps this question has been
    answered previously.
    Thanks in advance
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Richard,
    Your question about "utility classes" brings up a number of issues, all of
    which are important to long-term success with Forte.
    There is no such thing as a static method (method that is associated with a
    class but without an implicit object reference - this/self/me "pointer") in
    TOOL, nor is there such thing as a global method (method not associated
    with a class at all). This is in contrast to C++, which has both, and
    Java, which has static methods, but not global classes. Frequently, Forte
    developers will write code like this:
    result, num : double;
    // get initial value for num....
    tmpDoubleData : DoubleData = new;
    tmpDoubleData.DoubleValue = num;
    result = tmpDoubleData.Sqrt().DoubleValue;
    tmpDoubleData = NIL; // send a hint to the garbage collector
    in places where a C++ programmer would write:
    double result, num;
    // get initial value for num....
    result = Math::Sqrt(num);
    or a Java programmer would write:
    double result, num;
    // get initial value for num....
    result = Math.sqrt(num);
    The result of this is that you end up allocating an extra object now and
    then. In practice, this is not a big deal memory-wise. If you have a
    server that is getting a lot of hits, or if you are doing some intense
    processing, then you could pre-allocate and reuse the data object. Note
    that optimization has its own issues, so you should start by allocating
    only when you need the object.
    If you are looking for a StringUtil class, then you will want to use an
    instance of TextData or TextNullable. If you are looking to add methods,
    you could subclass from TextNullable, and add methods. Note that you will
    still have to instantiate an object and call methods on that object.
    The next issue you raise is where the object resides. As long as you do
    not have an anchored object, you will always have a copy of an object on a
    partition. If you do not pass the object in a call to another partition,
    the object never leaves. If you pass the object to another partition, then
    the other partition will have its own copy of the object. This means that
    the client and the server will have their own copies, which is the effect
    you are looking for.
    Some developers new to Forte will try to get around the lack of global
    methods in TOOL by creating a user-visible service object and then calling
    methods on it. If you have a general utility, like string handling, this
    is a bad idea, since a service object can reside only on a single
    partition.
    Summary:
    * You may find everything you want in TextData.
    * Unless you anchor the object, the instance will reside where you
    intuitively expect it.
    * To patch over the lack of static methods in TOOL, simply allocate an
    instance when required.
    Feel free to email me if you have more questions on this.
    At the bottom of each message that goes through the mailing list server,
    the address for the list archive is printed:
    http://pinehurst.sageit.com/listarchive/.
    Good Luck,
    CSB
    -----Original Message-----
    From: Robinson, Richard
    Sent: Tuesday, March 02, 1999 5:44 PM
    To: '[email protected]'
    Subject: How do you create and use "common" type classes?
    I'm relatively new to forte and I'd like to know how can you handle utility
    type classes that you want to use through out your application? Ideally
    what I want is a static class with static methods.
    Let's say that I have a StringUtil class that has a bunch of methods for
    manipulating strings.
    My problem is that we have code that runs on the client and code that runs
    on the server. Both areas could use the StringUtil class, but from what I
    understand, I have to create StringUtil in a plan and then create a server
    object of type StringUtil. The server object will eventually get assigned
    to a partition. That's not good since I really want the server object to
    physically reside at the server end and at the client end. (Actually, I
    don't want a server object, I just want to invoke a static method of a
    static class).
    Any clues on how to solve this problem would be appreciated.
    Also, what is the url at Sage-it that has a summary of all emails that have
    been posted to [email protected]? Perhaps this question has been
    answered previously.
    Thanks in advance

  • Create an instance of my class variable

    Hello all,
    I'm a newbie to iPhone/iPad programming and am having some trouble, I believe the issue is that I'm not creating an instance of my class variable.  I've got a class that has a setter and a getter, I know about properties but am using setters and getters for the time being.  I've created this class in a View-based application, when I build the program in XCode 3.2.6 everything builds fine.  When I step through the code with the debugger there are no errors but the setters are not storing any values and thus the getters are always returning 0 (it's returning an int value).  I've produced some of the code involved and I was hoping someone could point out to me where my issue is, and if I'm correct about not instantiating my variable, where I should do that.  Thanks so much in advance.
    <p>
    Selection.h
    @interface Selection : NSObject {
      int _choice;
    //Getters
    -(int) Choice;
    //Setters
    -(void) setChoice:(int) input;
    Selection.m
    #import "Selection.h"
    @implementation Selection
    //Getters
    -(int)Choice {
      return _choice;
    //Setter
    -(void)setChoice:(int)input{
              _choice = input;
    RockPaperScissorsViewController.m
    #import "RockPaperScissorsViewController.h"
    @implementation RockPaperScissorsViewController
    @synthesize rockButton, paperButton, scissorsButton, label;
    //@synthesize humanChoice, computerChoice;
    -(void)SetLabel:(NSString *)selection{
              label.text = selection;
    -(IBAction)rockButtonSelected {
    //          [self SetLabel:@"Rock"];
              [humanChoice setChoice:1];
    </p>
    So in the above code it's the [humanChoice setChoice:1] that is not working.  When I step through that portion with the debugger I get no errors but when I call humanChoice.Choice later on in the code I get a zero.
    -NifflerX

    It worked, thank you so much.  I put
    humanChoice = [[Selection alloc]init];
    In viewDidLoad and it worked like a charm.  Thank you again.
    -NifflerX

  • Creating multiple instances of a class in LabVIEW object-oriented programming

    How do you create multiple instances of a class in a loop?  Or am I thinking about this all wrong?
    For instance, I read in a file containing this information:
    Person Name #1
    Person Age #1
    Hobby #1
    Hobby #2
    Hobby #3
    Person Name #2
    Person Age #2
    Hobby #1
    Hobby #2
    Hobby #3
    Person Name #3
    Person Age #3
    Hobby #1
    Hobby #2
    Hobby #3
    If I define a Person class with name, age, and an array of strings (for the hobbies), how can I create several new Person instances in a loop while reading through the text file?
    FYI, new to LabVIEW OOP but familiar with Java OOP.  Thank you!

    First of all, let's get your terminology correct.  You are not creating multiple instances of a class.  You are creating Objects of the class.
    Use autoindexing to create an array of your class type.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Unable to create GlassFish server on Luna

    Hi all, I'm experiencing the same problem than here https://www.eclipse.org/forums/index.php/t/821156/, but according to the comments that was already fixed. This is what I'm trying: Install the Glassfish Tools from the Marketplace In the Servers vie

  • MacBook Air Mid 2013 BootCamp Windows 8.1 Compability

    Dear All, actually I have a doubt on installing Windows 8.1 on MacBook Air Mid 2013 by using BootCamp. the thing is when I bought Windows 8.1 from a typical computer accessories store, I been told by the salesperson that there will be no problems at

  • Copying Layers/ Repeating Animation

    Ok, I'm not sure how to explain this: Basically I have a 12 second animation which consists of 9 layers, a mask, some pictures and text. What I want to do is repeat the same animation over and over again using different text and pictures. I assumed I

  • New Set of Book

    Dear all, I have Requriment of Open New Set of Book, in This Way i Need To Change in AP, AR,GL what should i Follow and What Changes Requried in these module i Setup Level. Thanks

  • Adding another Verizon router....

    I currently have FIOS installed at my home.  I have my wireless router installed on the main level in my home.  The wireless signal is great on the main level and upstairs, but the signal in the basement varies from good to low.  I am looking for a s