|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.dom.Document
public class Document
Represents a JAXFront Type DOM. Every JAXFront Type refers to an XMLSchema Element and a XUIDefinition defined in the XUI file. The class DOMBuilder acts a a factory for creating JAXFront documents. A JAXFront DOM combines XMLSchema information (meta level), XMLInstance and XUI definitions. To create a JAXFront DOM, the existance of an XMLSchema is a must. Use the serialize method to create an XML OutputStream.
DOMBuilder| Field Summary | |
|---|---|
boolean |
_enforcePrefixSerialization
|
static int |
_instanceCount
|
long |
_lastDomUpdateTime
|
static java.lang.String |
APPLICATION_PROPERTY_CUSTOM_CLASSLOADER
|
static java.lang.String |
APPLICATION_PROPERTY_DOCUMENT
|
static java.lang.String |
BUILD_VERSION
|
static java.lang.String |
CLIENT_PROPERTY_HTTP_PARAM_MAP_INITIAL
|
static java.lang.String |
CLIENT_PROPERTY_HTTP_REQUEST
|
static java.lang.String |
DOCUMENT_STATUS
|
static java.lang.String |
DOM_ARGS
|
static java.lang.String |
GLOBAL_CODESET_DOC
|
DoubleKeyHashtable |
itCache
|
DoubleKeyHashtable |
parentCache
|
static java.lang.String |
RIGHT_HIDDEN
|
static java.lang.String |
RIGHT_READ
|
static java.lang.String |
RIGHT_READ_WRITE
|
static java.lang.String |
RIGHT_READ_WRITE_NOT_NULL
|
static java.lang.String |
RIGHT_VISIBLE
|
static java.lang.String |
TARGET_PI
|
DoubleKeyHashtable |
xpCache
|
static java.lang.String |
XUI_VERSION
|
| Constructor Summary | |
|---|---|
Document(XMLSchema schema,
Type rootType)
Creates a JAXFront DOM for a specific XMLSchema and root node. |
|
Document(XMLSchema schema,
Type rootType,
java.util.Hashtable params)
Creates a JAXFront DOM for a specific XMLSchema and root node. |
|
| Method Summary | |
|---|---|
void |
addActionPerformListener(ActionPerformListener newListener)
Register a new listener for receiving JAXFront ActionPerform events. |
void |
addDirtyChangeListener(DirtyChangeListener newListener)
Register a new listener for receiving dirty changes. |
void |
addDOMChangeListener(DOMChangeListener newListener)
Register a new listener for receiving JAXFront DOM events. |
void |
addDOMChangeListener(DOMChangeListener newListener,
int pos)
Register a new listener for receiving JAXFront DOM events. |
FormulaExpression |
addFormula(FormulaExpression formula)
|
void |
addNotFiredInitializationRule(Type target,
Rule initializationRule)
|
Type |
addVarToTypeMapping(java.lang.String varName,
Type aType)
|
void |
attachUISpecification(org.w3c.dom.Document xuiW3CDOM,
boolean reinitializeGlobalDefinitions)
Attaches the passed XUI Document to the internal ui specification. |
void |
bind(org.w3c.dom.Document dom)
Binds the values of the source DOM (W3C DOM) to the JAXFront DOM. |
void |
bind(org.w3c.dom.Document dom,
boolean reinitializeXUI)
Binds the values of the source DOM (W3C DOM) to the JAXFront DOM. |
void |
bind(org.w3c.dom.Document dom,
boolean reinitializeXUI,
java.util.Hashtable processingInstructions)
|
void |
cancelInstance()
Fires a CANCEL-DOM event. |
void |
checkAutoCreateListItems(Type type)
|
boolean |
containsDOMChangeListener(DOMChangeListener listener)
|
Document |
copy()
Copies the current JAXFront-Document and returns it. |
Document |
copy(boolean withValue,
boolean reinitXUI,
boolean copyProperties)
|
void |
fireActionPerformed(ActionPerformEvent event)
Informs all ActionPerformListeners about a performing action. |
void |
fireDirtyChange()
|
void |
fireDOMChanged(DOMChangeEvent event)
Informs all DOMChangeListeners about node changes. |
void |
fireDOMChanged(DOMChangeEvent event,
boolean isTemporary)
Informs all DOMChangeListeners about node changes (add/remove/cancel). |
static java.lang.String |
generateVarID(Type baseType)
|
java.lang.String |
getAppContext()
|
java.awt.Color |
getApplicationFieldColor()
Returns the color that is defined in the XUI-Document for all mandatory application fields. |
java.util.Hashtable |
getApplicationProperties()
|
java.lang.Object |
getApplicationProperty(java.lang.String key)
|
java.lang.String |
getAppVersionNo()
Returns the application version number set in the xui file. |
static java.lang.String |
getBuildVersion()
Returns the build version of the current JAXFront Engine. |
java.util.Hashtable |
getClientProperties()
|
java.lang.Object |
getClientProperty(java.lang.String key)
|
ClipBoard |
getClipBoard()
|
CodeTables |
getCodeTables()
Returns the defined codeTables for this DOM domain (stored per XMLSchema). |
IConnectionManager |
getConnectionManager()
|
TypeController |
getController()
Returns the TypeController for this DOM. |
long |
getCreatedTime()
|
java.lang.ClassLoader |
getCustomClassloader()
|
DebugListener |
getDebugListener()
|
java.lang.String |
getDefaultNamespace()
|
float |
getDividerLocation()
Returns the global divider location. |
java.lang.String |
getDocumentID()
|
java.util.Map |
getEditingTypeCache()
|
EditablePanel |
getEditor()
Returns the top level visual editor for this DOM if any, otherwise return null. |
java.lang.String |
getEncoding()
|
java.awt.Color |
getErrorMarkingColor()
Returns the color which marks errors in a visualizer view. |
java.util.List |
getFilters()
Returns the defined search filters. |
FingerPrint |
getFingerPrint()
Returns the fingerprint for this DOM. |
java.util.HashMap |
getFormulas()
|
GlobalDefinition |
getGlobalDefinition()
Returns the global definitions for this DOM (XUI Global definitions). |
float |
getGlobalLabelIndent()
Returns the global label indent. |
Rule |
getGlobalRule(java.lang.Object id)
|
java.util.Hashtable |
getGlobalRules()
|
DoubleKeyHashtable |
getGlobalXUIDefinitions()
|
HelpURLResolver |
getHelpUrlResolver()
|
java.lang.String |
getInfo()
|
java.util.Map |
getInfos()
|
KeyKeyRefManager |
getKeyKeyRefManager()
|
java.lang.String |
getLanguage()
Returns the language that is defined in the XUI-Document |
long |
getLastDomUpdateTimeStamp()
|
java.lang.String |
getLastLoadedNLSLanguage()
|
SimpleType |
getLeafType(java.lang.String xpath)
Returns a simple type (leaf type) according to the given xpath or null. |
java.util.HashSet |
getLostComponents()
|
NLS |
getNLS()
Returns the NLS for this DOM. |
java.util.Map |
getNoTargetVars()
|
java.util.LinkedHashMap |
getNotFiredInitializationRules()
|
java.awt.Color |
getOptionalFieldColor()
Returns the color that is defined in the XUI-Document for all optional application fields. |
java.util.Hashtable |
getOriginalXmlHeaderAttributes()
Start the serialization of this DOM to the passing Stringbuffer. |
java.util.List |
getProcessingInstructions()
|
JAXFrontPropertyChangeSupport |
getPropertyChangeSupport()
Gets the PropertyChangeSupport helper instance for this type. |
TypeVisualizerFactory |
getRenderRequestVisualizerFactory()
|
Type |
getRootType()
Returns the root type of the current document. |
XMLSchema |
getSchema()
Returns the XML schema for this DOM. |
java.lang.String |
getSchemaLocation()
|
java.awt.Color |
getSchemaRequiredFieldColor()
Returns the color that is defined in the XUI-Document for all mandatory fields. |
java.awt.Dimension |
getScreenSize()
Returns the default screensize or as defined in the XUI-Document. |
SerializationModifier |
getSerializationModifier()
|
int |
getStatus()
|
java.util.List |
getTreeRoot()
Returns the root nodes for visualizing in the navigation tree. |
Type |
getType(java.lang.String xpath)
Returns the type that can be found with the given xpath. |
Type |
getType(java.lang.String xpath,
Type baseType)
Returns the type that can be found with the given xpath. |
java.util.List |
getTypes(java.lang.String xpath)
Returns a list of types that can be found with the given xpath. |
java.util.List |
getTypes(java.lang.String xpath,
Type rootType)
|
java.util.List |
getTypes(java.lang.String xpath,
Type rootType,
boolean serializableOnly)
|
java.lang.String |
getTypeValue(java.lang.String xpath)
|
InitUIListener |
getUIInitListener()
|
JAXFrontUndoManager |
getUndoManager()
|
IUser |
getUser()
|
java.util.List<Type> |
getVarsFor(java.lang.String[] varNames,
java.util.List result)
|
java.util.Map<java.lang.String,Type> |
getVarToTypeMapping()
|
int |
getVerticalScrollBarPolicy()
Returns the usage of the vertical scrollbar as int. |
Type |
getViewHolderType(Type smartType)
Retrieves the right viewHolder (container) type for the given type. |
java.util.Hashtable |
getXMLNamespaceMappings()
|
XPathEncoder |
getXPathEncoder()
|
Document |
getXUIDocument()
Returns the current XUI-Document. |
java.util.Hashtable |
getXUINamespaceMappings()
|
java.util.Map |
getXUIPrefixNamespaceMappings()
|
Type |
getXUIRootType()
Returns the root type of the current XUI-Document. |
static java.lang.String |
getXUIVersionNo()
Returns the current supported XUI version of the JAXFront Engine. |
boolean |
hasChanged()
Returns true if the state of a type within this DOM has changed. |
boolean |
hasController()
|
FormulaExpression |
hasFormula(FormulaExpression formula)
|
boolean |
hasVarToTypeMapping()
|
boolean |
hasXUI()
|
void |
initializeGlobalRules(Type rules)
|
void |
initializeNLS(Document uiDoc,
FingerPrint fingerprint)
Initialize the nls for this DOM with the language defined in the xui document. |
void |
initializeVars(Type xuiRootType)
|
void |
initUISpecification(Document uiDoc)
Initializes the UserInterface-Specification (XUI-Document). |
void |
initUISpecification(Document uiDoc,
boolean releaseOldUISpecification,
boolean reinitializeGlobalDefinitions)
Initializes the UserInterface-Specification (XUI-Document). |
void |
initUISpecification(Type xuiType)
Initializes a xui component for all target nodes retrieved by processing the passed xpath statement. |
void |
initUISpecification(java.net.URL xuiURL)
|
boolean |
isAllowingSavingWithErrors()
Returns whether the document can be saved even if validation errors exist |
boolean |
isBinding()
|
boolean |
isDebugMode()
|
boolean |
isEditable()
Returns whether the document can be modified or not. |
boolean |
isHistoryMode()
|
boolean |
isImmutable()
|
boolean |
isOrphan(org.w3c.dom.Node node)
Check if the supplied node is an orphan, i.e. if its uppermost parent is of type Document (=> not orphaned) or another node (=> orphaned) |
boolean |
isPasteMode()
|
boolean |
isPDFXUIDOM()
|
boolean |
isReleaseAfterUnblock()
|
boolean |
isReleaseBlocked()
|
boolean |
isReleased()
|
boolean |
isRuleEngineBlocked()
|
boolean |
isRunningInXUIEditor()
Returns if JAXFront is running as XUIEditor. |
boolean |
isSCDom()
|
boolean |
isSchemaInit()
|
boolean |
isSCReleased()
|
boolean |
isSerializingDefaults()
Returns whether the defined defaults in the schema should be serialized or not. |
boolean |
isShowingTreeListContainer()
Returns true if a container element (e.q. item(s)) for list types will be shown in the navigation tree. |
boolean |
isUsingBackwardButton()
Returns true if the backwardButton in the editor is used or not. |
boolean |
isUsingButtonBar()
Returns whether the button bar in the editor is visible or not. |
boolean |
isUsingDefaultRendering()
|
boolean |
isUsingForwardButton()
Returns true if the forwardButton in the editor is used or not. |
boolean |
isUsingPlugins()
Returns whether plug-ins are allowed to use or not. |
boolean |
isUsingStatusBar()
Returns whether the status bar is used or not. |
boolean |
isValid()
|
boolean |
isXPathCached()
|
boolean |
isXUIDOMInstance()
|
boolean |
isXUIDOMInstance(Type rootType)
|
boolean |
isXUIInitialized()
|
boolean |
keepXUIDOMinMemory()
|
void |
keepXUIDOMinMemory(boolean isXuiDom)
|
void |
lock(java.lang.String[] fieldsToUnlock)
Locks the current DOM and all its visualizers. |
void |
lock(java.lang.String[] fieldsToUnlock,
boolean lockGlobal,
boolean unlockIfNotNull)
|
FormulaExpression |
lookupFormula(Type source,
java.lang.String expression)
|
FormulaExpression |
lookupFormula(Type source,
java.lang.String expression,
boolean includeOnlySerializable,
TableCell cell)
|
void |
maintainLostXUIComponent(Type xuiComponent)
|
void |
maintainNoTargetXPathDefinitions(java.util.List definitions)
|
void |
markNotEditableTypes(Type type,
boolean unmark,
boolean handleListItems)
|
void |
notifyDebug(int type,
java.lang.String message)
|
void |
printTypeTree()
Writes the current DOM tree to the log file. |
void |
putApplicationProperty(java.lang.String key,
java.lang.Object value)
|
void |
putClientProperty(java.lang.String key,
java.lang.Object value)
|
void |
putEditingTypeCache(Type edType)
|
void |
reApplyLostComponents()
|
void |
refresh(org.w3c.dom.Document dom,
Document uiDOM)
Refreshes the given DOM and reinitialize the XUI definitions. |
void |
refreshUISpecification(Document uiDOM)
Refreshes the current DOM with new XUI definitions. |
void |
reinitializeNLS()
|
void |
reinitializeUISpecification()
|
void |
reinitializeUISpecification(Type type)
|
void |
reinitVars()
|
void |
release()
Releases allocated resources for this DOM including type tree, XUI DOM, properties, visualizer cache, processing-instructions and type controller. |
void |
releaseController()
Releases the current type controller. |
void |
releaseForSchemaCache()
|
void |
releaseProperties()
Releases the current properties. |
void |
removeActionPerformListener(ActionPerformListener newListener)
Removes a ActionPerformListener. |
void |
removeAllFormulas()
|
java.lang.Object |
removeApplicationProperty(java.lang.String key)
|
void |
removeClientProperty(java.lang.String key)
|
void |
removeDirtyChangeListener(DirtyChangeListener listener)
Remove a listener for receiving dirty changes. |
void |
removeDOMChangeListener(DOMChangeListener newListener)
Removes a DOMChangeListener. |
FormulaExpression |
removeFormula(FormulaExpression formula)
|
void |
removeFormulaExpressions(Type forType)
|
Type |
removeVarToTypeMapping(java.lang.String varName)
|
XUIDefinition |
removeXUIDefinition(Type type)
|
void |
saveAs(java.io.File file)
Saves the current document into a file. |
void |
saveAsZip(java.io.File file)
|
java.lang.StringBuffer |
serialize()
Serializes the current document into a StringBuffer and returns it. |
java.lang.StringBuffer |
serialize(boolean makeIndents)
|
java.lang.StringBuffer |
serialize(boolean makeIndents,
boolean serializeHeader)
Serializes the current document into a StringBuffer and returns it. |
java.lang.StringBuffer |
serializeInternal(boolean makeIndents,
boolean serializeHeader)
Start the serialization of this DOM to the passing Stringbuffer. |
byte[] |
serializeToByteArray()
|
byte[] |
serializeToByteArray(java.lang.String encoding)
|
org.w3c.dom.Document |
serializeToW3CDocument()
Serialize the current JAXFront document and creates a new W3C document instance. |
void |
setAppContext(java.lang.String appContext)
|
void |
setCreatedTime(long created)
|
void |
setCustomClassloader(java.lang.ClassLoader aClassLoader)
|
void |
setDebugListener(DebugListener listener)
|
void |
setDefaultNamespace(java.lang.String defaultXMLNamespace)
|
void |
setEncoding(java.lang.String encoding)
|
void |
setFingerPrint(FingerPrint fingerPrint)
Sets the fingerprint for this DOM. |
void |
setGlobalCodeSet(org.w3c.dom.Document codesetDoc)
Initialize the global Codest for this DOM document. |
void |
setHelpUrlResolver(HelpURLResolver helpUrlResolver)
|
void |
setHistoryMode(java.lang.String logLevel,
boolean enabled,
boolean logChanges,
java.util.Vector fingerprintActions)
|
void |
setImmutable(boolean immutable)
|
void |
setInitUIListener(InitUIListener listener)
|
void |
setIsBinding(boolean isBinding)
|
void |
setLanguage(java.lang.String language)
Sets the language for this and all future DOM's so the defined language within a XUI definition will not be considered again. |
void |
setNLS(NLS nls)
Sets the NLS properties to use. |
void |
setPasteMode(boolean pasting)
|
void |
setPID(java.lang.String pid)
|
void |
setProcessingInstructions(java.util.List pi)
|
void |
setReleaseBlocked(java.lang.String blockOwner,
boolean blocked)
|
void |
setRenderRequestVisualizerFactory(TypeVisualizerFactory factory)
|
void |
setRights(java.lang.String[][] aRights)
|
void |
setRuleEngineBlocked(boolean blockRuleEngine)
|
void |
setRunningAsXUIEditor(boolean isEditorMode)
|
void |
setSchemaLocation(java.lang.String schemaLocation)
|
void |
setSerializationModifier(SerializationModifier serializationModifier)
|
void |
setStatus(int status)
|
void |
setUndoManager(JAXFrontUndoManager undoManager)
|
void |
setXMLNamespaceMappings(java.util.Hashtable mapping)
|
void |
setXPathCached(boolean cache)
|
void |
setXUIDocument(Document xuiDocument)
|
void |
setXUINamespaceMappings(java.util.Hashtable mapping)
|
boolean |
systemExitOnClose()
Returns whether the system will exit when the window is closed or not. |
void |
unlock()
|
boolean |
useOptionalCheckBox()
Returns whether optional check boxes are used or not. |
void |
validate()
Validates the current DOM according its XML Schema & the defined XUI rules. |
void |
validate(boolean isRunningOnServer)
Validates the current DOM according its XML Schema & the defined XUI rules. |
void |
validateKeyRefIntegrity(boolean notifyErrorController)
|
void |
validateMandatoryAndCardinality(Type type,
java.util.List errors,
boolean checkValue)
Checks if all mandatory leaf types derived from the passed type are not empty. |
java.util.Vector |
validatePageErrors(Type type,
int pageIndex)
|
java.util.Vector |
validatePageErrors(Type type,
int pageIndex,
boolean validate)
|
void |
validateSchemaConstraints()
Validates the current DOM according its mandatory fields. |
java.util.Hashtable |
validateTemporary()
|
void |
validateXUIRules(boolean isRunningOnServer)
Validates the current DOM according its defined save XUI rules. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean _enforcePrefixSerialization
public static int _instanceCount
public long _lastDomUpdateTime
public static final java.lang.String APPLICATION_PROPERTY_CUSTOM_CLASSLOADER
public static final java.lang.String APPLICATION_PROPERTY_DOCUMENT
public static final java.lang.String BUILD_VERSION
public static final java.lang.String CLIENT_PROPERTY_HTTP_PARAM_MAP_INITIAL
public static final java.lang.String CLIENT_PROPERTY_HTTP_REQUEST
public static final java.lang.String DOCUMENT_STATUS
public static final java.lang.String DOM_ARGS
public static final java.lang.String GLOBAL_CODESET_DOC
public DoubleKeyHashtable itCache
public DoubleKeyHashtable parentCache
public static final java.lang.String RIGHT_HIDDEN
public static final java.lang.String RIGHT_READ
public static final java.lang.String RIGHT_READ_WRITE
public static final java.lang.String RIGHT_READ_WRITE_NOT_NULL
public static final java.lang.String RIGHT_VISIBLE
public static final java.lang.String TARGET_PI
public DoubleKeyHashtable xpCache
public static final java.lang.String XUI_VERSION
| Constructor Detail |
|---|
public Document(XMLSchema schema,
Type rootType)
schema - XML SchemarootType - root node for this document
public Document(XMLSchema schema,
Type rootType,
java.util.Hashtable params)
schema - XML SchemarootType - root node for this document| Method Detail |
|---|
public void addActionPerformListener(ActionPerformListener newListener)
newListener - a new listenerpublic void addDirtyChangeListener(DirtyChangeListener newListener)
newListener - a new listenerpublic void addDOMChangeListener(DOMChangeListener newListener)
newListener - a new listener
public void addDOMChangeListener(DOMChangeListener newListener,
int pos)
newListener - a new listenerpublic FormulaExpression addFormula(FormulaExpression formula)
public void addNotFiredInitializationRule(Type target,
Rule initializationRule)
public Type addVarToTypeMapping(java.lang.String varName,
Type aType)
public void attachUISpecification(org.w3c.dom.Document xuiW3CDOM,
boolean reinitializeGlobalDefinitions)
throws DocumentCreationException
xuiW3CDOM - new XUI DOMreinitializeGlobalDefinitions - defines if global XUI definitions should be reinitialized with the passing XUI definitions
DocumentCreationExceptionpublic void bind(org.w3c.dom.Document dom)
dom - W3C DOM to bind
public void bind(org.w3c.dom.Document dom,
boolean reinitializeXUI)
dom - W3C DOM to bindreinitializeXUI - indicates if XUI should be reinitialized
public void bind(org.w3c.dom.Document dom,
boolean reinitializeXUI,
java.util.Hashtable processingInstructions)
public void cancelInstance()
public void checkAutoCreateListItems(Type type)
public boolean containsDOMChangeListener(DOMChangeListener listener)
public Document copy()
throws DocumentCreationException
DocumentCreationException - if the DOM couldn't be build
public Document copy(boolean withValue,
boolean reinitXUI,
boolean copyProperties)
throws DocumentCreationException
DocumentCreationExceptionpublic void fireActionPerformed(ActionPerformEvent event)
event - DOMChangeEvent to firepublic void fireDirtyChange()
public void fireDOMChanged(DOMChangeEvent event)
event - DOMChangeEvent to fire
public void fireDOMChanged(DOMChangeEvent event,
boolean isTemporary)
event - DOMChangeEvent to fireisTemporary - true if this event is just temporarypublic static java.lang.String generateVarID(Type baseType)
public java.lang.String getAppContext()
public java.awt.Color getApplicationFieldColor()
public java.util.Hashtable getApplicationProperties()
public java.lang.Object getApplicationProperty(java.lang.String key)
public java.lang.String getAppVersionNo()
public static java.lang.String getBuildVersion()
public java.util.Hashtable getClientProperties()
public java.lang.Object getClientProperty(java.lang.String key)
public ClipBoard getClipBoard()
public CodeTables getCodeTables()
public IConnectionManager getConnectionManager()
public TypeController getController()
public long getCreatedTime()
public java.lang.ClassLoader getCustomClassloader()
public DebugListener getDebugListener()
public java.lang.String getDefaultNamespace()
public float getDividerLocation()
public java.lang.String getDocumentID()
public java.util.Map getEditingTypeCache()
public EditablePanel getEditor()
public java.lang.String getEncoding()
public java.awt.Color getErrorMarkingColor()
public java.util.List getFilters()
public FingerPrint getFingerPrint()
public java.util.HashMap getFormulas()
public GlobalDefinition getGlobalDefinition()
public float getGlobalLabelIndent()
public Rule getGlobalRule(java.lang.Object id)
public java.util.Hashtable getGlobalRules()
public DoubleKeyHashtable getGlobalXUIDefinitions()
public HelpURLResolver getHelpUrlResolver()
public java.lang.String getInfo()
public java.util.Map getInfos()
public KeyKeyRefManager getKeyKeyRefManager()
public java.lang.String getLanguage()
public long getLastDomUpdateTimeStamp()
public java.lang.String getLastLoadedNLSLanguage()
public SimpleType getLeafType(java.lang.String xpath)
xpath - to look for a leaf typepublic java.util.HashSet getLostComponents()
public NLS getNLS()
public java.util.Map getNoTargetVars()
public java.util.LinkedHashMap getNotFiredInitializationRules()
public java.awt.Color getOptionalFieldColor()
public java.util.Hashtable getOriginalXmlHeaderAttributes()
sb - Stringbuffer to serialize DOM intomakeIndents - indicates if indents & carriage returns should be writtenserializeHeader - true, if the xml header should be writtenpublic java.util.List getProcessingInstructions()
public JAXFrontPropertyChangeSupport getPropertyChangeSupport()
public TypeVisualizerFactory getRenderRequestVisualizerFactory()
public Type getRootType()
public XMLSchema getSchema()
public java.lang.String getSchemaLocation()
public java.awt.Color getSchemaRequiredFieldColor()
public java.awt.Dimension getScreenSize()
public SerializationModifier getSerializationModifier()
public int getStatus()
public java.util.List getTreeRoot()
public Type getType(java.lang.String xpath)
xpath - xpath of the type that should be accessed
public Type getType(java.lang.String xpath,
Type baseType)
xpath - xpath of the type that should be accessed
public java.util.List getTypes(java.lang.String xpath)
xpath - xpath of the type(s) that should be accessed
public java.util.List getTypes(java.lang.String xpath,
Type rootType)
public java.util.List getTypes(java.lang.String xpath,
Type rootType,
boolean serializableOnly)
public java.lang.String getTypeValue(java.lang.String xpath)
public InitUIListener getUIInitListener()
public JAXFrontUndoManager getUndoManager()
public IUser getUser()
public java.util.List<Type> getVarsFor(java.lang.String[] varNames,
java.util.List result)
public java.util.Map<java.lang.String,Type> getVarToTypeMapping()
public int getVerticalScrollBarPolicy()
public Type getViewHolderType(Type smartType)
smartType - a given typepublic java.util.Hashtable getXMLNamespaceMappings()
public XPathEncoder getXPathEncoder()
public Document getXUIDocument()
public java.util.Hashtable getXUINamespaceMappings()
public java.util.Map getXUIPrefixNamespaceMappings()
public Type getXUIRootType()
public static java.lang.String getXUIVersionNo()
public boolean hasChanged()
public boolean hasController()
public FormulaExpression hasFormula(FormulaExpression formula)
public boolean hasVarToTypeMapping()
public boolean hasXUI()
public void initializeGlobalRules(Type rules)
public void initializeNLS(Document uiDoc,
FingerPrint fingerprint)
public void initializeVars(Type xuiRootType)
public void initUISpecification(Document uiDoc)
throws DocumentCreationException
uiDoc - the XUI-Document (JAXFront-Document)
DocumentCreationException - if the DOM couldn't be build
public void initUISpecification(Document uiDoc,
boolean releaseOldUISpecification,
boolean reinitializeGlobalDefinitions)
throws DocumentCreationException
uiDoc - the XUI-Document (JAXFront-Document)releaseOldUISpecification - defines if the old UISpecification should be releasedreinitializeGlobalDefinitions - defines if the global definitions sould be reinitialized
DocumentCreationException - if the DOM couldn't be buildpublic void initUISpecification(Type xuiType)
xuiType - xui component from the XUI DOM
public void initUISpecification(java.net.URL xuiURL)
throws DocumentCreationException
DocumentCreationExceptionpublic boolean isAllowingSavingWithErrors()
public boolean isBinding()
public boolean isDebugMode()
public boolean isEditable()
public boolean isHistoryMode()
public boolean isImmutable()
public boolean isOrphan(org.w3c.dom.Node node)
node - the node that should be checked
public boolean isPasteMode()
public boolean isPDFXUIDOM()
public boolean isReleaseAfterUnblock()
public boolean isReleaseBlocked()
public boolean isReleased()
public boolean isRuleEngineBlocked()
public boolean isRunningInXUIEditor()
public boolean isSCDom()
public boolean isSchemaInit()
public boolean isSCReleased()
public boolean isSerializingDefaults()
public boolean isShowingTreeListContainer()
public boolean isUsingBackwardButton()
public boolean isUsingButtonBar()
public boolean isUsingDefaultRendering()
public boolean isUsingForwardButton()
public boolean isUsingPlugins()
public boolean isUsingStatusBar()
public boolean isValid()
public boolean isXPathCached()
public boolean isXUIDOMInstance()
public boolean isXUIDOMInstance(Type rootType)
public boolean isXUIInitialized()
public boolean keepXUIDOMinMemory()
public void keepXUIDOMinMemory(boolean isXuiDom)
public void lock(java.lang.String[] fieldsToUnlock)
fieldsToUnlock - list of xpath where the corresponding visualizer will still unlocked
public void lock(java.lang.String[] fieldsToUnlock,
boolean lockGlobal,
boolean unlockIfNotNull)
public FormulaExpression lookupFormula(Type source,
java.lang.String expression)
public FormulaExpression lookupFormula(Type source,
java.lang.String expression,
boolean includeOnlySerializable,
TableCell cell)
public void maintainLostXUIComponent(Type xuiComponent)
public void maintainNoTargetXPathDefinitions(java.util.List definitions)
public void markNotEditableTypes(Type type,
boolean unmark,
boolean handleListItems)
public void notifyDebug(int type,
java.lang.String message)
public void printTypeTree()
public void putApplicationProperty(java.lang.String key,
java.lang.Object value)
public void putClientProperty(java.lang.String key,
java.lang.Object value)
public void putEditingTypeCache(Type edType)
public void reApplyLostComponents()
public void refresh(org.w3c.dom.Document dom,
Document uiDOM)
throws DocumentCreationException
dom - a Document (W3C)uiDOM - a XUI-Document (JAXFront-Document)
DocumentCreationException - if the DOM couldn't be build
public void refreshUISpecification(Document uiDOM)
throws DocumentCreationException
uiDOM - XUIDOM to initialize
DocumentCreationException - if the DOM couldn't be buildpublic void reinitializeNLS()
public void reinitializeUISpecification()
public void reinitializeUISpecification(Type type)
public void reinitVars()
public void release()
public void releaseController()
public void releaseForSchemaCache()
public void releaseProperties()
public void removeActionPerformListener(ActionPerformListener newListener)
newListener - an existing ActionPerformListenerpublic void removeAllFormulas()
public java.lang.Object removeApplicationProperty(java.lang.String key)
public void removeClientProperty(java.lang.String key)
public void removeDirtyChangeListener(DirtyChangeListener listener)
listener - a listenerpublic void removeDOMChangeListener(DOMChangeListener newListener)
newListener - DOMChangeListenerpublic FormulaExpression removeFormula(FormulaExpression formula)
public void removeFormulaExpressions(Type forType)
public Type removeVarToTypeMapping(java.lang.String varName)
public XUIDefinition removeXUIDefinition(Type type)
public void saveAs(java.io.File file)
throws ValidationException,
java.io.IOException
file - File, into which the current document will be saved
ValidationException - if the file couldn't be saved
java.io.IOException
public void saveAsZip(java.io.File file)
throws ValidationException,
java.io.IOException
ValidationException
java.io.IOException
public java.lang.StringBuffer serialize()
throws ValidationException
ValidationException - if the file couldn't be saved
public java.lang.StringBuffer serialize(boolean makeIndents)
throws ValidationException
ValidationException
public java.lang.StringBuffer serialize(boolean makeIndents,
boolean serializeHeader)
throws ValidationException
makeIndents - indicates if indents & carriage returns should be writtenserializeHeader - true, if the xml header should be written
ValidationException - if the file couldn't be saved
public java.lang.StringBuffer serializeInternal(boolean makeIndents,
boolean serializeHeader)
sb - Stringbuffer to serialize DOM intomakeIndents - indicates if indents & carriage returns should be writtenserializeHeader - true, if the xml header should be written
public byte[] serializeToByteArray()
throws ValidationException,
java.io.UnsupportedEncodingException
ValidationException
java.io.UnsupportedEncodingException
public byte[] serializeToByteArray(java.lang.String encoding)
throws ValidationException,
java.io.UnsupportedEncodingException
ValidationException
java.io.UnsupportedEncodingException
public org.w3c.dom.Document serializeToW3CDocument()
throws org.apache.xerces.xni.parser.XMLParseException,
org.xml.sax.SAXException,
java.io.IOException,
ValidationException
org.apache.xerces.xni.parser.XMLParseException
org.xml.sax.SAXException
java.io.IOException
ValidationExceptionpublic void setAppContext(java.lang.String appContext)
public void setCreatedTime(long created)
public void setCustomClassloader(java.lang.ClassLoader aClassLoader)
public void setDebugListener(DebugListener listener)
public void setDefaultNamespace(java.lang.String defaultXMLNamespace)
public void setEncoding(java.lang.String encoding)
public void setFingerPrint(FingerPrint fingerPrint)
fingerPrint - public void setGlobalCodeSet(org.w3c.dom.Document codesetDoc)
public void setHelpUrlResolver(HelpURLResolver helpUrlResolver)
public void setHistoryMode(java.lang.String logLevel,
boolean enabled,
boolean logChanges,
java.util.Vector fingerprintActions)
public void setImmutable(boolean immutable)
public void setInitUIListener(InitUIListener listener)
public void setIsBinding(boolean isBinding)
public void setLanguage(java.lang.String language)
language - language for all DOM's to usepublic void setNLS(NLS nls)
nls - NLS propertiespublic void setPasteMode(boolean pasting)
public void setPID(java.lang.String pid)
public void setProcessingInstructions(java.util.List pi)
public void setReleaseBlocked(java.lang.String blockOwner,
boolean blocked)
public void setRenderRequestVisualizerFactory(TypeVisualizerFactory factory)
public void setRights(java.lang.String[][] aRights)
aRights - public void setRuleEngineBlocked(boolean blockRuleEngine)
public void setRunningAsXUIEditor(boolean isEditorMode)
public void setSchemaLocation(java.lang.String schemaLocation)
public void setSerializationModifier(SerializationModifier serializationModifier)
public void setStatus(int status)
public void setUndoManager(JAXFrontUndoManager undoManager)
public void setXMLNamespaceMappings(java.util.Hashtable mapping)
public void setXPathCached(boolean cache)
public void setXUIDocument(Document xuiDocument)
public void setXUINamespaceMappings(java.util.Hashtable mapping)
public boolean systemExitOnClose()
public void unlock()
public boolean useOptionalCheckBox()
public void validate()
public void validate(boolean isRunningOnServer)
public void validateKeyRefIntegrity(boolean notifyErrorController)
public void validateMandatoryAndCardinality(Type type,
java.util.List errors,
boolean checkValue)
type - type to check
public java.util.Vector validatePageErrors(Type type,
int pageIndex)
public java.util.Vector validatePageErrors(Type type,
int pageIndex,
boolean validate)
public void validateSchemaConstraints()
public java.util.Hashtable validateTemporary()
public void validateXUIRules(boolean isRunningOnServer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||