Class ContainsSelector

java.lang.Object
com.simsilica.lemur.style.ContainsSelector
All Implemented Interfaces:
Selector

public class ContainsSelector extends Object implements Selector
A style selector that matches any element with the specified child ID and parent ID. For example, if an element ID is "slider.thumb.button" then there are several "parent"/"child" relationships:
  • slider, thumb
  • slider, button
  • thumb, button
A ContainsSelector of ("slider", "button") would match any of a slider's buttons, to include the thumb or any arrow buttons, etc..

Note: mostly callers do not have to worry about the specifics of this class as there are methods on Styles that create these selectors internally.

  • Constructor Details

    • ContainsSelector

      public ContainsSelector(String parent, String child)
  • Method Details