Servis-Rhino 4211B Guia do Utilizador Página 253

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 298
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 252
Chrome Apps are a Google provided framework for building and running Chrome based
applications that can be executed in the same fashion as native applications.
The entry point into a Chrome App is:
chrome.app.runtime.onLaunched.addListener(function() {
// Insert code here to do something.
});
We can create a window with:
chrome.app.window.create('main.html', {
id:
bounds: {
width:
height:
left:
top:
},
minWidth:
minHeight:
});
See also:
What are Chrome Apps?
Building a Chrome App
The following is the high level recipe:
1. Create the manifest
2. Create the background script
3. Create a window page
4. Create the icons
5. Launch the app
The Manifest
The manifest is a file called "manifest.json" that contains the core description of your
application.
See also:
The Manifest file
The Background Script
See also:
Chrome App JavaScript APIs
JavaFX
Although strictly not a mobile capability, it is important to understand the concept of the JavaFX
platform. JavaFX is the UI technology shipped with Java (1.7.0.51 and above). For Java 8 onwards
it can be assured to be present. JavaFX is a "classic" thick client technology. It has a super rich
API that is available to a Java programmer. Arguably, Java is one of the most mature languages
available today with the broadest set of functions and skills available. Historically, Java has had a
number of UI technologies starting with AWT, then Swing and now JavaFX. JavaFX deprecates
Page 253
Vista de página 252
1 2 ... 248 249 250 251 252 253 254 255 256 257 258 ... 297 298

Comentários a estes Manuais

Sem comentários