pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Martin <agrel...@gmail.com>
Subject Desktop HelloBXML in NetRexx without package statement;Cool stuff!
Date Sat, 06 Jan 2018 13:26:12 GMT
import org.apache.pivot.beans.BXMLSerializer
import org.apache.pivot.collections.Map
import org.apache.pivot.wtk.Application
import org.apache.pivot.wtk.DesktopApplicationContext
import org.apache.pivot.wtk.Display
import org.apache.pivot.wtk.Window

class HelloBXML public implements Application


  properties private
    win=Window null

  method startup(display=Display,properties=Map) signals Exception
    bxml=BXMLSerializer()
    win=Window bxml.readObject(HelloBXML.class,"hello.bxml")
    win.open(display)

  method shutdown(optional=boolean) returns boolean
    if win\==null then do
      win.close()
    end
    return 0

  method suspend

  method resume

  method main(args=String[]) static
    DesktopApplicationContext.main(HelloBXML.class,args)

Mime
View raw message