Passing information

I am trying my hand at programmatic skinning of components.
I have created a class for the up-state of a TabBar component
(The Yahoo ASTRA TabBar), and I have the need to style this at
runtime based on XML. I never create an instance of the class
anywhere (I don't really understand how the component does its
thing), so how do I pass information into it? I can edit all of the
classes involved in the process, I am just unsure how to proceed.
Should I add some style information to the TabBar/TabButton
class, and then it gets passed into the specific button as it goes?
If so, how would this work....
Sorry my question is rather vague.

What I ended up doing is to create my own "style manager"
class that I set style information to using
"StyleManager.setComponentStyle()." Then, from inside of my
programmatic skin, I call StyleManager.getComponentStyle() and
bring up the style information I need. It seems to be working
wondrously.

Similar Messages

  • How can I pass information from one portlet to another?

    First, some background...
    I am using Portal 5.0.2 and developing portlets using JSP/Java on a remote server.
    I need to pass information from a portlet on pageA to another portlet on pageB, but I can't do it using the traditional methods, such as query string, session, cookies, etc. due to either portal framework limitations or because of functional constraints (basically, a user will not necessarily be logged in to the portal, but he can view anything available to the GUEST user). Here are the different ways I've considered using to save state and their limitations:
    Query string: can't use this because portlets on remote servers don't have access to it
    Cookies: if user disables cookies, code will not function properly
    Session variables: limited to one user's connection with one portlet (i.e., can't access a session variable set in portletA from portletB)
    Application variables: because the user may not be logged in, I have no way of uniquely naming variables, which is a necessity in order to maintain state for EACH user
    User Settings: again, the user may not be logged in, so I can't use these
    PCC: can't access client-side variables because server-side JSP executes first
    Are my assumptions above correct? Has anyone had any success using one of these methods given the same constraints, or does anyone have an alternative solution? I'd certainly appreciate any help anyone could provide.
    Thanks,
    Jose

    One possibility would be to use a Login PEI to set a unique UserInfo Name/Value for the user. I think in 5.0 each guest session is unique, so would have unique UserInfo. Then you could pass this value to your portlet (by specifying it in the web service) and use it as a key into a Application-scoped hashmap where you store your info. In other words, your Application variables option, but you have a way of uniquely naming your variables via PEI-set UserInfo.

  • HT201250 how can i pass information from one mac to another mac by using the time capsule

    how can i pass information from one mac to another mac by using the time capsule

    If you want to transfer files, settings, etc., you must open Migration Assistant (Applications > Utilities) in the Mac that you want to transfer the files and follow the instructions

  • Passing information between class

    Greetings Fellow Developers,
    I have what I believe to be a simple question but my brain is only thinking in procedural at the moment so I'm in a bit of a fix.
    I'm working on a midlet and creating an message book application
    I must pass informatin class mesaj to JSMS
    public class mesaj extends DisplayTextBox{
          private static String mes="";   
        public mesaj() {
            super("mesajınız",TextField.ANY);
       public  void setMesaj(){
            mes=getString();
        public static String getMesaj(){
            setMesaj();//there is problem with use static method
            return mes;
    public class JSMS extends MIDlet implements CommandListener{
       public void commandAction(Command c, Displayable d) {
             if(c==add){
                AddRecord(mesaj.getMesaj);
    }I have a problem using getMesaj method...
    can I passed information without non-static method
    thanx
    muratti32

    Hi,
    I think that your set and get methods are a bit wrong. Maybe they should be like this
    public void setMesaj(String m)
      mes = m;
    public static String getMesaj()
      return mes;
    }if you don't want to make static methods, you'll have to make an instance of the class, which methods you want to call.
    public class JSMS extends MIDlet implements CommandListener{
    private mesaj m = new mesaj();
       public void commandAction(Command c, Displayable d) {
             if(c==add){
                AddRecord(m.getMesaj);
    }kari-matti

  • Passing information to a method

    Im going through the java tutorial about passing information to a method
    and i am presented with this code.
    class RGBColor {
        public int red, green, blue;
    class Pen {
        int redValue, greenValue, blueValue;
        void getRGBColor(RGBColor aColor) {// is aColor a reference for RGBColor ?
            aColor.red = redValue; //is aColor then used to access the variables of RGBColor ?
            aColor.green = greenValue;// Are these values being initialised here
            aColor.blue = blueValue;
    RGBColor penColor = new RGBColor();// we are creating an instance of RGBColor called penColor
    pen.getRGBColor(penColor);// this is the bit i dont understand where the heck did pen.getRGBColor come from, i cant see anywhere where pen has been declared ..... or instantiated
    System.out.println("red = " + penColor.red +
                       ", green = " + penColor.green +
                       ", blue = " + penColor.blue);The follwoing is what it says in the java tutorial about the code
    The modifications made to the RGBColor object within the getRGBColor method affect the object created in the calling sequence because the names penColor (in the calling sequence) and aColor (in the getRGBColor method) refer to the same object.
    any guidance would be great

    Directly above the code that you don't understand is
    o A definition for a class Pen.
    o something called "pen" is probably declared somewhere like this:
    Pen pen;
    or
    Pen pen = new Pen(....);
    or
    Pen pen = something.getPen();
    So pen is an instance of Pen, and you can invoke the methods defined in class Pen, thus
    pen.getRGBColor(....);

  • Member variable verses method parameter to pass information

    Hi all,
    Is the a performance penalty in using method parameter, such as a String, to pass information into multiple methods( method1(String X), method2(String X), etc ) in a class verses using a class member variable to pass the information to the methods?
    Thanks.

    Never, ever, ever make a decision as to what should be parameter and what should be field based on this kind issue. If the value is reasoably part of the state of the object it should stored (or referenced by) a field. Otherwise it should not and so your left with it being a parameter or an atribute of some other object.
    There is little if any performance cost in passing a parameter (on the order of 10's to 100's of nanoseconds on modern computers and JVM's. Optimizing in this area will only noticeably impact performance of such calls if it needs to get performed 100's of thousands or millions of times per second. That generally excludes everything any of us is likely to write.
    Chuck

  • Passing information to the secure site

    Is there any way to pass information from my main site (mysite.com) to the secure payment site (mysite.worldsecuresystems.com)?
    I am using a lot of javascript and cookies to pass visitor information around the site, but none of it transfers or is accessible once the site switches over to worldsecuresystems at the shopping cart.
    Am I missing something here or does anyone have ideas that could help?

    Thank you, I suspected as much but just wanted to make sure I hadn't overlooked a better option

  • Passing information to movies in UILoader

    I want to pass information to a Movie Clip (swf) loaded into a UILoader component on the stage.
    I need to be able to do this so I can synchronize the actions of multiple Movie Clips in the main movie clip.
    What's the proper way of accomplishing this?
    An example of how I'd use it is when I'd load a video to the stage and I'd want to tell my audio player to mute the volume on the background audio.

    Hi,
    You can accomplish this by using the event dispatcher and event listener, like so:
    //In the loading swf...
    //When loading completes...
    function
    onLoadComplete(event:Event):void
         //dispatch a new event in the form of a string
         dispatchEvent(new Event("Talk to parent"));
    //In your parent swf...
    //Listen for the string in the dispatched event
    stage.addEventListener("Talk to parent", onTextRequest, true);
    //if string is heard, do...
    function onTextRequest(e:Event):void
         //Write the following string to the child swf 
         Object(e.target).writeText("Hello from parent"); 
    //In the loaded swf...
    //Do this function when called from the
    parent...
    function writeText(tMessage:String):void
         trace(tMessage);
         trace("Hello Back. I heard ya, now do stuff...");   
    hope that helps,
    ~chipleh

  • Passing Information to Taglet from Doclet

    My custom taglet works on information that is constructed based on RootDoc in my custom Doclet. I store this info in a static class. I notice that Taglet cannot access this info as it being loaded by different ClassLoader. Instead of constructing the info in Custom Doclet, I would like to construct it in static initializer of the Taglet itself for which I need access to RootDoc.classes() from inside Taglet. Can you please let me know how I can do this? Better if there is a way to pass static info from Doclet to Taglet.

    I could get access to RootDoc from inside taglet using TagletWriter.configuration().root. But I am still interested in knowing if there is any other way of passing information constructed in Doclet to Taglet. Thanks

  • How can pass information between 2 par file in iView???

    Hello,using PDK i've have created an iview calling 2 .par file, the first par file contains a menu that the user selects a products and then when press load button generates a table with information. The table with information is generated in second .par file, that collects the information passed by the menu (through beans) and with a BAPI generates the table. I made it because the menu must be separated in one frame, and the table in other...(and the first frame must displace, how a html frame)
    The question, how can pass information between two par files or if are another method to made 2 frames????
    I'm using jsp,HTMLB .
    Thanks.

    Hi,
    try to have a look to the docs contained in this zip file.
    They explain how to implement a portal component, a portal service and how to implement comunication between portal components, using POM and other features.
    Maybe could be a good starting point for you
    the file is
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/component and service creation tutorial.zip
    Ciao
    Roberto

  • Pass information between dom0 & domU thanks to web service API

    I have to build automation API in Java programming language for application deployment on virtualized infrastructures. Is there any way to pass information to application running inside the deployed virtual machine and to notify the host about some application's states? Everything using only the Webservice API...
    The principal examples I can give:
    For VMware (Virtual Infrastructure compliant products) & Virtualbox infrastructures, WS API give use the capability to set variables to retrieve them thanks to the guest tools ( vmware-guestd & VBoxControl )...
    For XenServer and Hyper-V, the only way we found to get that done is to directly write the variables in a part of the virtual machine configuration. Then, from the virtual machine, we need to connect to the XenServer/Hyper-V, identify the virtual machine which is currently running our application, and use it to retrieve the application configuration... The problem with the later is that we have to "hard write" the authentication information in the virtual machine, and to find a way to determine in which virtual machine the application is running ( this is done so far using NIC Mac address ).
    Because of the "light" documentation, i don't know if such a thing is possible for OVM manager...

    My mistake...
    on [http://download.oracle.com/docs/cd/E11081_01/doc/web.21/e14979/toc.htm|http://download.oracle.com/docs/cd/E11081_01/doc/web.21/e14979/toc.htm] , the method
    void      createPropertiesFileOnVirtualMachine(java.util.Properties props, VirtualMachine vm, java.lang.String propFileName)seems to do what I need...
    Now, because my test environment only allow PV Guests, I'd like to know if that also work for HW Guests?

  • Passing information from an iView to SAP - ESS Related

    Hi,
    How do you pass information from an iView to SAP?
    For example, in my task the User will log into ESS.
    Then they will click on the iView link and be prompted with a dialog for their service number (how is that done)?
    Now, on SAP's side (backend), I need to take that service number and their user id and pass it to the transaction.
    For the service number, I will have to add leading zero's.
    How is this done?
    What is the ESS cookbook and does anyone have it?
    Thanks,
    John

    Thank you for the response - it gives me a better idea of how this system works.
    But how would you modify the information that is being passed? Would it be passed to a structure, which can be accessed from within SAP? For example, the medical service number would be entered as 15. It would be stored and then my program would extract that number, add leading zero's and call the relevant transaction.
    Please help.

  • Talking to different forms and passing information

    Hi all
    I am using netbeans to make my hci.
    now in my form1 i have a button that when pressed takes me to form2 (class2) on form2 i want to press a button to change the color of button in form 1. as well as this i want to pass information between the two forms.
    can any one help
    thankyou in advance
    james_bond

    HCI?
    human computer interation?
    what happened to GUI?

  • Passing information from external asp file and getting it in the portal

    Hi,
    I think that the answer for my question is simple but I'm not sure how it is done.
    I would like to pass information from asp page(microsoft server pages) to the portal and extract the information in the portal
    I know how to how to pass the the information as POST or GET method
    but how do I extract the infomation within an iView ?
    and what is the portal URL I need to call from the asp page ? a page URL or an iView URL ?
    Thanks
    Y.R

    Hi,
    In order to use an ASP application in the portal u have to first create a system. In the System Definition Properties, give the url of your ASP page in the Name of server field and the name of the ASP page in the URI field.
    For more clear understanding, please go through the following document
    http://help.sap.com/bestpractices/crossindustry/enterpriseportal/v160/documentation/How-to_Guides/25_HowToUseAppIntegrator_en.pdf
    Best Regards
    Priya

  • Passing information from JClient to View Object

    What would be best way to pass information from JClient to View Object. I would like to implement security system, where view object would take information about what specific users can do (not oracle users, I would like to have one user to connect to database only) from an oracle table or stored procedure. Now I need to pass information about user: user name, IP, application etc. to View Object. I have two ideas for possible solution:
    a) dynamic attributes
    b) exporting methods (with custom interface)
    Any suggestions ?
    Todi

    What would be best way to pass information from JClient to View Object. I would like to implement security system, where view object would take information about what specific users can do (not oracle users, I would like to have one user to connect to database only) from an oracle table or stored procedure. Now I need to pass information about user: user name, IP, application etc. to View Object. I have two ideas for possible solution:
    a) dynamic attributesPreferable if you need to store per row information that's dynamic/required for client.
    b) exporting methods (with custom interface)Preferable if it's a one time setup kind of information. Though even that can be achieved by the dynamic attributes.

Maybe you are looking for

  • CS6 Error installation on mac

    Hi, I need help, we are getting an installation error when we try to install CS 6 on Mac. We tried all possible troubleshooting like making sure no existing CS suite, on mac security to allow to download and install "ANYWHERE". Tried installing Adobe

  • PDF is not opening in Mac Firefox, asking for save/download, I want to open it inside browser

    Hi, Im facing an issue with Mac Firefox, when Im trying to open pdf file in FF for Mac, its asking for download/save rather than opening up inside browser window like other browsers do. Can you please help me out to solve this, its happening only wit

  • Iphone 3GS skype problem

    Hello, I am experiencing some difficulties on skype using with my iphone. My problem is that whenever I use skype to make phone calls on my iphone, it always quits the skype and goes to the iphone home page when I type more than 6 digits. I can't eve

  • No icons in App Store Categories

    Hello, A few days ago all of a suddent my icons from under the AppStore's top level Categories have disappeared. The only icons I have showing is for the 'Games' and 'Books' section. However, when I go into a sub-level category I have ll the icons fo

  • ITunes went nutso re: synching - it shows more than 700 millions Gigs!

    Hello, I am in a big bind, needing to synch my iPod before tommorow noon! I never had this issue before. I re-installed XP and iTunes on a new HDD and had no problems. I then re-installed Anapod, and it asked that the iPod be set to use as a hard-dri