Can you shorten a class path?

I have a Flex Library with a rather deep folder structure,
e.g.
com.myDomain.customerA.project1.controls.myClassA
If I now want to use this custom class as an itemRenderer for
a DataGridColumn I would have to write:
itemRenderer="com.myDomain.customerA.project1.controls.myClassA"
which is rather wordy and distracting.
Is there a way to generate a shorter class path, something
similar to a "tinyURL" for long URL addresses so that I could write
the above line of code as:
itemRenderer="tinyPath.myClassA"
Thanks in advance...

I tried your suggestion in my MXML file...
Hm, I get a compiler error: "Definition myClassA could not be
found."
My ActionScript block reads:
<mx:Script>
<![CDATA[
import com.myDomain.customerA.project1.controls.myClassA;
]]>
</mx:Script>
and the itemRender line reads:
itemRenderer="myClassA"
Any suggestions on what might not work out here?

Similar Messages

  • Can you specify the full path to jar in archive_jini

    can you put the full path to the client.jar file in the formsweb.cfg archive_jini parameter? like this:
    archive_jini=d:\something\somethingelse\client.jar
    or does it have to exist under %ORACLE_HOME%\forms\java ?

    None of the two. The path path is a relative web-url, for the content of archive_jni will be placed in the generated html which is "executed" by the users browser. So you either place your jar in $ORACLE_HOME/forms/java and put it without any path in the archive_jni-tag, or (more appreciated by myself), create a virtual directory (either by alias or by orion-web.xml) in your oas and place the jar in the according phycial path.

  • Can you code 2 classes into one source file?

    Can you have 2 classes coded in one source file? If so, do you end up with 2 .class files after the compile?

    yes you can code 2 classes in one source file. I
    believe that you have to reference one class is an
    "object" class of the class under which you save the
    file as.
    Example:
    File name is A.java
    class A{
    class B{
    When you want to refer to class B, you have to say
    A.B ( eg: A.B ab = new A.B() ). The class file(s)
    will be A.class and A$B.class.
    This is what I recall at best at the time. good luckI presume you mean when one is an inner class? Otherwise:
    public class one {
      one() { System.out.println("one");
      public static void main( String[] argv ) {
        new one();
        new two();
    class two {
      two() { System.out.println("two");
    }Will work fine, and will create one.class and two.class. But that does not mean it is a good idea to do it ;o)

  • Can you shorten the google bar at the top so it doesn't always cover up the personas?

    This is a minor problem, but most of the personas have a graphic in the right corner and the google search bar always covers it up. Can you shorten the bar? I know this sounds inconsequential, but it seems to always cover the right side where the graphic is.
    Thanks~

    You can add Space elements at the right of the search bar in the "View > Toolbars > Customize" window to make the search bar move to the left.
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Can you have multiple classes in one .java file ?

    or am I being dumb ;-)
    I'm guessing not because the filename has to match the classname but maybe you can ... ?
    C

    To elaborate a bit more. The public class must match the filename, however you can declare "inner" classes.
    An inner class can be declared inside another class, or even inside another method. Where you declare that class dictates the scope it will have. However, the lack of an ability to declare these classes public (a public class must be declared inside a java file with the same name), means that they are not visible anywhere else. However, they do still have plenty of uses.
    Declaring a class inside a method is used rarely, but would look something like
    public void foo(Bar myBar = new Bar
            private String baz = "Hello";
            public String doSomething()
                 return baz;
         myBar.doSomething()
    }This declares and implements the class Bar inside the method header. Sure, this is a pretty useless example, but you could put any methods or variables inside your inner class, and they would be available only during execution of that method. (ie. only have method scope).
    }

  • How can you determine the absolute path to a dynamically created NetStream object?

    We are trying to implement video captioning with a freeware component, ccforflash. This requires us to provide an absolute or relative path  to our NetStream object. How can we determine this path in Flash CS5 AS3?
    From the CCforFlashCS5 documentation:
    "2. Object name and path
    Type the name and path.  This is the instance name of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 will query the object with this name for timing information in order to synchronize the captions. The path must also be included; either relative to the CCforFlashAS3 component (i.e. this.parent) or the absolute path from the main level of the movie (root)."

    It would be easier if the NetStream object was created on an easily identifiable place on the timeline. This player has an MVC architecture. The NetStream object is created in a subclass to Model class, which is itself a subclass of the EventDispatcher object. The View class access it via an interface.
    As you can guess, it's not that straightforward to determine where the NetStream object is located on the timeline. This is compounded by the fact that the NetStream object does not have a name property.
    I've tried methods like these, but they only work for the DisplayObject class:
    public static function displayObjectPath( avDisplayObject : DisplayObject ) :String
    var lvPath:String = "";
    do
    if( avDisplayObject.name ) {
    // var obj_name:String = (avDisplayObject.name == 'root1') ? 'root' : avDisplayObject.name;
    if (avDisplayObject.name != 'root1') {
    lvPath = avDisplayObject.name
       + ( lvPath == "" ? "" : "." + lvPath );
    } else {
    trace("displayObjectPath() NO NAME avDisplayObject="+avDisplayObject);
    } while( avDisplayObject = avDisplayObject.parent );
    return lvPath;
    } // displayObjectPath
    private  function showChildren(d:DisplayObjectContainer):void {
    trace("showChildren()");
    if (d.numChildren>0) {
    for (var c:Number = 0; c < d.numChildren; c++) {
    trace("showChildren c=",c," name=",d.getChildAt(c).name);

  • Can you execute a class file without invoking the command line java command

    I am running java on a Windows XP equipped machine, and I am wondering if it is possible to execute a class file by double clicking the file icon, or can it only be done via command line. So far I have been unsuccessful in my attempts - I tried associating the class file with the java executable in my JRE directory, but that didn't work.
    Many thanks,
    -Stile

    nope, can't be done, by design... microsoft recognised java as threat to the empire very early on in the peace.... but you can write a batch file to execute myprogram.class called myprogram.bat and stick it in your PATH.
    keith.

  • Can you insert a file path in pages document

    Is there any way of inserting a "file path" into a document in the new version of pages. You could do it in Pages 09 but I can't find any way of doing in the new
    Version. I know the inference is you are using the cloud - therefore file paths are not needed - but a lot of us still store documents in various places ( especially in the work place).

    No.
    Pages 5 has over 90 other features removed:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=b14426a2c5af2 65f2213d98ee45f08d7&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Export your Pages 5 files to Pages '09 or Word .docx and trash/archive Pages 5.
    Then rate/review Pages 5 in the App Store.
    Peter

  • Can you call a class method as an RFC function

    Hi
    I would like to know whether it is possible to instantiate a class in another system via RFC and then call a method eg. cl_abap_typedescr=>describe_by_name, of that class in the other system like you can with an RFC enabled function.
    Thanks
    Faaiez

    Its not possible to call a method like RFC.
    What you could do is write a RFC and within that instantiate the class and call desired method .
    And now you can call this RFC from the other system.
    Regards
    Raja

  • Can you make a Class T ?

    I have a method
    public <T> void delete(T deleteObject){
    I from this information I need to derive a Class<T>. Is this posible? The reason is that I need to instanciate another class
    public class Query<T> implements QueryInterface<T> {
    with the constructor
    public Query(Class<T> searchFor){
    It is not possible to use deleteObject.getClass(), since it returns a Class<? extends Object>, which is not compatible with Class<T>.
    Hope you can help!
    Thanks up front!

    So far, I have just accepted the type warning which comes when I use Class instead of Class<T>. But please reply if you have a surgestion to how to avoid this.

  • Can you do online classes with an Ipad 2?

    I'm thinking of getting an Ipad 2 but I was unsure on whether or not you were able to log onto your online classes and complete them anytime anywhere?  Also they have textbooks that you can read in class would you be able to read them on the ipad?

    jessicafromnormal wrote:
    I figured if anyone else was using it for that reason to see if it was worth buying!
    There are probably dozens of ways to do "online classes" over the internet, some will no doubt work with the iPad and some not.  The iPad cannot do either Flash or Java, for example.  Whether it will work with whatever it is you want to do is something you should check with the organization providing the class.

  • Can you filter on "Task Path" items?

    I am testing the limits of the "Task Path" fuctionality for v2013.  Is it possible to filter for those tasks that meet a specific "Task Path" criteria?  For example, if I select "Driving Predecessors" can I get a list
    of only those tasks that are the Driving Predecessors for that task?  If so, what column needs to be filtered?
    Chris

    Hi Chris,
    Unfortunately you cannot filter based on the task path criteria. They are not in any project field/column but just accessible via the bar format in the Gantt Chart. I guess it would be possible to do some VBA but this cannot be done out-of-the-box.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How can I set Java class path right?

    After I downloaded Java Developer for 10.6 (10M3239a) (Disk Image) 139.4 MB,
    when I opened eclipse it showed 2 errors
    The project cannot be built until path errors are resolved
    Unbound classpath container: 'JRE System Library [Java-1.7]'
    how can i resolve this problem.
    can someone please help me, i am really new to these stuffs.

    I have the exact same problem. I'll try to find out but if someone could help us it would be grate.
    In my error message it says:
    The project cannot be built until path errors are resolved
    Unbound classpath container: 'JRE System Library [JavaSE-1.6]

  • Manifest attribute Class-Path

    Hi !!
    I can't get the Class-Path attribute to function properbly, what i'm trying to do is to include all the jar files my application uses, in one jar file. Where the resources is specified in the Class-Path attribute.
    But the Classloader, can't find any of the resouces specified in the Class-Path attribute.
    Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException
    I'm running on a Windows 2000 with the following java version:
    Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
    My commandline; java -cp: mh-app.jar dk.wavetech.mh.MH
    mh-app.jar has the following structure
    dk/wavetech/mh/MH.class
    lib/jdom.jar
    lib/xerces.jar
    lib/jms.jar
    lib/log4j.jar
    meta-inf/manifest.mf
    My Manifest looks like this.
    Manifest-Version: 1.0
    Created-By: Ant 1.4.5
    Class-Path: lib/log4j.jar lib/jms.jar lib/xerces.jar lib/jdom.jar
    best regards,
    Thomas Engelschmidt

    Hi,
    If you are going to run a JAR file and make use of the classpath in your Manifest-file you need to do like this:
    java -jar mh-app.jar
    You also need to include your main class (starting class) in the Manifest file. like this:
    Main-Class: Application
    That's it!
    /Michael

  • Regarding class path setting

    Hi,
    I am new to java How can i Set a class path in my sytem to run java programs and tomcat and ant .
    I declated like below in Environment varialble.
    JAVA_HOME
    c:\javasdk\jdk\jre\ext;C;\javasdk\bin;
    ANT_HOME
    c:\ant\bin;
    CATALINA_HOME
    C:\tomcat\bin;c:\tomcat\common\bin;
    when I am running the startup.bat in commandprompt the it showedd me aan error like this.
    CATALINA_HOME environment variable is not deffined correctly, this environment variable is needed to run thhis proram.
    when I am running the ANT then it showed me an error like this.
    build.xml file does not found. But i Wrote the build.xml file in ant\bin.
    Please let me know the where is sthe mistake. It is very urgent to me.

    I love all these questions that go "I'm really new to Java, so new I don't even know how to set or use a classpath. How do I get my application server to work?"
    Like a first-week med student trying a heart transplant

Maybe you are looking for