Class FileContentAttribute
- java.lang.Object
-
- io.github.factoryfx.factory.attribute.Attribute<T,A>
-
- io.github.factoryfx.factory.attribute.ImmutableValueAttribute<byte[],A>
-
- io.github.factoryfx.factory.attribute.types.FileContentAttribute
-
- All Implemented Interfaces:
AttributeCopy<byte[]>,AttributeMatch<byte[]>,AttributeMerger<byte[]>,AttributeValue<byte[]>
public class FileContentAttribute extends ImmutableValueAttribute<byte[],A>
File content as byte[] and metadata for file selection
-
-
Field Summary
-
Fields inherited from class io.github.factoryfx.factory.attribute.ImmutableValueAttribute
value
-
-
Constructor Summary
Constructors Constructor Description FileContentAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileContentAttributefileExtension(java.lang.String fileExtension)ui hint what files should be stored in the attributejava.lang.StringgetDisplayText()java.lang.Stringinternal_getFileExtension()booleaninternal_mergeMatch(AttributeMatch<byte[]> value)alternative to equals on value, type-safe , less verbose, without worrying about hidden contracts indented for merge some with some serial case e.g ObjectValueAttribute-
Methods inherited from class io.github.factoryfx.factory.attribute.ImmutableValueAttribute
defaultValue, get, getNullable, getValue, internal_addBackReferences, internal_copyTo, internal_required, internal_reset, internal_semanticCopyTo, internal_validate, nullable, set, setValue
-
Methods inherited from class io.github.factoryfx.factory.attribute.Attribute
addonText, createAttributeStorageMetadata, de, en, es, fr, internal_addListener, internal_endUsage, internal_getAddonText, internal_getListeners, internal_getPreferredLabelText, internal_getPreferredTooltipText, internal_hasWritePermission, internal_isUserReadOnly, internal_merge, internal_removeAllListener, internal_removeListener, it, labelText, labelText, listenersEmpty, permission, pt, tooltipDe, tooltipEn, updateListeners, userReadOnly, userReadOnly, validation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMatch
internal_referenceEquals, internal_referenceListEquals
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMerger
internal_mergeFactoryList
-
-
-
-
Method Detail
-
fileExtension
public FileContentAttribute fileExtension(java.lang.String fileExtension)
ui hint what files should be stored in the attribute- Parameters:
fileExtension- fileExtension e.g.: jks (for example.jks files)- Returns:
- self
-
internal_getFileExtension
public java.lang.String internal_getFileExtension()
-
getDisplayText
public java.lang.String getDisplayText()
- Overrides:
getDisplayTextin classImmutableValueAttribute<byte[],A extends Attribute<byte[],A>>
-
internal_mergeMatch
public boolean internal_mergeMatch(AttributeMatch<byte[]> value)
Description copied from interface:AttributeMatchalternative to equals on value, type-safe , less verbose, without worrying about hidden contracts indented for merge some with some serial case e.g ObjectValueAttribute- Specified by:
internal_mergeMatchin interfaceAttributeMatch<A extends Attribute<byte[],A>>- Overrides:
internal_mergeMatchin classImmutableValueAttribute<byte[],A extends Attribute<byte[],A>>- Parameters:
value- compare value- Returns:
- true if equals
-
-