com.itextpdf.tool.xml.css
Class CssSelector

java.lang.Object
  extended by com.itextpdf.tool.xml.css.CssSelector

public class CssSelector
extends Object

Author:
redlab_b

Constructor Summary
CssSelector()
           
 
Method Summary
 Set<String> createAllSelectors(Tag t)
          Calls each method in this class and returns an aggregated list of selectors.
 Set<String> createClassSelectors(Tag t)
          Creates the class selectors, each class is prepended with a ".".
 Set<String> createIdSelector(Tag t)
          Creates the selector for id, the id is prepended with '#'.
 Set<String> createTagSelectors(Tag t)
          Creates selectors for a given tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssSelector

public CssSelector()
Method Detail

createAllSelectors

public Set<String> createAllSelectors(Tag t)
Calls each method in this class and returns an aggregated list of selectors.

Parameters:
t - the tag
Returns:
set of selectors

createTagSelectors

public Set<String> createTagSelectors(Tag t)
Creates selectors for a given tag.

Parameters:
t - the tag to create selectors for.
Returns:
all selectors for the given tag.

createClassSelectors

public Set<String> createClassSelectors(Tag t)
Creates the class selectors, each class is prepended with a ".".

Parameters:
t - the tag
Returns:
set of Strings

createIdSelector

public Set<String> createIdSelector(Tag t)
Creates the selector for id, the id is prepended with '#'.

Parameters:
t - the tag
Returns:
set of Strings


Copyright © 2012. All Rights Reserved.