Class ByteProperty<K>
java.lang.Object
This is the byte specific version of numeric property
-
Constructor Summary
ConstructorsConstructorDescriptionByteProperty(String name) Creates a byte property with the given name.ByteProperty(String name, Byte value) Creates a byte property with the given name and initial value. -
Method Summary
Modifier and TypeMethodDescriptionbytegetByte()Returns the value as a primitive, if the value is null/nullable this will fail...Methods inherited from class NumericProperty
isNullable, set, setNullableModifier and TypeMethodDescriptionbooleanIf the field is nullableset(null)will failSets the property value and potentially fires a change eventvoidsetNullable(boolean nullable) If the field is nullableset(null)will failMethods inherited from class PropertyBase
addChangeListener, bindGlobalGetListener, bindGlobalSetListener, firePropertyChanged, getClientProperty, getGenericType, getLabel, getName, putClientProperty, removeChangeListener, setLabel, stopListening, validateCollectionTypeModifier and TypeMethodDescriptionvoidFires a notification that a property value changed to the given listenerstatic voidbindGlobalGetListener(PropertyChangeListener listener) Binds an event callback for get calls and property readsstatic voidbindGlobalSetListener(PropertyChangeListener listener) Binds an event callback for set calls and property mutationprotected voidDelivers the property change event to listeners if applicablegetClientProperty(String key) Returns the client property set to this property nameReturns the generic type of this property if it is known or nullgetLabel()The label of the property defaults to its name but can be changed to anythinggetName()The property name is immutable and can't be changed after creation it should match the parent field name by conventionvoidputClientProperty(String key, Object o) Places a property that will apply statically to all instances of this propertyvoidRemoves the property change listener from the list of listenersvoidThe label of the property defaults to its name but can be changed to anything, it can be used when binding a property to UI elementsvoidThis method will work when invoked from a propertyChanged callback and should be similar toremovePropertyChangeListener(this).protected final voidvalidateCollectionType(Class elementType) Validates that the collection type is valid and throws an exception otherwiseMethods inherited from class Object
clone, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()final ClassgetClass()Returns the runtime class of an object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
ByteProperty
Creates a byte property with the given name. -
ByteProperty
-
-
Method Details
-
getByte
public byte getByte()Returns the value as a primitive, if the value is null/nullable this will fail...
Returns
the numeric value
-