Extend base class to customize some properties

Hi
Using Jdev 11g
I need to extend UIGraph class to change the defualt color of pie graph . anyone have a solution to it ? i already extend the class but i donot know what is next steps and what is the method i must to override ??

Hi frank
how can i use skinning to change default color of pie chart . for example i have 5 status and count them for every emp but i need specified color for every status ( green for done , red for not done ans so on) if one status missing ( the emp have not (,done status) for example) then the pie color rearranged for other status ???:)). i try to change color in EL but color attr of pie series donot support EL

Similar Messages

  • How to extends base class???

    Hi here I want to extend GoogleApiKeyStore. I am sure that this class is availabe, because when I  writing to import this class flash showing this classname in hint dialogue box. but when i make object of mykey in my document class then it shows error: The definition of base class GoogleApiKeyStore was not found.
    package code {
              import be.boulevart.google.apicore.GoogleApiKeyStore
              public class mykey extends GoogleApiKeyStore{
                        public static const API_KEY : String = "xxxxxxxxxxxxxxxxxxxxxxxx"
                        public function mykey() {
                                  // constructor code

    download and save the class to make it local.

  • Extending the class - For extra feilds\properties on service requests

    We have extended the class for service request so we can have extra properties for user input on service requests. These extra feilds are now visible via the extensions tab at the top of the service request and also on a new tab next to Histroy.
    However each time we open a new service request the default tab it opens onto is this new "Notes" tab and not the "General" tab, causing a lot of fustrations. See below:
    Anyone know how to change this default view back to the general tab?

    An annoying "feature" of SCSM form customisation is that the last tab changed becomes the default tab shown. Open your custom form MP in the Authoring Tool again and go to the general tab, change the top margin by 1 of the title or something
    similar, reseal, import. The general tab will be the default once more.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • BUG? Default Project Properties, Business Components: Base Classes

    Is it just me, or is there a bug in the Default Project Properties Dialog when attemptiong to specify custom classes for the Business Component Base Classes.
    I have extended EntityCache and can successfully specify it as a base class via the Project Properties dialog, but in Default Project Properties, I get an error stating: "The selected class is not a valid superclass. Either is does not implement the interface oracle.jbo.server.EntityCache or it has an invalid modifier".
    FYI: My custom library has been added to the Default Project Properties->Libraries.
    Any help?

    Does it work if you use the:
    Tools | Preferences... | Business Components > Base Classes panel instead?

  • Base class vs derived class

    We have entity classes that we use to access our database. We have subclasses derived from these entity classes that apply business rules. For instance, the base class AddressEntity has a
    setAddress2(string) that AddressEntity.select() uses to set a class variable with data retrieved from the database. The derived class Address also has a setAddress2(string) method that puts restrictions on the length of the data. I want the AddressEntity.select() method to use the base class method AddressEntity.setAddress2(). I've tried using this.setAddress2() in AddressEntity.select() but the derived class method is still used. Any suggestions?
    Thanks,
    Joe

    If you need to call some methods on the base class sometimes and some methods on the derived class other times, but using the same object, then yes dubwai is right you should revisit your Object hierarchy.
    One simple way to do what you are asking is to have your method(s) look like this:
    void setAddress2(String sAddress) { setAddress2(sAddress, true); }
    void setAddress2(String sAddress, boolean bRestrictLength) {
      // real method
    }then you could just look at the variable bRestrictLength to see if you need to restrict the length, and have it default to true. In this way you can use overloading to solve your problem.

  • How to use reflection to get base classes protected field

    I have one base Base classes which have protected fields and public get method to get the field.
    class Base
    protected int proField;
    public int getProField(){return proField;}
    Class Derive extends base class Base
    class Derive extends Base implements OtherInterface
    public void funtion(){};
    Now I have an instance of Derive, how can I use reflection to get the protected field inherited from Base. It seems Java Reflection only give runtime accessibility to public field and decleared field, protected-inherited field is excluded.
    Thanks
    Lei

    as the last poster said, traverse up the class hierarchy.
    ex:
    private void doSumfinToField(String fieldName throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException {
    Class clazz = getClass();
    Field field = findFieldInClass(clazz, fieldName);
    //field.doSumfin;
    private Field findFieldInClass(Class clazz, String fieldName) throws NoSuchFieldException {
    try { // to find the field in this class    
    return clazz.getDeclaredField(fieldName);
    } catch (NoSuchFieldException e) {
    // if we don't have a superclass, continue
    if (clazz.getSuperclass().equals(Object.class)) {
    throw e;
    // check in the superclass
    return findFieldInClass(clazz.getSuperclass(), fieldName);
    }

  • Flash Pro is ignoring changes to my base class when publishing / debugging

    Hi,
    I hope this will be in the correct section of the forum.
    I've been working with Actionscript 3 since a while now although most of the time I've just done straightforward coding using Flash Develop.
    This is the first time I'm building a more or less complex project in Flash Pro.
    Here's a quick outline of how the project is structured.
    There is a swf file which holds a large set of components. Things like Buttons, Sliders, complex List components, etc.
    All of them are written from scratch not using any existing components (reason being project requirements).
    As someone with a heavy programming background I've done as little as possible in the timeline / frames, most of my code lives in classes which are attached to the components I've created in Flash Pro.
    These classes handle all the functionality. These classes then usually inherit from a base class where some basic functionality lies that I need across all components.
    The components outlined above are all marked for export and lateron imported into other swf files where they are used.
    So far so good, all that works like a charm.
    Now here's the actual problem.
    Today I needed to make changes to the base class to change some fundamental behaviour across all components that inherit from said base class.
    The change in itself was fairly simple.
    However, every time I now try to debug or publish it will completely ignore any change I've made and use the previous version of my base class?
    I can go as far as completely emptying my base class and every time I debug or publish it will do so using the base class from before. I can see at runtime that it is the previous version because of the behaviour of the inherited components.
    That's what I don't get. Where does it take that version from? I tried clearing the publish cash, to no avail.
    I can pace tracers, nothing. If I add code to the base class and make an error it will complain so when I try to debug or publish but once fixed, it won't use any of it. It's still behaving as if it's using a previous version.
    What makes all this even weirder is that if I take that new code and place it into another class and inherit my components from this one, then the build will use that new verison with the new code. If I switch back to the old base class with exactly the same code inside it will ignore it again and once more behave as if its an older version of it.
    I've been looking around the net but simply can't find what this could be caused by.
    Now, sure, I could simply use a new class and inherit all my components from a different base class but that's rather unpractical.
    What I would like to know is, why does Flash Pro ignore any changes to this class? Is this an issue with how I inherit my component classes from a base class? I kind of doubt it because it has been working like a charm before.
    Could this be a Flash Pro issue?
    This is also not the first time I've come across this problem. The previous time however, after much tinkering, it went away. Today, it didn't. I would really like to get to the bottom of this.
    FYI: I'm running Flash Pro CC. I design my components in Flash Pro and do all my coding in Flash Develop.
    Any help would be greatly appreciated.

    Hmm, my classes live in a subfolder of where my fla files live. (This sub folder again is divided into further folders to organise the code)
    I haven't actually setup any class paths. (default class path is set to .)
    If I set the default class path to the folder where my code lives I get a ton of errors telling my that my package names don't reflect the location of my files.
    edit: That was a mistake on my side. I've set the class path to where my code lives and made sure the package names still match up.
    Unfortunately it still ignores my base class (which lives in a sub folder of the defined class path)

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • Extending class + accessing base class's children

    Hello.
    I'm trying to create a sort of info and tool panels for a project, similar to the ones on the Adobe Suite's products. They'll have a tab that you can double click to open or close them and the panel's title will be on this tab.
    So I created a MovieClip called MainPanel and inside it I placed a textfield called txtTitle and a rectangular MovieClip called mTab. I duplicated the MainPanel twice on the stage, called them PanelA and PanelB, and added individual elements to them, but kept the txtTitle and mTab.  I edited PanelA and PanelB's linkage options to link them to specific custom classes.
    First I created a base class for the MainPanel.
    package com.panels{
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        import fl.text.TLFTextField;
        public class MyPanel extends MovieClip {
            public function MyPanel ():void {
                txtTitle.mouseEnabled = false;
                mTab.doubleClickEnabled = true;
                mTab.addEventListener(MouseEvent.DOUBLE_CLICK, clickedPanel);
    And then the classes for Panel A and B, which extend the MainPanel.
    package com.panels{
        import com.panels.MyPanel;
        public class PanelA extends MyPanel {
            public function PanelA ():void {
    When I test the movie, I get an error saying "Access of undefined property txtTitle" (and the same for mTab). If I just link PanelA to the MainPanel class it all works - I got it to open, close, dragged it with the mouse... I can access mTab, txtTitle and anything else already on the stage. But if I extend the class, I no longer can. Does anyone know why this happens and the best way to get it to work? Thank you.

    Still didn't do the trick, I even tried building a project from scratch with just the classes I mentioned in my example and nothing else, and then a second version where I have all files on the same directory. Not sure if it might have something to do with this being for an AIR app.
    I have found a solution that seems to be working. My new MyPanel class:
    package com.panels{
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        import fl.text.TLFTextField;
        public class MyPanel extends MovieClip {
            private var _title:TLFTextField;
            private var _tab:MovieClip;
            public function MyPanel ():void {
                _title = MovieClip(getChildByName("txtTitle")); //If I don't cast the result as a MovieClip I get an error
                _tab = TLFTextField(getChildByName("mTab")); //Same for the TLFTextField
                _title.mouseEnabled = false;
                _tab.doubleClickEnabled = true;
                _tab.addEventListener(MouseEvent.DOUBLE_CLICK, clickedPanel);
    Still I'd like to understand why I need to go through these hoops so I don't make the same mistake again.

  • Error while extending a controller:not a valid base class for this operatn

    Hi,
    I tried to extend a controller. but the Jdev shows an error "oracle.apps.ar.Creditmgt.application.webui.OCMAddFinDataCO is not a valid base class for this operation. Can you please let me know why is Jdev not allowing me to create a new class.
    Thanks,
    Prakash

    Yes I did. the class file exists in the Myclasses of Jdev in Jdevbin.Prakash myclasses folder is in \$JDEV_USER_HOME\jdevhome\jdev\myclasses.
    Not in jdevbin.
    Check this link
    Re: Problem in creating Extended Class for Standard Controller
    Thanks
    AJ

  • Cannot find Super class/Base class when extending VO

    I am extending a SQL based VO and when I select the extends in the VO Wizard step 7. I am unable to find the base class for the object and rowimpl. I have copied them in the class path and still they don't show up (but can see other classes) ? Could you please tell where am I going wrong?
    Thanks,
    Hari

    Well here is the deal - I have the whole of $JAVA_TOP/per directory in my class path and also under myprojects/oracle/apps/per directory. I have created a BC4J abc.oracle.apps.per.selfservice.appraisals.finalrate. Here is where I will be creating the new SQLVO. In the step 7 of VO Wizard there is extends button when I select and navigate through oracle.apps.per.selfservice.appraisals.server I don't see my FinalCompListVORowImpl class although I could see it in the navigator. Do I need to navigate to this level for step7 of VO Wizard or default it to oracle.jbo.server.ViewRowImpl? Also I have included the Java and xml files in my project. Your help is appreciated.
    Thanks,
    Hari

  • Inheritance problem: base class does not see stage instances

    I'm writing a series of Search windows for an application. I create the FLA files on the stage, each has 3 simple buttons: next_btn, prev_btn, and close_btn. Those all have event listeners which call findNext(), findPrev() and closeWin() respectively. Each search window looks for different things, some with a text box and some with a combo, etc.
    So I have a base class com.search that extends Sprite and adds the eventListeners at startup (actually, on addedToStage). Like this:
    function isAddedToStage(evt:Event){
       next_btn.addEventListener("click",findNext);
       prev_btn.addEventListener("click",findPrev);
       close_btn.addEventListener("click",closeWin);
    Then I write the appropriate find functions in each derived class.
    For example, I have
    package com {
         import com.search;
         class searchText extends search {
    In my FLA file, I set the class to com.searchText.
    But when I compile and run the window, I get runtime errors:
    ReferenceError: Error #1065: Variable next_btn is not defined.
    at com::search()
    at com::searchtext()
    If I add the event listeners in the derived class rather than the base, it works fine. But that seems to defeat the purpose of inheritance, plus it infers that I won't be able to derive new classes/swfs from those derived classes.
    So the question is, how does one reference objects created on the stage from a base class of that document's class?

    Found it. After messing around with trying dynamic classes and overriden functions that returned the desired button (that worked, but was ugly.)
    Simply and silly once you know how.
    You have to explicitly reference the stage objects (or any newly declared methods or properties) in the derived class as members of "this" in the base class - so:
    class Search {
    function isAddedToStage(evt:Event){
       this.next_btn.addEventListener("click",this.findNext);
       this.prev_btn.addEventListener("click",this.findPrev);
       this.close_btn.addEventListener("click",closeWin);
    function closeWin(e:Event){
    and then create the buttons on stage in the FLA using the derived class.
    You can also declare the event handling functions in the base class as empty functions and then override them in the derived classes. Or fill in the functions in the base class to throw a runtime error, and then override - that's as close to an abstract class as you can get, I think.

  • FXML and Controller base classes?

    Hey Guys,
    Another FXML question: does anyone know if it is possible to get FXMLLoader to pick up the FXML annotations on base classes?
    If we have this:
    public class MyBaseController
        @FXML
        protected Label myLabel1;
    } And this:
    public class MyController extends MyBaseController
        @FXML
        protected Label myLabel2;  
    } And then we load some FXML that references MyController as its controller, it seems only the direct properties on the Controller class are mapped (i.e. 'myLabel2') and not the inherited ones (i.e. 'myLabel1').
    I'm guessing it just hasn't been written this way?
    Greg - I don't suppose sharing the source code for FXMLLoader is an option? It would certainly help us early users work out what we're doing in lieu of more complete docco.
    Cheers,
    zonski

    Just in case anyone is interested, the answer to this question is currently 'no'.
    JIRA issue for it here: http://javafx-jira.kenai.com/browse/RT-16722

  • Quite simple Question about ViewObject base classes

    Hi there;
    When we have an unfinished project with some viewsObjects created and then we change the project  viewObject base class in project properties, does old viewsObjects will be assumed to the new class ?
    Only the new viewObjects will be automatically assume the new base class ? or we will need to create java source to all the views we want to ?
    Thanks;
    Marcos Ortega;
    Brazil

    Marcos,
    Only newly created objects will assume the new base class. Old ones will not be changed. If you want to change the old ones, you can edit the Java files by hand and change the "extends."
    John

  • AS3: How to create one base class for classes loaded in multiple swfs?

    Our application have 3 different modules and all use
    fscommand and ExternalInterface alot. Now the problem is we are
    combining all those modules, but they all will reside in different
    swfs. Is there any way that they extend to same base class and its
    static members have only one instance accessible by all
    three?

    Hi,
    You can achieve this via Workshop 9.2 by using the exported Ant script for your project as follows:
    -Ensure that all Jars needed to resolve com.bea.p13n.property.EntityPropertyManager (this particular class is found in weblogic92/common/p13n/lib/p13n_ejb.jar) and all referenced classes are added to the Java build path for your WebLogic EJB project (Properties->Java Build Path->Libraries)
    -Export the "Workshop Ant Script" for your WebLogic EJB project (File->Export->Workshop Ant Script); this will generate a "build.xml" Ant script under your project root directory.
    -Edit this default build script as follows: in the call to the "ejbgen" task within the "build" target, add the attribute: propertyFile="ejbgen.properties"
    -Create a file "ejbgen.properties" under the root of your WebLogic EJB project and add the following entry:
    YourSessionBeanClassName.remote.baseClass=com.bea.p13n.property.EntityPropertyManager
    -Add a "<path refid="java.classpath"/>" within the "<classpath>" for the "java" task element that calls "weblogic.ejbc" (this will ensure that the p13n classes are resolved by EJBC)
    Follow the instructions for executing the Ant build script found here: http://edocs.bea.com/workshop/docs92/ws_platform/ideuserguide/conUseCustomAntBuild.html
    For more information on the EJBGen property file support, see: http://e-docs.bea.com/wls/docs92/ejb/EJBGen_reference.html

Maybe you are looking for

  • ITunes Can't Locate Certain Mp3 Files After 9.2 Update

    I have never really had any serious issues with iTunes, but this one is giving me a bit of a headache. I purchased some content on both iTunes and Amazon.com. All of it played fine. After I updated to iTunes version 9.2, (7) of those files will not p

  • 'Default Risk Limit' tab is not appearing in FTR_CREATE !!!

    Hi I encountered the problem related to Default Risk Limit is not appearing in T.Code: FTR_CREATE while creation of Financial Transaction. I have done the following activities 1. Activation of Default Risk Limit Check 2. Define Limit Types 3. Activat

  • How to Genrate Report On User defined Info-structure.

    Dear Friends, I have Info-structure having key figure as production order number, Production order qty and  final comfirmation other that STD. I want to generate report but I don't want  to go for the ABAP development. Is there any option we do have

  • Imported photos from iPhone lack all edits.

    My imported Photos from my iPhone6+ lack all the edits I did in Snapseed, even when I created a copy of the image instead of modifying the original.

  • BEA wWebLogic Error In Eclipse

    All I have Eclipse Helios (3.6.2) and added the WebLogic plugin called "oepe-helios-all-in-one-11.1.1.7.2.201103302044-win32" so I could use WebLogic as a server in the Eclipse IDE. I also installed BEA WebLogic 9.2 on my system. I successfully added