org.kalmeo.kuix.core.style
Class StyleSelector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public java.lang.String name
parent
public StyleSelector parent
StyleSelector
public StyleSelector(java.lang.String name)
- Construct a
StyleSelector
- Parameters:
name
-
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.