org.kalmeo.kuix.core.style
Class StyleSelector

java.lang.Object
  extended by org.kalmeo.kuix.core.style.StyleSelector

public class StyleSelector
extends java.lang.Object

A StyleSelector represents the full CSS defined path that represent a style.
For example : screen container.myclass button:hover will be represented by a tree of three StyleSelectors where names are respectively : screen, container.myclass, button:hover.

Author:
bbeaulant

Field Summary
 java.lang.String name
           
 StyleSelector parent
           
 
Constructor Summary
StyleSelector(java.lang.String name)
          Construct a StyleSelector
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.lang.String[] getPseudoClasses()
           
 java.lang.String getStyleClass()
           
 java.lang.String getTag()
           
 boolean hasClass()
           
 boolean hasId()
           
 boolean hasParent()
           
 boolean hasPseudoClass()
           
 boolean hasTag()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

parent

public StyleSelector parent
Constructor Detail

StyleSelector

public StyleSelector(java.lang.String name)
Construct a StyleSelector

Parameters:
name -
Method Detail

hasParent

public boolean hasParent()
Returns:
true if this StyleSelector has parent

hasTag

public boolean hasTag()
Returns:
the hasTag

hasId

public boolean hasId()
Returns:
the hasId

hasClass

public boolean hasClass()
Returns:
the hasClass

hasPseudoClass

public boolean hasPseudoClass()
Returns:
the hasPseudoClass

getPseudoClasses

public java.lang.String[] getPseudoClasses()
Returns:
the pseudoClasses

getTag

public java.lang.String getTag()
Returns:
the tag

getId

public java.lang.String getId()
Returns:
the id

getStyleClass

public java.lang.String getStyleClass()
Returns:
the styleClass

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2007-2008 Kalmeo. All Rights Reserved.