You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the need to change the renderer of a StringField. While I can create a custom implementation of SimpleControlsimilar to SimpleTextControlI'd have to duplicate code as the SimpleTextControl defines most of its state & behavior using the private visibility modifier.
It would be better to migrate to protected, applying the factory method pattern where it makes sense, allowing subclasses to override specific behavior.
The text was updated successfully, but these errors were encountered:
I have the need to change the renderer of a
StringField
. While I can create a custom implementation ofSimpleControl
similar toSimpleTextControl
I'd have to duplicate code as theSimpleTextControl
defines most of its state & behavior using theprivate
visibility modifier.It would be better to migrate to
protected
, applying the factory method pattern where it makes sense, allowing subclasses to override specific behavior.The text was updated successfully, but these errors were encountered: