public class ImageValueSemanticsProvider extends ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>
ValueSemanticsProviderAndFacetAbstract.EqualByContent, ValueSemanticsProviderAndFacetAbstract.ImmutabilityFacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingREVERSE_BASE_64_CHARS| Constructor and Description |
|---|
ImageValueSemanticsProvider(FacetHolder holder,
IsisConfiguration configuration,
ValueSemanticsProviderContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysReplace()
We don't replace any (none no-op) facets.
|
ObjectAdapter |
createValue(Image image) |
int |
getHeight(ObjectAdapter object) |
Image |
getImage(ObjectAdapter object) |
protected int[][] |
getPixels(Object object) |
Facet |
getUnderlyingFacet()
|
Class<?> |
getValueClass() |
int |
getWidth(ObjectAdapter object) |
boolean |
isNoop()
Assume implementation is not a no-op.
|
protected org.apache.isis.applib.value.Image |
setPixels(int[][] pixels) |
void |
setUnderlyingFacet(Facet underlyingFacet)
Not required because
alwaysReplace() is false. |
String |
toString() |
createImage, doEncode, doParse, doRestore, getAsByteArray, getFacetHolder, getIconName, getParser, grabPixels, isDerived, restoreFromByteArray, setFacetHolder, setMask, titleString, titleStringWithMaskcreateAdapter, determineNumberFormat, displayTitleOf, displayTitleOf, doParse, fromEncodedString, getAdaptedClass, getAdapterManager, getAuthenticationSessionProvider, getClock, getConfiguration, getContext, getDefaultsProvider, getDefaultValue, getDependencyInjector, getEncoderDecoder, getSpecification, getSpecificationLookup, isEqualByContent, isImmutable, parseableTitleOf, parseTextEntry, titleString, toEncodedString, typicalLengthfacetType, getIdentified, toStringValuespublic ImageValueSemanticsProvider(FacetHolder holder, IsisConfiguration configuration, ValueSemanticsProviderContext context)
public int getHeight(ObjectAdapter object)
public Image getImage(ObjectAdapter object)
protected int[][] getPixels(Object object)
getPixels in class ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>public Class<?> getValueClass()
public int getWidth(ObjectAdapter object)
protected org.apache.isis.applib.value.Image setPixels(int[][] pixels)
setPixels in class ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>public Facet getUnderlyingFacet()
FacetgetUnderlyingFacet in interface FacetgetUnderlyingFacet in class ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>public void setUnderlyingFacet(Facet underlyingFacet)
alwaysReplace() is false.setUnderlyingFacet in interface FacetsetUnderlyingFacet in class ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>public boolean alwaysReplace()
ValueSemanticsProviderAndFacetAbstract
For example, if there is already a PropertyDefaultFacet then we
shouldn't replace it.
alwaysReplace in interface FacetalwaysReplace in class ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>public boolean isNoop()
FacetAbstractNo-op implementations should override and return true.
isNoop in interface FacetisNoop in class FacetAbstractpublic String toString()
toString in class ImageValueSemanticsProviderAbstract<org.apache.isis.applib.value.Image>public ObjectAdapter createValue(Image image)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.