|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxe.FonctionAjStyle
public class FonctionAjStyle
Fonction permettant d'appliquer un style sur une zone du document. L'élément correspondant au style ajouté est passé en paramètre du constructeur.
| Field Summary | |
|---|---|
private org.w3c.dom.Element |
_elStyle
|
private static org.apache.log4j.Logger |
LOG
Logger for this class |
| Constructor Summary | |
|---|---|
FonctionAjStyle(org.w3c.dom.Element elem)
|
|
| Method Summary | |
|---|---|
private static void |
ajoutNouveauJEStyle(JaxeDocument doc,
javax.swing.text.Position debut,
java.lang.String texte,
JEStyle baseJEStyle,
org.w3c.dom.Element elStyle)
Ajout d'un nouveau JEStyle, éventuellement en reprenant les mêmes styles qu'un autre JEStyle, et éventuellement en ajoutant un style en plus. |
private static void |
ajoutNouveauJETexte(JaxeDocument doc,
javax.swing.text.Position debut,
java.lang.String texte)
Ajout d'un nouveau JETexte. |
boolean |
appliquer(JaxeDocument doc,
int start,
int end)
Applique la fonction au document. |
private static boolean |
containsNode(java.util.List<org.w3c.dom.Element> list,
org.w3c.dom.Node node)
|
private static boolean |
dejaApplique(JEStyle js,
org.w3c.dom.Element elStyle)
Renvoie true si l'élément elStyle est dans le JEStyle |
private static org.w3c.dom.Element |
refParentConfig(JaxeDocument doc,
JaxeElement je,
Config conf)
Renvoie la référence du JaxeElement je s'il est dans la config conf, ou du parent de je dans conf sinon |
private static boolean |
tostyle(JaxeElement je,
org.w3c.dom.Element elStyle)
Applique le style à un JEStyle ou un JETexte |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger LOG
private final org.w3c.dom.Element _elStyle
| Constructor Detail |
|---|
public FonctionAjStyle(org.w3c.dom.Element elem)
| Method Detail |
|---|
public boolean appliquer(JaxeDocument doc,
int start,
int end)
Fonction
appliquer in interface Fonction
private static boolean tostyle(JaxeElement je,
org.w3c.dom.Element elStyle)
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
private static org.w3c.dom.Element refParentConfig(JaxeDocument doc,
JaxeElement je,
Config conf)
private static void ajoutNouveauJETexte(JaxeDocument doc,
javax.swing.text.Position debut,
java.lang.String texte)
private static void ajoutNouveauJEStyle(JaxeDocument doc,
javax.swing.text.Position debut,
java.lang.String texte,
JEStyle baseJEStyle,
org.w3c.dom.Element elStyle)
private static boolean containsNode(java.util.List<org.w3c.dom.Element> list,
org.w3c.dom.Node node)
private static boolean dejaApplique(JEStyle js,
org.w3c.dom.Element elStyle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||