Skip to content

Instantly share code, notes, and snippets.

@BenDol
Created August 6, 2015 02:20
Show Gist options
  • Save BenDol/c81cf59c4e0661d07104 to your computer and use it in GitHub Desktop.
Save BenDol/c81cf59c4e0661d07104 to your computer and use it in GitHub Desktop.
package doltech.api.wayhome.shared.models;
import fr.lteconsulting.hexa.databinding.properties.Properties;
import com.google.gwt.core.client.GWT;
import fr.lteconsulting.hexa.classinfo.gwt.ClazzBundle;
import fr.lteconsulting.hexa.classinfo.gwt.ReflectedClasses;
/**
* Observable class generated from {@link doltech.api.wayhome.shared.models.Setting}
* Generated by HexaBinding
* Made by LTE Consulting
*/
public final class ObservableSetting extends Setting
{
/**
* Runtime type information activation glue code.
* This interface declares the registration of
* the ObservableSetting class.
*/
interface ClassBundle extends ClazzBundle
{
@ReflectedClasses( classes = { ObservableSetting.class } )
void register();
}
/**
* Runtime type information activation glue code.
* This code effectively registers the runtime type information
* for the ObservableSetting class.
*/
static
{
GWT.<ClassBundle>create( ClassBundle.class ).register();
}
/**
* Constructor(s)
* Those are just calling the corresponding
* constructor(s) on the super class
*/
public ObservableSetting( )
{
super();
}
public ObservableSetting( Setting o )
{
this.id = o.id;
this.person = o.person;
this.email = o.email;
setName(o.getName());
setDescription(o.getDescription());
setValue(o.getValue());
setType(o.getType());
}
/**
* Setters and getters
*/
/**
* Setter for the 'id' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param id the property value to set
*/
@Override
public void setId( int id )
{
super.setId( id );
Properties.notify( this, "id" );
}
/**
* Setter for the 'person' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param person the property value to set
*/
@Override
public void setPerson( doltech.api.wayhome.shared.ldapobjects.LdapPerson person )
{
super.setPerson( person );
Properties.notify( this, "person" );
}
/**
* Setter for the 'email' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param email the property value to set
*/
@Override
public void setEmail( doltech.api.wayhome.shared.models.Email email )
{
super.setEmail( email );
Properties.notify( this, "email" );
}
/**
* Setter for the 'name' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param name the property value to set
*/
@Override
public void setName( java.lang.String name )
{
super.setName( name );
Properties.notify( this, "name" );
}
/**
* Setter for the 'description' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param description the property value to set
*/
@Override
public void setDescription( java.lang.String description )
{
super.setDescription( description );
Properties.notify( this, "description" );
}
/**
* Setter for the 'value' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param value the property value to set
*/
@Override
public void setValue( java.lang.String value )
{
super.setValue( value );
Properties.notify( this, "value" );
}
/**
* Setter for the 'type' property.<br/>
*
* Note that it just delegates the call to
* the super class and notify the property
* system about the change
*
* @param type the property value to set
*/
@Override
public void setType( nz.co.doltech.framework.shared.constants.SettingType type )
{
super.setType( type );
Properties.notify( this, "type" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment