Manipulating
the EquationEditor content and UI
There are available the following
functions:
public void setMathMLContent(java.lang.String mathMLContent) -
sets the content of the EquationEditor. The content should be an well
formatted MathML document.
public String getMathMLContent() - returns
the content of the equation editor as entire MathML document.
public void setContent(String mathmlContent) -
sets the content of the EquationEditor.
public void setURLEncodedContent(String
mathmlURLEncodedContent)
- sets the content of the
EquationEditor.
The content could be an html document which is URLEncoded - it will
be decoded by the editor and rendered properly.
public String saveImage() -
saves the image into a temporary file and returns the URL of the file as
a string.
public java.awt.Image getImage() -retrieves
the content of the EquationEditor as an image.
public JPopupMenu getPopupMenu() -
returns
the popup menu used inside the visual editor. This allows easy
customization of the popup menu when needed. See the JPopupMenu Swing
API for major details on how the popup menu object can be customized.
public void setMainMenuVisible(boolean visible) -
enables/disables the main menu. It could be used in order to customize
the UI of the equation editor as necessary.
public void setSourceVisible(boolean visible)-
enables/disables the source editor. It could be used in order to customize
the UI of the equation editor as necessary.
public void setToolbarVisible(boolean visible)
-
enables/disables the toolbar. It could be used in order to customize
the UI of the equation editor as necessary.
public JToolBar getToolbar()
- returns the toolbar used
inside the visual editor. This allows easy customization of the toolbar
when needed. See the JToolBar Swing API for major details on how the
toolbar object can be customized.
These are only the most used
methods - the developer may create own subclasses of the EqautionEditor
and create public references to all methods specified in the javadoc
documentation supplied with the product of the class
sferyx.math.equationeditor.EquationEditor in order to be accessed from javascript.
Applet
Parameters
<PARAM NAME ="initialContent" VALUE="<math>Hello,
this is the initial content</math>"> -
Specifies simple initial content
of the editor when the editor is started. If this parameter is not specified
than blank page is created. For complex documents use initialURL
instead of this one.
<PARAM NAME ="initialURLEncodedContent"
VALUE="%3Cmath%3EHello%2c+this+is+the+initial+content%3C/math%3E">
-
Specifies the initial content of the editor when the editor is started-
it should be URLEncoded. The editor will decode it and visualize it
for editing. This permits the loading of even very complicated pages,
since all the tags are encoded and there is no interference with the
rest of the page. This approach is very useful for loading of the initial
content simply without javascripts etc.
<PARAM NAME="transformInViewer" VALUE="true">
- when this is specified this parameter
the EquationEditor will be transformed into a Equation viewer which can
be used to display mathml content within a browser.
<PARAM
NAME ="menuItemsToRemove" VALUE="PasteMenuItem,CutMenuItem,...">
- Indicates which menu items should
be removed from the menus. This list contains comma separated names
of the menu items contained within the editor to be removed. This allows
the full customization of the dropdown menus inside the main menu. The
full list is:
PasteMenuItem - the
paste menu item;
CutMenuItem - the cut menu item;
CopyMenuItem - the copy menu item;
OpenFileMenuItem - the open file menu item;
ExitMenuItem - the exit menu item;
NewFileMenuItem - the new file menu item;
SaveFileMenuItem - the save file menu item;
<PARAM NAME ="menusToRemove" VALUE="EditMenu,FileMenu,...">
- Indicates which menus should be
removed from the main menu bar. This list contains comma separated names
of the menus contained within the editor's main menu bar to be removed.
This allows the full customization of the menus inside the main menu
bar. The full list of the menus is:
EditMenu - edit menu;
FileMenu - file menu;
<PARAM NAME ="toolbarItemsToRemove"
VALUE="saveFileButton,printButton,cutButton,..."> - Indicates which toolbar items should
be removed from the main tool bar. This list contains comma separated
names of the toolbar items contained within the editor's main tool bar
to be removed. This allows the full customization of the tools inside
the main tool bar. The full list of the items is:
copyButton - the
copy button;
cutButton - the cut button;
pasteButton - the paste button;
redoButton - the redo button;
undoButton - the undo button;
openFileButton - the print file button;
saveFileButton - the save
file button;
printButton - the print file button;
theoryButton - theory group button;
logicSymbolsButton - logic group button;
arrowsButton - arrows group button;
trigButton - trigonometry group button;
fencesButton - fences group button;
layoutsButton - layouts group button;
accentsButton - accents group button;
greekSymbolsButton - greek symbols group button;
calcButton - calculus group button;
matricesButton - matrices group button;
relationSymbolsButton - relations group button;
operatorsButton - operators group button;
clearAllButton - clear all button;
Our
Services and assistance
All Sferyx products are assured
with continuous e-mail support. With the retail products is included
in the price 30 days startup support. Additionally, you can purchase
annual support subscription tickets from our web store.
Sferyx offers also a wide
range of customization services for its products in order to satisfy
any customer requirement. We can adapt our products to fit the customer
needs and any kind of integration requirements. We execute also express
developments, customization under request, development of new features
on demand. You can request a quote at sales@sferyx.com
or support@sferyx.com indicating
your requirements and the terms of delivery.
|