Last active
August 22, 2017 01:55
-
-
Save kevzlou7979/1f1581a5bf432282d5cd0b6fefdf7fb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.insclix.auction.client.page.claims; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.uibinder.client.UiBinder; | |
import com.google.gwt.uibinder.client.UiField; | |
import com.insclix.auction.shared.models.Claims; | |
import com.insclix.errai.mvc.client.controller.NoControls; | |
import com.insclix.errai.mvc.client.view.AbstractModelView; | |
import com.insclix.errai.mvc.client.view.AbstractView; | |
import com.insclix.errai.mvc.client.view.ViewComposite; | |
import gwt.material.design.client.ui.MaterialColumn; | |
import gwt.material.design.client.ui.MaterialLink; | |
import insclix.core.ui.client.base.components.BaseView; | |
import org.jboss.weld.context.bound.Bound; | |
import javax.enterprise.context.Dependent; | |
import javax.inject.Inject; | |
@Dependent | |
public class ClaimItem extends AbstractModelView<Claims, MaterialColumn, NoControls> { | |
interface ViewBinder extends UiBinder<MaterialColumn, ClaimItem> { | |
} | |
@UiField @Bound | |
MaterialLink vin; | |
@Inject | |
public ClaimItem() { | |
super(GWT.<UiBinder<MaterialColumn, ViewComposite>>create(ClaimItem.ViewBinder.class)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.insclix.auction.shared.models; | |
import org.jboss.errai.databinding.client.api.Bindable; | |
import java.util.List; | |
@Bindable | |
public class Claims { | |
private String vin; | |
private String image; | |
private double price; | |
private List<Damage> damages; | |
public Claims() { | |
} | |
public Claims(String vin, String image, double price, List<Damage> damages) { | |
this.vin = vin; | |
this.image = image; | |
this.price = price; | |
this.damages = damages; | |
} | |
public String getVin() { | |
return vin; | |
} | |
public void setVin(String vin) { | |
this.vin = vin; | |
} | |
public String getImage() { | |
return image; | |
} | |
public void setImage(String image) { | |
this.image = image; | |
} | |
public List<Damage> getDamages() { | |
return damages; | |
} | |
public void setDamages(List<Damage> damages) { | |
this.damages = damages; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment