TS 69 JavaFX CodeCompletion

(Difference between revisions)
({{testcase|Package}})
(Object Literal)
 
Line 174: Line 174:
   radius
   radius
   transforms
   transforms
 +
</pre> </code>
 +
 +
 +
=== {{testcase|Events}} ===
 +
*  Copy the code to the editor:
 +
<code> <pre>       
 +
import javafx.scene.shape.Circle;
 +
 +
var radius1 = 10;
 +
var radius2 = 20;
 +
 +
 +
Circle{
 +
    radius:
 +
}
 +
 +
</pre> </code> 
 +
*  Invoke Code Completion (press &lt;Ctrl+Space&gt;).
 +
** {{result|EXPECTED RESULT:  The following items should be suggested  }}
 +
<code><pre>       
 +
  radius1
 +
  raidus2
 +
  bind
</pre> </code>
</pre> </code>

Current revision as of 10:19, 4 August 2010

Author: Alexandr Scherbatiy
Version: 1.1
Last update: 17 February 2010
Introduction:
Comments:


Contents




Imports

Package

  • Type in the editor:
         
import ja
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  java
  javafx
  javax

Long Package

  • Type in the editor:
         
import javafx.
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  scene
  stage
  math
  ...

Class Names

  • Type in the editor:
         
import javafx.scene.
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  Scene
  Node
  Group
  ...


File

Keywords

  • Type in the editor:
         
pu
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  public
  public-read


Methods

  • Type in the editor:
         
pr
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  print(arg0:Object)
  println(arg0:Object)

Objects

  • Type in the editor:
         
Ell
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  Ellipse (javafx.scene.shape)
  Ellipse2D (java.awt.geom)

Class

Keywords

  • Type in the editor:
class A{         
   pu
}
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  public
  public-init
  public-read


Variables

  • Type in the editor:
class A{
    public var name1:String;
    public var name2:String;
    
    public function func(){
        na
    }

}
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  name1 String
  name2 String

Functions

  • Type in the editor:
class A{
    public function func1(){
    }

    public function func2(){
        fu
    }

}
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  func1()
  func2()

Object Literal

Attributes

  • Copy the code to the editor:
         
import javafx.scene.shape.Circle;

Circle {

}
  • Position the cursor inside the Circle component declaration
  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  centerX
  centerY
  radius
  transforms


Events

  • Copy the code to the editor:
         
import javafx.scene.shape.Circle;

var radius1 = 10;
var radius2 = 20;


Circle{
    radius: 
}

  • Invoke Code Completion (press <Ctrl+Space>).
    • EXPECTED RESULT: The following items should be suggested
         
  radius1
  raidus2
  bind
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo