Nekit
v 0.9

com.nekhem.nekit
Class NekitApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--com.nekhem.nekit.NekitApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, NekitEditorOwner, javax.swing.RootPaneContainer, java.io.Serializable

public class NekitApplet
extends javax.swing.JApplet
implements NekitEditorOwner

Nekit Applet
Applet for editing and saving HTML.

Accepts the following parameters:
"SITE": generic identifier of the site
"ID_SESSION": session identifier
"ID_TEXT": text identifier
"XML_URL": URL for XMLRPC calls
"BASE_LINK_PATH": base path for internal links
"BASE_FILE_PATH": base path for links to uploaded files
"UPLOAD_PAGE_URL": address of a page where one can upload files (visible from BASE_FILE_PATH)
"DOCUMENT": (if XML_URL not defined) the initial document text
"SHOW_SOURCE": if "true" add a button to show the edited HTML source

Since:
20/8/2002
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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
NekitApplet()
          Constructor
 
Method Summary
 void close()
          Trasmit the text (like save()) and close the current browser window (containing the applet).
 java.lang.String getDocumentText()
          ACCESSION method for obtaining the Document as a text string.
 java.lang.String getRemoteTreeString(java.lang.String actionId)
          Get a remote site structure/sub-structure via XmlRpc
 void init()
          Applet (re)initialization, called on every run.
 void newFile()
          Opens a browser sub-window at the address defined by the applet parameter 'UPLOAD_PAGE_URL'.
 boolean newFileEnabled()
          The editor needs to know if newFile is enabled
 void save(java.lang.String text)
          Transmits via RPC connection the text to the server
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, 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, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NekitApplet

public NekitApplet()
Constructor

Method Detail

init

public void init()
Applet (re)initialization, called on every run. Gets applet parameters, establishes rpc connection and builds the Editor.

Overrides:
init in class java.applet.Applet

close

public void close()
Trasmit the text (like save()) and close the current browser window (containing the applet).

Specified by:
close in interface NekitEditorOwner

newFile

public void newFile()
Opens a browser sub-window at the address defined by the applet parameter 'UPLOAD_PAGE_URL'. The address should point to a page that permits to upload a new file on the reference site.

Specified by:
newFile in interface NekitEditorOwner

newFileEnabled

public boolean newFileEnabled()
Description copied from interface: NekitEditorOwner
The editor needs to know if newFile is enabled

Specified by:
newFileEnabled in interface NekitEditorOwner
Returns:
true if the 'newFile' operation is enabled

getRemoteTreeString

public java.lang.String getRemoteTreeString(java.lang.String actionId)
Get a remote site structure/sub-structure via XmlRpc

Specified by:
getRemoteTreeString in interface NekitEditorOwner
Parameters:
actionId - Identifier of the particular tree to be shown
Returns:
The xml description of the structure (in a simple format, see documentation)

save

public void save(java.lang.String text)
Transmits via RPC connection the text to the server

Specified by:
save in interface NekitEditorOwner
Parameters:
text - the text to be transmitted

getDocumentText

public java.lang.String getDocumentText()
ACCESSION method for obtaining the Document as a text string. This can be called via javascript only under InternetExplorer, under Netscape the JavaPlugin prevents javascript calls to the applet.

Returns:
The HTML Document

Nekit
v 0.9

Submit a bug or feature
Nekhem Technologies