Package it.tidalwave.role.ui.function
Class CopyIfEmptyOrConform
- java.lang.Object
-
- it.tidalwave.role.ui.function.BoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE>
-
- it.tidalwave.role.ui.function.UnaryBoundFunctionSupport<T,T>
-
- it.tidalwave.role.ui.function.WeakCopyFunctionSupport<java.lang.String>
-
- it.tidalwave.role.ui.function.CopyIfEmptyOrConform
-
- All Implemented Interfaces:
Changeable<java.lang.String>
,ChangingSource<java.lang.String>
,BoundFunction<java.lang.String,java.lang.String>
public class CopyIfEmptyOrConform extends WeakCopyFunctionSupport<java.lang.String>
- Author:
- Fabrizio Giudici
-
-
Field Summary
-
Fields inherited from class it.tidalwave.role.ui.function.WeakCopyFunctionSupport
targetValue
-
Fields inherited from class it.tidalwave.role.ui.function.UnaryBoundFunctionSupport
source, value
-
-
Constructor Summary
Constructors Constructor Description CopyIfEmptyOrConform(ChangingSource<java.lang.String> sourceProperty)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopyIfEmptyOrConform
copyIfEmptyOrConform(ChangingSource<java.lang.String> source)
protected boolean
shouldChange(java.lang.String oldValue, java.lang.String newValue)
-
Methods inherited from class it.tidalwave.role.ui.function.WeakCopyFunctionSupport
function, onSourceChange, set
-
Methods inherited from class it.tidalwave.role.ui.function.UnaryBoundFunctionSupport
get
-
Methods inherited from class it.tidalwave.role.ui.function.BoundFunctionSupport
fireValueChanged, fireValueChanged, unbindAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.tidalwave.role.ui.ChangingSource
addPropertyChangeListener, getPropertyChangeListeners, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
CopyIfEmptyOrConform
public CopyIfEmptyOrConform(@Nonnull ChangingSource<java.lang.String> sourceProperty)
-
-
Method Detail
-
copyIfEmptyOrConform
@Nonnull public static CopyIfEmptyOrConform copyIfEmptyOrConform(@Nonnull ChangingSource<java.lang.String> source)
-
shouldChange
protected boolean shouldChange(java.lang.String oldValue, java.lang.String newValue)
- Specified by:
shouldChange
in classWeakCopyFunctionSupport<java.lang.String>
-
-