All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.JavaFXattributes.stg Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version

attrDecl(type, name, value) ::= <<   private Property  = _init();>>

init(v) ::= " = "


initMethod(type, name) ::=
<<
   private Property _init()
   {
      Property result = new SimpleProperty();
      result.addListener((observable, oldValue, newValue) -> firePropertyChange("", oldValue, newValue));
      return result;
   }
>>

propertyDecl(name) ::=
<<   public static final String PROPERTY_ = "";>>


attrGet(name, type) ::= <<
   public  get()
   {
      return .getValue();
   }
>>


attrSet(class, name, type, useEquals) ::=
<<
   public  set( value)
   {
      this..setValue(value);
      return this;
   }
>>

propertyGet(type, name) ::=
<<
   public Property Property()
   {
      return ;
   }
>>


condition(name, type, useEquals) ::=
<%
value == null ? this. != null : ! value.equals(this.)

value != this.

%>


cap(n) ::=
<%

%>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy