|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
com.fg.fxapplet.FXApplet
FXApplet Swing applet is a front-end component of distributed XML editor.
The applet reads XML Schemas and XML documents from server and sends edited
xml content back to the server. The url of schemas and documents along with
some additional information can be specified with applet parameters (the
applet web-page can be dynamically generated by a servlet) and/or
assigned with web-page javascript code. The applet is based upon
FXDoubleView component.
| Field Summary | |
static java.lang.String |
BASE_URL
BASE_URL = "BASE_URL" Specifies name of applet parameter, which defines relative (to the applet code base) base url of the XML document. |
static java.lang.String |
CONTENT
XML_DEST = "XML_DEST" Specifies a name of servlet parameter (see XML_DEST), which
holds posted XML content. |
static java.lang.String |
DOC_NAME
DOC_NAME = "DOC_NAME" Specifies name of the XML document. |
static java.lang.String |
ELEMENT
ELEMENT = "ELEMENT" Specifies name of applet parameter, which defines a root element name for new XML document. |
static java.lang.String |
NAMESPACE
NAMESPACE = "NAMESPACE" Specifies name of applet parameter, which defines a root namespace of new XML document. |
static java.lang.String |
ON_LOAD
ON_LOAD = "ON_LOAD" Specifies name of a javascript event handler method, which is called when user clicks "Load" button. |
static java.lang.String |
ON_SAVE
ON_SAVE = "ON_SAVE" Specifies name of a javascript event handler method, which is called when user clicks "Save" button. |
static java.lang.String |
ON_START
ON_START = "ON_START" Specifies name of a javascript event handler method, which is called from the applet start() method. |
static java.lang.String |
XML_DEST
XML_DEST = "XML_DEST" Specifies name of applet parameter, which defines a relative (to the applet code base) url of servlet (with query string), to which edited XML document will be sent. |
static java.lang.String |
XML_SCHEMA
XML_SCHEMA = "XML_SCHEMA" Specifies name of applet parameter, which defines relative (to the applet code base) url of the XML Schema document. |
static java.lang.String |
XML_SOURCE
XML_SOURCE = "XML_SOURCE" Specifies name of applet parameter, which defines relative (to the applet code base) url of the XML document. |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
FXApplet()
|
|
| Method Summary | |
void |
destroy()
|
java.lang.String |
getAppletInfo()
|
java.lang.String |
getBaseURL()
Method returns relative (to the applet code base) base url of the XML document. |
java.lang.String |
getDocName()
Method returns name of the XML document, which will be shown in the left text area at the bottom of the applet when XML document is loaded. |
java.lang.String |
getElement()
Method returns root element name for new XML document. |
java.lang.String |
getNamespace()
Method returns root namespace of new XML document. |
java.lang.String[][] |
getParameterInfo()
|
java.lang.String |
getXMLDest()
Method returns a relative (to the applet code base) url of servlet (with query string), to which edited XML document will be sent. |
java.lang.String |
getXMLDocumentAsText()
Method returns edited XML document as text. |
java.lang.String |
getXMLSchema()
Method returns relative (to the applet code base) url of the XML Schema document. |
java.lang.String |
getXMLSource()
Method returns relative (to the applet code base) url of the XML document. |
void |
init()
|
void |
loadXMLDocument(java.lang.String xmlContent)
Method loads a text, which contains XML document, to XML editor. |
void |
setBaseURL(java.lang.String baseURL)
Method sets relative (to the applet code base) base url of the XML document. |
void |
setDocName(java.lang.String docName)
Method sets name of the XML document, which will be shown in the left text area at the bottom of the applet when XML document is loaded. |
void |
setElement(java.lang.String rootElementName)
Method sets root element name for new XML document. |
void |
setNamespace(java.lang.String namespace)
Method sets root namespace of new XML document. |
void |
setXMLDest(java.lang.String xmlDest)
Method sets a relative (to the applet code base) url of servlet (with query string), to which edited XML document will be sent. |
void |
setXMLSchema(java.lang.String xmlSchema)
Method sets relative (to the applet code base) url of the XML Schema document. |
void |
setXMLSource(java.lang.String xmlSource)
Method sets relative (to the applet code base) url of the XML document. |
void |
start()
|
| Methods inherited from class javax.swing.JApplet |
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
| Methods inherited from class java.applet.Applet |
getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String DOC_NAME
setDocName(String),
getDocName(),
Constant Field Valuespublic static final java.lang.String XML_SCHEMA
XML_DEST, setXMLDest(String))
under the same name.
setXMLSchema(String),
getXMLSchema(),
Constant Field Valuespublic static final java.lang.String XML_SOURCE
XML_DEST, setXMLDest(String))
under the same name. The XML_SOURCE parameter is mutually exclusive with
NAMESPACE and ELEMENT parameters.
setXMLSource(String),
getXMLSource(),
Constant Field Valuespublic static final java.lang.String BASE_URL
XML_DEST parameter represents sevlet url (and thus
can't be used as base url). The parameter value will be
posted to a servlet (see XML_DEST, setXMLDest(String))
under the same name.
setBaseURL(String),
getBaseURL(),
Constant Field Valuespublic static final java.lang.String NAMESPACE
ELEMENT parameter to be
specified and it is mutually exclusive with XML_SOURCE parameter.
The parameter value will be posted to a servlet (see XML_DEST,
setXMLDest(String)) under the same name.
setNamespace(String),
getNamespace(),
Constant Field Valuespublic static final java.lang.String ELEMENT
NAMESPACE parameter to
be specified and it is mutually exclusive with XML_SOURCE
parameter. The parameter value will be posted to a servlet (see
XML_DEST, setXMLDest(String)) under the same name.
setElement(String),
getElement(),
Constant Field Valuespublic static final java.lang.String XML_DEST
setXMLDest(String),
getXMLDest(),
Constant Field Valuespublic static final java.lang.String CONTENT
XML_DEST), which
holds posted XML content.
public static final java.lang.String ON_START
start() method. If parameter is not specified, the
applet loads xml document from the XML_SOURCE url (if specified),
otherwise the javascript code may load the xml document by calling
loadXMLDocument(String). The javascript method has to have a single
parameter, which is the FXApplet reference.
public static final java.lang.String ON_LOAD
XML_SOURCE url (if specified),
otherwise the javascript code may load the xml document by calling
loadXMLDocument(String). The javascript method has to have a single
parameter, which is the FXApplet reference.
public static final java.lang.String ON_SAVE
XML_DEST parameter, otherwise the javascript code may retrieve xml
document as text (see getXMLDocumentAsText()) and submit it with
an HTML form. The javascript method has to have a single parameter, which
is the FXApplet reference.
| Constructor Detail |
public FXApplet()
| Method Detail |
public void setDocName(java.lang.String docName)
DOC_NAME applet parameter.) Method is intended to be called
from a javascript code.
docName - a String name of the XML documentDOC_NAME,
getDocName()public java.lang.String getDocName()
XML_SCHEMA,
setXMLSchema(String)public void setXMLSchema(java.lang.String xmlSchema)
XML_SCHEMA applet parameter.) Method is intended to be called
from a javascript code.
xmlSchema - a String represents relative url of the XML Schema documentXML_SCHEMA,
getXMLSchema()public java.lang.String getXMLSchema()
XML_SCHEMA,
setXMLSchema(String)public void setXMLSource(java.lang.String xmlSource)
XML_SOURCE
applet parameter.) The url may be either file url or servlet url with query
string. Method is intended to be called from a javascript code.
xmlSource - a String represents relative url of the XML documentXML_SOURCE,
getXMLSource()public java.lang.String getXMLSource()
XML_SOURCE,
setXMLSource(String)public void setBaseURL(java.lang.String baseURL)
BASE_URL
applet parameter.) The value has to be set when "XMLSource" url represents
sevlet url (and thus can't be used as base url). Method is intended to be
called from a javascript code.
baseURL - a String represents relative base url of the XML documentBASE_URL,
getBaseURL(),
XML_SOURCE,
setXMLSource(String),
getXMLSource()public java.lang.String getBaseURL()
BASE_URL,
setBaseURL(String)public void setNamespace(java.lang.String namespace)
NAMESPACE applet parameter.)
To open a new document, a user code has to set both root namespace and root
element name (see ELEMENT, setElement(String)) and make
sure that XML source is set to null (see XML_SOURCE,
setXMLSource(String), getXMLSource()). Method is intended
to be called from a javascript code.
namespace - a root namespace of new XML documentNAMESPACE,
getNamespace()public java.lang.String getNamespace()
NAMESPACE,
setNamespace(String)public void setElement(java.lang.String rootElementName)
ELEMENT applet parameter.)
To open a new document, a user code has to set both root namespace and root
element name (see NAMESPACE, setNamespace(String)) and
make sure that XML source is set to null (see XML_SOURCE,
setXMLSource(String), getXMLSource()). Method is intended
to be called from a javascript code.
rootElementName - a root element name for new XML documentELEMENT,
getElement()public java.lang.String getElement()
ELEMENT,
setElement(String)public void setXMLDest(java.lang.String xmlDest)
XML_DEST applet parameter.) Method is intended to
be called from a javascript code.
xmlDest - a relative url of servlet, to which edited XML document will
be sentXML_DEST,
getXMLDest()public java.lang.String getXMLDest()
XML_DEST,
setXMLDest(String)public void init()
public void start()
public void loadXMLDocument(java.lang.String xmlContent)
XML_SOURCE parameter or
setXMLSource(String) method.
xmlContent - a text, which contains XML documentXML_SCHEMA,
setXMLSchema(String),
BASE_URL,
setBaseURL(String),
getXMLDocumentAsText()public java.lang.String getXMLDocumentAsText()
loadXMLDocument(String)public java.lang.String getAppletInfo()
public java.lang.String[][] getParameterInfo()
public void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||