@ApplicationScoped public class PanelHelpManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ABOUT |
static String |
EDIT_USAGE |
static String |
LANG |
static String |
NAME |
static String |
PANEL_ID |
static String |
PANEL_PARAMETER |
static String |
PHELP |
static String |
TEXT |
static String |
USAGE |
Constructor and Description |
---|
PanelHelpManager() |
Modifier and Type | Method and Description |
---|---|
protected String |
escape(String s) |
protected PanelAbout |
getAboutFromNode(Node node) |
protected Document |
getDocument(InputStream is)
Convert given input stream to a Document.
|
protected PanelHelp |
getPanelHelp(Document doc) |
protected Map |
getTextsFromNode(Node node) |
PanelHelp |
readPanelHelp(InputStream is)
Read a panel help from an input stream
|
protected void |
writeAbout(Writer writer,
PanelAbout about) |
protected void |
writeEditUsage(Writer writer,
PanelHelp help) |
void |
writePanelHelp(OutputStream os,
PanelHelp pHelp)
Write the panel help to an outputStream
|
protected void |
writePanelIds(Writer writer,
String[] ids) |
protected void |
writeParameters(Writer writer,
PanelHelp help) |
protected void |
writeText(Writer writer,
String text,
String lang) |
protected void |
writeUsage(Writer writer,
PanelHelp help) |
public static final String PHELP
public static final String PANEL_ID
public static final String ABOUT
public static final String USAGE
public static final String EDIT_USAGE
public static final String PANEL_PARAMETER
public static final String TEXT
public static final String LANG
public static final String NAME
public PanelHelp readPanelHelp(InputStream is) throws IOException, SAXException
is
- IOException
SAXException
public void writePanelHelp(OutputStream os, PanelHelp pHelp) throws IOException
os
- IOException
protected void writeParameters(Writer writer, PanelHelp help) throws IOException
IOException
protected void writeUsage(Writer writer, PanelHelp help) throws IOException
IOException
protected void writeEditUsage(Writer writer, PanelHelp help) throws IOException
IOException
protected void writePanelIds(Writer writer, String[] ids) throws IOException
IOException
protected void writeAbout(Writer writer, PanelAbout about) throws IOException
IOException
protected void writeText(Writer writer, String text, String lang) throws IOException
IOException
protected Document getDocument(InputStream is) throws SAXException, IOException
is
- SAXException
IOException
protected PanelAbout getAboutFromNode(Node node)
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.