java.lang.Object
org.autogui.base.type.GuiTypeMember
org.autogui.base.type.GuiTypeMemberProperty
org.autogui.swing.LambdaProperty.LambdaElementProperty<E,T>
- All Implemented Interfaces:
GuiTypeElement
- Enclosing class:
LambdaProperty<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.autogui.base.type.GuiTypeMember
GuiTypeMember.MemberOrdinal -
Field Summary
FieldsFields inherited from class org.autogui.base.type.GuiTypeMemberProperty
description, field, fieldName, getterName, history, keyStroke, setterName, typeFields inherited from class org.autogui.base.type.GuiTypeMember
name, ordinal, owner -
Constructor Summary
ConstructorsConstructorDescriptionLambdaElementProperty(String name, Class<?> type, Function<E, T> getter, BiConsumer<E, T> setter) -
Method Summary
Modifier and TypeMethodDescriptionexecuteGet(Object target) execute the property method or obtain the value of the property fieldexecuteSet(Object target, Object value) execute the setter method or set the value of the property field if the target is null, nothing will happen.booleanMethods inherited from class org.autogui.base.type.GuiTypeMemberProperty
compareGet, description, executeGet, getAcceleratorKeyStroke, getChildren, getDescription, getField, getFieldName, getGetter, getGetterName, getInits, getSetter, getSetterName, getType, history, isHistoryValueSupported, join, keyStroke, select, select, setField, setFieldName, setGetter, setGetterName, setSetter, setSetterName, setType, toStringMethods inherited from class org.autogui.base.type.GuiTypeMember
findOwnerMethod, getName, getOrdinal, getOwner, setOrdinal, setOwner
-
Field Details
-
getter
-
setter
-
-
Constructor Details
-
LambdaElementProperty
-
-
Method Details
-
executeGet
Description copied from class:GuiTypeMemberPropertyexecute the property method or obtain the value of the property field- Overrides:
executeGetin classGuiTypeMemberProperty- Parameters:
target- the property holder, nullable.- Returns:
- the property value or
GuiUpdatedValue.NO_UPDATEif the target is null or the property is static
-
executeSet
Description copied from class:GuiTypeMemberPropertyexecute the setter method or set the value of the property field if the target is null, nothing will happen.- Overrides:
executeSetin classGuiTypeMemberProperty- Parameters:
target- the field or setter targetvalue- the value to be set- Returns:
- value, or null if error
-
isWritable
public boolean isWritable()- Overrides:
isWritablein classGuiTypeMemberProperty- Returns:
- true if it has a setter or a field
-