templates.JavaFXattributes.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fulib Show documentation
Show all versions of fulib Show documentation
Fulib is a Java-code generating library.
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