Created
April 30, 2012 18:00
-
-
Save niloc132/2560508 to your computer and use it in GitHub Desktop.
Package Name Has Cell
This file contains hidden or 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
public class HasCellImpl<M,V> implements HasCell<M,V> | |
{ | |
public HasCellImpl(ValueProvider<? super M, V> vp, Cell<V> cell) | |
{ | |
this.cell = cell; | |
this.vp = vp; | |
} | |
@Override | |
public Cell<V> getCell() | |
{ | |
return this.cell; | |
} | |
@Override | |
public FieldUpdater<M, V> getFieldUpdater() { return null; } // not editable, unless it is... then make this return `this` and make the setValue proxy to vp.setValue | |
@Override | |
public V getValue(M object) | |
{ | |
return vp.getValue(object); | |
} | |
private final Cell<V> cell; | |
private final ValueProvider<? super M, V> vp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment