public class ModelScriptMenuParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelScriptMenuParser.MenuType |
static class |
ModelScriptMenuParser.SimpleErrorHandler |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASECLASS |
static int |
DEFAULT_MAX_ROWS |
static boolean |
DEFAULT_SCROLLING |
static java.lang.String |
DEMOFILE_TAG |
static java.lang.String |
DEMOFILE_TAG_FILENAME |
static java.lang.String |
DIVIDER_TAG |
static int |
FONT_NAME |
static int |
FONT_SIZE |
static int |
FONT_STYLE |
static java.lang.String |
HIDDEN_TAG |
static java.lang.String |
LABEL_TAG |
static java.lang.String |
MENU_TAG |
static java.lang.String |
MENU_TAG_MAX_ROWS |
static java.lang.String |
MENU_TAG_SCROLLING |
static java.lang.String |
MODEL_TAG |
static java.lang.String |
MODEL_TAG_BUILD_ARGS |
static java.lang.String |
MODEL_TAG_CLASS |
static java.lang.String |
NODE_TAG_FONTNAME |
static java.lang.String |
NODE_TAG_FONTSIZE |
static java.lang.String |
NODE_TAG_FONTSTYLE |
static java.lang.String |
NODE_TAG_FONTSTYLE_BOLD |
static java.lang.String |
NODE_TAG_FONTSTYLE_ITALIC |
static java.lang.String |
NODE_TAG_TITLE |
static java.lang.String |
PACKAGE_TAG |
static java.lang.String |
PACKAGE_TAG_COMPACT |
static java.lang.String |
PACKAGE_TAG_MAX_ROWS |
static java.lang.String |
PACKAGE_TAG_NAME |
static java.lang.String |
PACKAGE_TAG_SCROLLING |
static java.lang.String |
PACKAGE_TAG_VIEW |
static java.lang.String |
PACKAGE_TAG_VIEW_FLAT |
static java.lang.String |
PACKAGE_TAG_VIEW_HIERARCHICAL |
static java.lang.String |
ROOT_TAG_MAX_ROWS |
static java.lang.String |
ROOT_TAG_SCROLLING |
static java.lang.String |
SCRIPT_FOLDER_TAG |
static java.lang.String |
SCRIPT_FOLDER_TAG_FILE |
static java.lang.String |
SCRIPT_FOLDER_TAG_MAX_ROWS |
static java.lang.String |
SCRIPT_FOLDER_TAG_SCROLLING |
static java.lang.String |
SCRIPT_TAG |
static java.lang.String |
SCRIPT_TAG_ARGS |
static java.lang.String |
SCRIPT_TAG_FILE |
Constructor and Description |
---|
ModelScriptMenuParser() |
Modifier and Type | Method and Description |
---|---|
static boolean |
classIsRootModel(java.lang.String classname) |
MenuEntry |
parseSimpleFile(java.io.File file) |
MenuEntry |
parseXML(java.io.File file,
ModelScriptMenu.Type type,
RootModelManager rmm) |
void |
writeXML(java.io.File file,
ModelScriptMenu.Type type,
MenuEntry menu) |
void |
writeXML(java.io.OutputStream out,
ModelScriptMenu.Type type,
MenuEntry menu) |
public static final java.lang.String ROOT_TAG_SCROLLING
public static final java.lang.String ROOT_TAG_MAX_ROWS
public static final java.lang.String MENU_TAG
public static final java.lang.String NODE_TAG_TITLE
public static final java.lang.String NODE_TAG_FONTNAME
public static final java.lang.String NODE_TAG_FONTSTYLE
public static final java.lang.String NODE_TAG_FONTSTYLE_BOLD
public static final java.lang.String NODE_TAG_FONTSTYLE_ITALIC
public static final int FONT_STYLE
public static final int FONT_NAME
public static final int FONT_SIZE
public static final java.lang.String NODE_TAG_FONTSIZE
public static final java.lang.String MENU_TAG_SCROLLING
public static final java.lang.String MENU_TAG_MAX_ROWS
public static final java.lang.String DIVIDER_TAG
public static final java.lang.String LABEL_TAG
public static final java.lang.String MODEL_TAG
public static final java.lang.String MODEL_TAG_CLASS
public static final java.lang.String MODEL_TAG_BUILD_ARGS
public static final java.lang.String DEMOFILE_TAG
public static final java.lang.String DEMOFILE_TAG_FILENAME
public static final java.lang.String PACKAGE_TAG
public static final java.lang.String PACKAGE_TAG_NAME
public static final java.lang.String PACKAGE_TAG_VIEW
public static final java.lang.String PACKAGE_TAG_VIEW_FLAT
public static final java.lang.String PACKAGE_TAG_VIEW_HIERARCHICAL
public static final java.lang.String PACKAGE_TAG_SCROLLING
public static final java.lang.String PACKAGE_TAG_MAX_ROWS
public static final java.lang.String PACKAGE_TAG_COMPACT
public static final java.lang.String HIDDEN_TAG
public static final java.lang.String SCRIPT_TAG
public static final java.lang.String SCRIPT_TAG_FILE
public static final java.lang.String SCRIPT_TAG_ARGS
public static final java.lang.String SCRIPT_FOLDER_TAG
public static final java.lang.String SCRIPT_FOLDER_TAG_FILE
public static final java.lang.String SCRIPT_FOLDER_TAG_SCROLLING
public static final java.lang.String SCRIPT_FOLDER_TAG_MAX_ROWS
public static final boolean DEFAULT_SCROLLING
public static final int DEFAULT_MAX_ROWS
public static final java.lang.String DEFAULT_BASECLASS
public void writeXML(java.io.File file, ModelScriptMenu.Type type, MenuEntry menu)
public void writeXML(java.io.OutputStream out, ModelScriptMenu.Type type, MenuEntry menu)
public MenuEntry parseXML(java.io.File file, ModelScriptMenu.Type type, RootModelManager rmm) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public MenuEntry parseSimpleFile(java.io.File file)
public static boolean classIsRootModel(java.lang.String classname)