Interface SyTextViewType
- All Superinterfaces:
SyActiveReadableType, SyActiveType, SyBoundedReadableType<SySpaceParentRelativeType>, SyBoundedType<SySpaceParentRelativeType>, SyComponentReadableType, SyComponentType, SyEventReceiverType, SyKeyboardFocusableReadableType, SyKeyboardFocusableType, SyMouseFocusAcceptingReadableType, SyMouseFocusAcceptingType, SySizedReadableType<SySpaceParentRelativeType>, SySizedType<SySpaceParentRelativeType>, SyTextViewReadableType, SyThemeableReadableType, SyThemeableType, SyVisibleReadableType, SyVisibleType
Write access to text views.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidSet the text.default voidsetTextSelectable(boolean selectable) Set whether the text view is selectable.com.io7m.jattribute.core.AttributeType<SyText> text()com.io7m.jattribute.core.AttributeType<Boolean> Methods inherited from interface SyActiveReadableType
isMouseOverMethods inherited from interface SyActiveType
activity, setActiveMethods inherited from interface SyBoundedReadableType
boundingAreaMethods inherited from interface SyBoundedType
position, setPositionMethods inherited from interface SyComponentReadableType
ancestorMatchingReadable, childCount, isActive, isVisible, nodeReadable, relativePositionOf, screen, viewportPositionOf, windowReadableMethods inherited from interface SyComponentType
ancestorMatching, childAdd, childRemove, childrenClear, componentForWindowRelative, layout, node, windowMethods inherited from interface SyEventReceiverType
eventSendMethods inherited from interface SyKeyboardFocusableType
keyboardFocusBehaviorMethods inherited from interface SyMouseFocusAcceptingReadableType
isMouseQueryAcceptingMethods inherited from interface SyMouseFocusAcceptingType
setMouseQueryAcceptingMethods inherited from interface SySizedType
setSize, setSizeUpperLimit, size, sizeUpperLimitMethods inherited from interface SyTextViewReadableType
isTextSelectable, minimumSizeRequired, themeClassesDefaultForComponentMethods inherited from interface SyThemeableReadableType
themeClassesExtra, themeClassesInPreferenceOrderMethods inherited from interface SyVisibleType
setVisible, visibility
-
Method Details
-
textSelectable
com.io7m.jattribute.core.AttributeType<Boolean> textSelectable()- Specified by:
textSelectablein interfaceSyTextViewReadableType- Returns:
- An attribute indicating if this text view is selectable
-
text
com.io7m.jattribute.core.AttributeType<SyText> text()- Specified by:
textin interfaceSyTextViewReadableType- Returns:
- The current text
-
setTextSelectable
default void setTextSelectable(boolean selectable) Set whether the text view is selectable.- Parameters:
selectable-trueif the text view is selectable
-
setText
-