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, type
Fields 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.boolean
Methods inherited from class org.autogui.base.type.GuiTypeMemberProperty
compareGet, description, executeGet, getAcceleratorKeyStroke, getChildren, getDescription, getField, getFieldName, getGetter, getGetterName, getSetter, getSetterName, getType, history, isHistoryValueSupported, join, keyStroke, select, select, setField, setFieldName, setGetter, setGetterName, setSetter, setSetterName, setType, toString
Methods 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:GuiTypeMemberProperty
execute the property method or obtain the value of the property field- Overrides:
executeGet
in classGuiTypeMemberProperty
- Parameters:
target
- the property holder, nullable.- Returns:
- the property value or
GuiUpdatedValue.NO_UPDATE
if the target is null or the property is static
-
executeSet
Description copied from class:GuiTypeMemberProperty
execute the setter method or set the value of the property field if the target is null, nothing will happen.- Overrides:
executeSet
in classGuiTypeMemberProperty
- Parameters:
target
- the field or setter targetvalue
- the value to be set- Returns:
- value, or null if error
-
isWritable
public boolean isWritable()- Overrides:
isWritable
in classGuiTypeMemberProperty
- Returns:
- true if it has a setter or a field
-