Kafenio.editor 0.8.5

de.xeinfach.kafenio
Class KafenioApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byjavax.swing.JApplet
                      extended byde.xeinfach.kafenio.KafenioApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, KafenioContainerInterface, KafenioControllerSaveContentInterface, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class KafenioApplet
extends javax.swing.JApplet
implements KafenioControllerSaveContentInterface, KafenioContainerInterface

Description: A WYSIWYG Editor Applet that allows to create and edit HTML content and store it to a URL.

the following values for the parameter "BUTTONS" are supported:
NEW, SEPARATOR, CUT, COPY, PASTE, BOLD, ITALIC, UNDERLINE, STRIKE, SUPER, SUB, ULIST, OLIST, CLEAR, ANCHOR, SOURCE, STYLES, DETACHFRAME

Author:
Karsten Pawlik
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
KafenioApplet()
          Constructs a new Kafenio Applet.
 
Method Summary
 boolean checkBoolean(java.lang.String condition)
           
 void destroy()
          is called during applet destruction.
 void detachFrame()
          method for popping the applet into a separate window and back.
 java.lang.String getContents()
          Convenience method for getting the document body from dedi (http://www.der-dirigent.de)
 java.lang.String getDocumentBody()
          Method for passing back the document body to the applet's container.
 java.lang.String getDocumentText()
          Method for passing back the document text to the applet's container.
 void init()
          initializes the applet.
 void saveAllAppletsContent()
          the method calls the saveAllAppletContents method in KafenioAppletObserver.
 boolean saveAppletContents()
          the method calls the postContentBody method in KafenioPanel.
 void setDocumentText(java.lang.String text)
          Method for setting the document manually.
 void start()
          is called while during applet startup.
 void stop()
          is called during applet shutdown.
 
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
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
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
 
Methods inherited from interface de.xeinfach.kafenio.interfaces.KafenioContainerInterface
setJMenuBar
 

Constructor Detail

KafenioApplet

public KafenioApplet()
Constructs a new Kafenio Applet.

Method Detail

init

public void init()
initializes the applet.


start

public void start()
is called while during applet startup. registers this applet in the global appletRegister.


stop

public void stop()
is called during applet shutdown. de-registers this applet from the global appletRegister.


destroy

public void destroy()
is called during applet destruction. de-registers this applet from the global appletRegister.


checkBoolean

public boolean checkBoolean(java.lang.String condition)
Parameters:
condition - a condition to check.
Returns:
returns true if the given String is "true" ignoring the case or false if not.

getDocumentText

public java.lang.String getDocumentText()
Method for passing back the document text to the applet's container. This is the entire document, including the top-level HTML tags.

This method is a bridge-function to the KafenioPanel's getDocumentText() method.

Returns:
returns the document text as string.

getDocumentBody

public java.lang.String getDocumentBody()
Method for passing back the document body to the applet's container. This is only the text contained within the BODY tags.

Returns:
returns the document body as string.

setDocumentText

public void setDocumentText(java.lang.String text)
Method for setting the document manually. Will need code in the web page to call this.

Parameters:
text - string to set the document text to.

getContents

public java.lang.String getContents()
Convenience method for getting the document body from dedi (http://www.der-dirigent.de)

Returns:
returns the document body (same as getDocumentBody())

saveAppletContents

public boolean saveAppletContents()
the method calls the postContentBody method in KafenioPanel. it is part of the implementation of the KafenioControllerSaveContentInterface.

Specified by:
saveAppletContents in interface KafenioControllerSaveContentInterface
Returns:
returns true, if content post was successful, false otherwise.

saveAllAppletsContent

public void saveAllAppletsContent()
the method calls the saveAllAppletContents method in KafenioAppletObserver. it is part of the implementation of the KafenioControllerSaveContentInterface.

Specified by:
saveAllAppletsContent in interface KafenioControllerSaveContentInterface

detachFrame

public void detachFrame()
method for popping the applet into a separate window and back.

Specified by:
detachFrame in interface KafenioContainerInterface

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)