Kafenio.editor 0.8.5

de.xeinfach.kafenio
Class KafenioPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byde.xeinfach.kafenio.KafenioPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.DocumentListener, java.util.EventListener, java.awt.image.ImageObserver, KafenioPanelInterface, java.awt.event.KeyListener, java.awt.MenuContainer, java.io.Serializable

public class KafenioPanel
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.awt.event.KeyListener, javax.swing.event.DocumentListener, KafenioPanelInterface

Description: Main application class that creates a Java wysiwyg editor component

Author:
Karsten Pawlik, Howard Kistler
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
protected  boolean documentConfirmed
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
KafenioPanel(KafenioPanelConfigurationInterface iConfiguration)
          Contructs a new KafenioPanel using the given configuration object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          ActionListener method
 void changedUpdate(javax.swing.event.DocumentEvent de)
          handles a DocumentEvent if the document was changed
 void detachFrame()
          bridge method to detach the applet into a separate window and back.
 void dispose()
          Convenience method for deallocating the app resources
 java.lang.String getAppName()
          Convenience method for obtaining the application name
 int getCaretPosition()
           
 KafenioPanelConfiguration getConfig()
           
static java.io.File getCurrentFile()
          Convenience method for obtaining the current file handle
 java.lang.String getDocumentBody()
          Convenience method for obtaining the document text contained within the BODY tags (a common request)
 boolean getDocumentConfirmed()
           
 java.lang.String getDocumentText()
          Convenience method for obtaining the document text
 ExtendedHTMLDocument getExtendedHtmlDoc()
           
 ExtendedHTMLEditorKit getExtendedHtmlKit()
           
 java.awt.Frame getFrame()
          Convenience method for obtaining the application's Frame
 javax.swing.text.html.HTMLEditorKit getHTMLEditorKit()
           
 javax.swing.JScrollPane getHTMLScrollPane()
          Can be used for setting different preferred sizes
 javax.swing.JMenuBar getJMenuBar()
           
 javax.swing.JToolBar getJToolBar1()
           
 javax.swing.JToolBar getJToolBar2()
           
 KafenioPanelActions getKafenioActions()
           
 javax.swing.ImageIcon getKafenioIcon(java.lang.String iconName)
          Convenience method for fetching icon images from jar file
 java.awt.Container getKafenioParent()
           
 javax.swing.ImageIcon getMenuIcon(java.lang.String iconName)
          returns an ImageIcon if isShowMenuIcons() returns true or null if false is returned.
 de.xeinfach.kafenio.KafenioPanel.RedoAction getRedoAction()
           
 javax.swing.JTextPane getSourcePane()
          Convenience method for obtaining the Source JTextPane
 javax.swing.JScrollPane getSrcScrollPane()
           
 java.awt.datatransfer.Clipboard getSysClipboard()
           
 java.util.Hashtable getTActions()
           
 javax.swing.JTextPane getTextPane()
          Convenience method for obtaining the WYSIWYG JTextPane
 java.lang.String getTranslation(java.lang.String stringToTranslate)
           
 de.xeinfach.kafenio.KafenioPanel.UndoAction getUndoAction()
           
 void handleDocumentChange(javax.swing.event.DocumentEvent de)
          implementation for Document Handler methods
 java.lang.String insertFile()
          Method for inserting a file (either image-file or a url)
 void insertListStyle(javax.swing.text.Element element)
          inserts a list item into the document at "element"'s position.
 void insertUpdate(javax.swing.event.DocumentEvent de)
          handles a DocumentEvent if a document was inserted
 void keyPressed(java.awt.event.KeyEvent e)
          handles the given KeyEvent if key was pressed down (do nothing)
 void keyReleased(java.awt.event.KeyEvent e)
          handles the given KeyEvent if key was released (do nothing)
 void keyTyped(java.awt.event.KeyEvent ke)
          KeyListener method, handles the given KeyEvent
 void manageListElement(javax.swing.text.Element element)
          Method that handles initial list insertion and deletion
 boolean postContent(java.lang.String contentToPost)
          posts the content body either as plain-urlencoded ascii text or base64 encoded to a given server-URL
 boolean postContentBody()
          posts the content body either as plain-urlencoded ascii text or base64 encoded to a given server-URL
 void purgeUndos()
          Convenience method for clearing out the UndoManager
 void quitApp()
          ask for confirmation if there are unsaved changes.
 void refreshOnUpdate()
          Convenience method for refreshing and displaying changes
 void registerDocument(ExtendedHTMLDocument newHtmlDoc)
          Method for setting a document as the current document for the text pane and re-registering the controls and settings for it
 void registerDocumentStyles()
          Method for locating the available CSS style for the document and adding them to the styles selector
 void removeUpdate(javax.swing.event.DocumentEvent de)
          handles a DocumentEvent if the document was removed
 void serializeIn()
          Method for reading in a serialized document from a file
 void serializeOut(javax.swing.text.html.HTMLDocument doc)
          Method for serializing the document out to a file
protected  void setAsConfirmedAndQuit()
          quits without saving.
 void setCaretPosition(int newPositon)
          sets the new caret position
 void setDocumentConfirmed(boolean documentConfirmed)
           
 void setDocumentText(java.lang.String sText)
          Convenience method for setting the document text contains hack around JDK bug 4799813 see http://developer.java.sun.com/developer/bugParade/bugs/4799813.html regression in 1.4.x, to be fixed in 1.5 When setting the text to be "& footext", it becomes "&footext" (space disappears) same ocurrs for "</a> &amp;", it becomes "</a>&amp;" (space disappears) with the hack it now does not occur anymore.
 void setKafenioParent(java.awt.Window newParent)
           
 void toggleSourceWindow()
          Convenience method for toggling source window visibility
static java.lang.String[] tokenize(java.lang.String input)
          This method is used to tokenize multi-value parameter fields given in the applet
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

documentConfirmed

protected boolean documentConfirmed
Constructor Detail

KafenioPanel

public KafenioPanel(KafenioPanelConfigurationInterface iConfiguration)
Contructs a new KafenioPanel using the given configuration object.

Method Detail

getJMenuBar

public javax.swing.JMenuBar getJMenuBar()
Specified by:
getJMenuBar in interface KafenioPanelInterface
See Also:
KafenioPanelInterface.getTActions()

getJToolBar1

public javax.swing.JToolBar getJToolBar1()
Specified by:
getJToolBar1 in interface KafenioPanelInterface
See Also:
KafenioPanelInterface.getJToolBar1()

getJToolBar2

public javax.swing.JToolBar getJToolBar2()
Specified by:
getJToolBar2 in interface KafenioPanelInterface
See Also:
KafenioPanelInterface.getJToolBar2()

setDocumentConfirmed

public void setDocumentConfirmed(boolean documentConfirmed)
Specified by:
setDocumentConfirmed in interface KafenioPanelInterface
Parameters:
documentConfirmed - true or false, default is false.

getDocumentConfirmed

public boolean getDocumentConfirmed()
Specified by:
getDocumentConfirmed in interface KafenioPanelInterface
Returns:
returns the value of documentConfirmed. default is false.

getTActions

public java.util.Hashtable getTActions()
Specified by:
getTActions in interface KafenioPanelInterface
Returns:
returns tActions for a JTextPane as Hashtable.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
ActionListener method

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - an action event to handle

detachFrame

public void detachFrame()
bridge method to detach the applet into a separate window and back.

Specified by:
detachFrame in interface KafenioPanelInterface

keyTyped

public void keyTyped(java.awt.event.KeyEvent ke)
KeyListener method, handles the given KeyEvent

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
ke - a KeyEvent to handle

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
handles the given KeyEvent if key was pressed down (do nothing)

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - a KeyEvent to handle

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
handles the given KeyEvent if key was released (do nothing)

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
e - a KeyEvent to handle

insertListStyle

public void insertListStyle(javax.swing.text.Element element)
                     throws javax.swing.text.BadLocationException,
                            java.io.IOException
inserts a list item into the document at "element"'s position.

Parameters:
element - the element to add the list to
Throws:
javax.swing.text.BadLocationException - is thrown if something went wrong during insertion
java.io.IOException - is thrown if an io exception occured.

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent de)
handles a DocumentEvent if the document was changed

Specified by:
changedUpdate in interface javax.swing.event.DocumentListener
Parameters:
de - DocumentEvent to handle

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent de)
handles a DocumentEvent if a document was inserted

Specified by:
insertUpdate in interface javax.swing.event.DocumentListener
Parameters:
de - DocumentEvent to handle

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent de)
handles a DocumentEvent if the document was removed

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
Parameters:
de - DocumentEvent to handle

handleDocumentChange

public void handleDocumentChange(javax.swing.event.DocumentEvent de)
implementation for Document Handler methods

Specified by:
handleDocumentChange in interface KafenioPanelInterface
Parameters:
de - DocumentEvent to handle

registerDocument

public void registerDocument(ExtendedHTMLDocument newHtmlDoc)
Method for setting a document as the current document for the text pane and re-registering the controls and settings for it

Parameters:
newHtmlDoc - new Html Document to register in the editor pane

registerDocumentStyles

public void registerDocumentStyles()
Method for locating the available CSS style for the document and adding them to the styles selector

Specified by:
registerDocumentStyles in interface KafenioPanelInterface

manageListElement

public void manageListElement(javax.swing.text.Element element)
Method that handles initial list insertion and deletion

Specified by:
manageListElement in interface KafenioPanelInterface
Parameters:
element - list element to manage

insertFile

public java.lang.String insertFile()
Method for inserting a file (either image-file or a url)

Specified by:
insertFile in interface KafenioPanelInterface
Returns:
returns the filecontents from the selected file

serializeOut

public void serializeOut(javax.swing.text.html.HTMLDocument doc)
                  throws java.io.IOException
Method for serializing the document out to a file

Specified by:
serializeOut in interface KafenioPanelInterface
Parameters:
doc - a HTMLDocument
Throws:
java.io.IOException - an IOException

serializeIn

public void serializeIn()
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Method for reading in a serialized document from a file

Specified by:
serializeIn in interface KafenioPanelInterface
Throws:
java.io.IOException - an io exception
java.lang.ClassNotFoundException - is thrown if class was not found.

tokenize

public static java.lang.String[] tokenize(java.lang.String input)
This method is used to tokenize multi-value parameter fields given in the applet

Parameters:
input - The string to tokenize
Returns:
An array containing each token of the input string

getHTMLScrollPane

public javax.swing.JScrollPane getHTMLScrollPane()
Can be used for setting different preferred sizes

Specified by:
getHTMLScrollPane in interface KafenioPanelInterface
See Also:
KafenioPanelInterface.getHTMLScrollPane()

getSrcScrollPane

public javax.swing.JScrollPane getSrcScrollPane()
Specified by:
getSrcScrollPane in interface KafenioPanelInterface
See Also:
KafenioPanelInterface.getSrcScrollPane()

getTextPane

public javax.swing.JTextPane getTextPane()
Convenience method for obtaining the WYSIWYG JTextPane

Specified by:
getTextPane in interface KafenioPanelInterface
Returns:
returns the editor's HTML-view JTextPane

getSourcePane

public javax.swing.JTextPane getSourcePane()
Convenience method for obtaining the Source JTextPane

Specified by:
getSourcePane in interface KafenioPanelInterface
Returns:
returns the editor's Source-view JTextPane

getFrame

public java.awt.Frame getFrame()
Convenience method for obtaining the application's Frame

Specified by:
getFrame in interface KafenioPanelInterface
Returns:
returns the editor applications Frame

getCurrentFile

public static java.io.File getCurrentFile()
Convenience method for obtaining the current file handle

Returns:
returns the File Object for the currently edited file.

getAppName

public java.lang.String getAppName()
Convenience method for obtaining the application name

Specified by:
getAppName in interface KafenioPanelInterface
Returns:
returns the application name as string.

getDocumentText

public java.lang.String getDocumentText()
Convenience method for obtaining the document text

Specified by:
getDocumentText in interface KafenioPanelInterface
Returns:
returns the document text as string.

setAsConfirmedAndQuit

protected void setAsConfirmedAndQuit()
quits without saving.


postContentBody

public boolean postContentBody()
posts the content body either as plain-urlencoded ascii text or base64 encoded to a given server-URL

Specified by:
postContentBody in interface KafenioPanelInterface
Returns:
returns true if successful, false otherwise.

postContent

public boolean postContent(java.lang.String contentToPost)
posts the content body either as plain-urlencoded ascii text or base64 encoded to a given server-URL

Parameters:
contentToPost - the content to post.
Returns:
returns true if successful, false otherwise.

getDocumentBody

public java.lang.String getDocumentBody()
Convenience method for obtaining the document text contained within the BODY tags (a common request)

Specified by:
getDocumentBody in interface KafenioPanelInterface
Returns:
the document's body as html-text

setDocumentText

public void setDocumentText(java.lang.String sText)
Convenience method for setting the document text contains hack around JDK bug 4799813 see http://developer.java.sun.com/developer/bugParade/bugs/4799813.html regression in 1.4.x, to be fixed in 1.5 When setting the text to be "& footext", it becomes "&footext" (space disappears) same ocurrs for "</a> &amp;", it becomes "</a>&amp;" (space disappears) with the hack it now does not occur anymore.

Specified by:
setDocumentText in interface KafenioPanelInterface
Parameters:
sText - the html-text of the document

purgeUndos

public void purgeUndos()
Convenience method for clearing out the UndoManager

Specified by:
purgeUndos in interface KafenioPanelInterface

refreshOnUpdate

public void refreshOnUpdate()
Convenience method for refreshing and displaying changes

Specified by:
refreshOnUpdate in interface KafenioPanelInterface

dispose

public void dispose()
Convenience method for deallocating the app resources

Specified by:
dispose in interface KafenioPanelInterface

getKafenioIcon

public javax.swing.ImageIcon getKafenioIcon(java.lang.String iconName)
Convenience method for fetching icon images from jar file

Specified by:
getKafenioIcon in interface KafenioPanelInterface
Parameters:
iconName - name of the icon without "HK.gif" at the end
Returns:
returns image as ImageIcon

getMenuIcon

public javax.swing.ImageIcon getMenuIcon(java.lang.String iconName)
returns an ImageIcon if isShowMenuIcons() returns true or null if false is returned.

Specified by:
getMenuIcon in interface KafenioPanelInterface
Parameters:
iconName - name of the icon without "HK.gif" at the end.
Returns:
returns an ImageIcon if isShowMenuIcons() returns true or null if false is returned.

toggleSourceWindow

public void toggleSourceWindow()
Convenience method for toggling source window visibility

Specified by:
toggleSourceWindow in interface KafenioPanelInterface

getExtendedHtmlDoc

public ExtendedHTMLDocument getExtendedHtmlDoc()
Returns:
returns the currently used ExtendedHTMLDocument Object

getExtendedHtmlKit

public ExtendedHTMLEditorKit getExtendedHtmlKit()
Returns:
returns the currently used ExtendedHTMLEditorKit Object.

getHTMLEditorKit

public javax.swing.text.html.HTMLEditorKit getHTMLEditorKit()
Specified by:
getHTMLEditorKit in interface KafenioPanelInterface
See Also:
KafenioPanelInterface.getHTMLEditorKit()

getCaretPosition

public int getCaretPosition()
Specified by:
getCaretPosition in interface KafenioPanelInterface
Returns:
returns the current caret position

setCaretPosition

public void setCaretPosition(int newPositon)
sets the new caret position

Specified by:
setCaretPosition in interface KafenioPanelInterface
Parameters:
newPositon - new position of the caret.

getKafenioParent

public java.awt.Container getKafenioParent()
Specified by:
getKafenioParent in interface KafenioPanelInterface
Returns:
returns the parent KafenioContainerInterface of this Class

setKafenioParent

public void setKafenioParent(java.awt.Window newParent)
Specified by:
setKafenioParent in interface KafenioPanelInterface

getRedoAction

public de.xeinfach.kafenio.KafenioPanel.RedoAction getRedoAction()
Returns:
returns redo action

getUndoAction

public de.xeinfach.kafenio.KafenioPanel.UndoAction getUndoAction()
Returns:
returns undo action

getSysClipboard

public java.awt.datatransfer.Clipboard getSysClipboard()
Specified by:
getSysClipboard in interface KafenioPanelInterface
Returns:
returns a java.awt.datatransfer.Clipboard object, null if clipboard is not available.

getConfig

public KafenioPanelConfiguration getConfig()
Returns:
returns the current configuration.

getTranslation

public java.lang.String getTranslation(java.lang.String stringToTranslate)
Specified by:
getTranslation in interface KafenioPanelInterface
Parameters:
stringToTranslate - the string that is to be translated.
Returns:
returns the translatrix-component for this editor component

getKafenioActions

public KafenioPanelActions getKafenioActions()
Returns:
returns the current KafenioPanelActions.

quitApp

public void quitApp()
ask for confirmation if there are unsaved changes.

Specified by:
quitApp in interface KafenioPanelInterface

Kafenio.editor 0.8.5

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