e4s.html.editing
Class E4EditingPersistance
java.lang.Object
org.xml.sax.helpers.DefaultHandler
e4s.html.editing.E4EditingPersistance
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class E4EditingPersistance
- extends org.xml.sax.helpers.DefaultHandler
- implements org.xml.sax.ContentHandler
Reading/writing user definitions for editing tables to a XML file.
A detailed description can be found at E4EditingElement.
- Since:
- JDK 1.4
- See Also:
E4EditingElement,
E4EditingDefinitionDataField,
E4EditingDefinitionTableColumn,
E4ModuleEditingHandlingSettings.modifySettings_Save
|
Constructor Summary |
E4EditingPersistance(int translation_type)
Crate a XML based persistant object that holds the column layout for display. |
|
Method Summary |
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String namespace,
java.lang.String localname,
java.lang.String type)
|
static java.lang.String |
getXmlFilename(E4EditingElement eElement)
Get the .xml file for the descriptor containing client/user settings. |
static E4EditingPersistance.TableLayout |
readEditingColumns(E4EditingElement eElement,
int translation_type)
|
static void |
saveEditingColumns(E4EditingElement eElement,
java.util.Vector tableColumnsVec,
int[] numrows,
boolean include_freefields_search)
|
void |
startElement(java.lang.String namespace,
java.lang.String localname,
java.lang.String type,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
_XML_TAG_APPEND_FILE
public static final java.lang.String _XML_TAG_APPEND_FILE
- See Also:
- Constant Field Values
_XML_ATTR_HIDDEN
public static final java.lang.String _XML_ATTR_HIDDEN
- See Also:
- Constant Field Values
_XML_TAG_LABEL
public static final java.lang.String _XML_TAG_LABEL
- See Also:
- Constant Field Values
_XML_TAG_ALIGN
public static final java.lang.String _XML_TAG_ALIGN
- See Also:
- Constant Field Values
_XML_TAG_DISPLAY_COLUMN
public static final java.lang.String _XML_TAG_DISPLAY_COLUMN
- See Also:
- Constant Field Values
_XML_TAG_DISPLAY_ALIGN
public static final java.lang.String _XML_TAG_DISPLAY_ALIGN
- See Also:
- Constant Field Values
_XML_ATTR_SORT
public static final java.lang.String _XML_ATTR_SORT
- See Also:
- Constant Field Values
_XML_ATTR_SEARCH
public static final java.lang.String _XML_ATTR_SEARCH
- See Also:
- Constant Field Values
_XML_ATTR_SEARCH_VAL_NONE
public static final java.lang.String _XML_ATTR_SEARCH_VAL_NONE
- See Also:
- Constant Field Values
_XML_ATTR_SEARCH_VAL_SIMPLE
public static final java.lang.String _XML_ATTR_SEARCH_VAL_SIMPLE
- See Also:
- Constant Field Values
_XML_ATTR_SEARCH_VAL_RANGE
public static final java.lang.String _XML_ATTR_SEARCH_VAL_RANGE
- See Also:
- Constant Field Values
_XML_TAG_FORMATTER
public static final java.lang.String _XML_TAG_FORMATTER
- See Also:
- Constant Field Values
_XML_TAG_COLUMN_LABEL
public static final java.lang.String _XML_TAG_COLUMN_LABEL
- See Also:
- Constant Field Values
_XML_ATTR_COLUMN_ORDER
public static final java.lang.String _XML_ATTR_COLUMN_ORDER
- See Also:
- Constant Field Values
_XML_ATTR_COLUMN_MODE
public static final java.lang.String _XML_ATTR_COLUMN_MODE
- See Also:
- Constant Field Values
_XML_ATTR_COLUMN_KEEPLINE
public static final java.lang.String _XML_ATTR_COLUMN_KEEPLINE
- See Also:
- Constant Field Values
_XML_TAG_GENERAL
public static final java.lang.String _XML_TAG_GENERAL
- See Also:
- Constant Field Values
_XML_TAG_NUM_ROWS
public static final java.lang.String _XML_TAG_NUM_ROWS
- See Also:
- Constant Field Values
_XML_TAG_INCLUDE_FREEFIELDS_IN_SEARCH
public static final java.lang.String _XML_TAG_INCLUDE_FREEFIELDS_IN_SEARCH
- See Also:
- Constant Field Values
m_translation_type
protected int m_translation_type
MAX_ROWS
public static final int MAX_ROWS
- See Also:
- Constant Field Values
E4EditingPersistance
public E4EditingPersistance(int translation_type)
- Crate a XML based persistant object that holds the column layout for display.
- Parameters:
translation_type - either E4Label.TRANS_TYPE_SYS or
E4Label.TRANS_TYPE_APP
startElement
public final void startElement(java.lang.String namespace,
java.lang.String localname,
java.lang.String type,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
characters in interface org.xml.sax.ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
endElement
public final void endElement(java.lang.String namespace,
java.lang.String localname,
java.lang.String type)
throws org.xml.sax.SAXException
- Specified by:
endElement in interface org.xml.sax.ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
readEditingColumns
public static E4EditingPersistance.TableLayout readEditingColumns(E4EditingElement eElement,
int translation_type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getXmlFilename
public static java.lang.String getXmlFilename(E4EditingElement eElement)
- Get the .xml file for the descriptor containing client/user settings.
- Parameters:
eElement - the element
- Returns:
- the name including the complete path
saveEditingColumns
public static void saveEditingColumns(E4EditingElement eElement,
java.util.Vector tableColumnsVec,
int[] numrows,
boolean include_freefields_search)
throws java.io.IOException
- Throws:
java.io.IOException
_getSVNVersionString
public static java.lang.String _getSVNVersionString()
- Get version info string from subversion.
- Returns:
- the version info string.
- See Also:
E4Util.getRevisionCodeFromSVN(Class)