B4J Question [BANano]: [SOLVED] Using / Converting Own B4J Classes

Discussion in 'B4J Questions' started by Mashiane, Dec 12, 2018.

  1. Mashiane

    Mashiane Expert Licensed User

    Hi there

    Some time ago I created some base classes that I'm using for anything webapp programming I'm doing inclusive of the ABM things I did. These classes I have also used for the custom components in ABM.

    I posted these here many moons ago. Seeing that BaNano is an interesting concept I'd like to explore, I wondering if it will be possible to have my base classes working with BANano? Can you please advise?

    Scenario.

    1. HTMLElelement will be a base class for any HTML component I want to be created.
    2. I havent tried this with B4JS.
    3. Other HTML component classed will be created based on HTMLElement.
    4. The class references itself for chaining functionalities.

    Is something like this possible.
     
    joulongleu likes this.
  2. alwaysbusy

    alwaysbusy Expert Licensed User

    As long as it does not use anything from ABM, it should be transpilable. The upcoming BANano 1.07 will have some new stuff which will help you to write 'wrappers'.

    Your base classes can ony use the jcore and BANano libraries. Also, it can not use Types, so you will have to convert those to classes.
     
    joulongleu and Mashiane like this.
  3. Mashiane

    Mashiane Expert Licensed User

    This is going to be exciting, getting a pure js file from my B4J class to use on my projects. Wow, thanks.
     
    joulongleu likes this.
  4. Harris

    Harris Well-Known Member Licensed User

    Still pretty much Greek to me... Yet what I see so far, I may overcome. Looks good.
     
    joulongleu likes this.
  5. alwaysbusy

    alwaysbusy Expert Licensed User

    Don't worry:
     
  6. Harris

    Harris Well-Known Member Licensed User

    WTF? - Ok, I will beak out the Greek to harris translator...
     
    joulongleu and alwaysbusy like this.
  7. Harris

    Harris Well-Known Member Licensed User

    Translated - "it's not so hard to learn" - for you and others... but this is ME! (one big dummie...)
    I guess if I can handle ABM, this should be easy (providing it writes all my code - as per ABM (- translated/spiled to js / java / css / whatever it needs... )).
    All are aware of my aversion to these. They just spin me into a never ending circle - where nothing ever gets accomplished...

    That's where you, my friend, come to my emotional rescue... Be (our) saviour steadfast and true...

     
    Last edited: Dec 13, 2018
  8. Harris

    Harris Well-Known Member Licensed User

    I just hope that Erel doesn't mind when (me /us /we) interject a little off-topic humor / relevance into his on-topic forum thread (once in awhile).
    Lightens our heavy load, from time to time...
     
    Last edited: Dec 13, 2018
    joulongleu likes this.
  9. alwaysbusy

    alwaysbusy Expert Licensed User

    That is actually the big difference: one does need to know some of this stuff. I try to eliminate the need for it as much as possible (e.g. now with the new BANanoObject), but still...

    ABM is still the library we are using inhouse as it is very fast to build big WebApps. But as it doesn't need as much maintenance now (I think it is very mature and stable now), I have some time to experiment with this second library. BANano is meant as a backbone for webapps.

    I hope some of forum users who don't mind writing javascript/css/html, will make modules and share them on the forum so others can just use them.
    @Kiffi is already finishing a first one, and he will be sharing it shortly. I've seen a life demo of it and was very impressed with the result!
     
    joulongleu and Harris like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice