Package thing

Class ThinletDTD.Widget

java.lang.Object
thing.ThinletDTD.Widget
All Implemented Interfaces:
Comparable
Enclosing class:
ThinletDTD

public static class ThinletDTD.Widget extends Object implements Comparable
A Widget represents a Thinlet component, such as "button" or "label".

Note that Widgets are comparable. The default sort order is to sort by name.

  • Method Details

    • getClassname

      public String getClassname()
    • getParent

      public ThinletDTD.Widget getParent()
    • getParentClassname

      public String getParentClassname()
    • getProperty

      public ThinletDTD.Property getProperty(String propName)
    • hasProperty

      public boolean hasProperty(String propName)
    • getProperties

      public ThinletDTD.Property[] getProperties()
    • getAllowedSubWidgets

      public ThinletDTD.Widget[] getAllowedSubWidgets()
    • isSubWidgetAllowed

      public boolean isSubWidgetAllowed(ThinletDTD.Widget subWidget)
    • isSubWidgetAllowed

      public boolean isSubWidgetAllowed(String classname)
    • isInstanceOf

      public boolean isInstanceOf(String classname)
      Checks whether the class of this Widget is derived from the Widget with the specified classname, by checking the parents of this Widget.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Object obj)
      Specified by:
      compareTo in interface Comparable
    • toString

      public String toString()
      Overrides:
      toString in class Object