de.xeinfach.kafenio
Class KafenioPanelActions
java.lang.Object
de.xeinfach.kafenio.KafenioPanelActions
- public class KafenioPanelActions
- extends java.lang.Object
Description: This class contains all shared actions of the editor.
(currently redoaction, undoaction and the JTextPane actions are still
initialized in KafenioPanel class, this will be changed later on.)
- Author:
- Karsten Pawlik
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KafenioPanelActions
public KafenioPanelActions(KafenioPanel newParent)
- creates all actions required by KafenioPanel Object.
- Parameters:
newParent - the KafenioPanel that these actions are for.
getActionAlignCenter
public CustomAction getActionAlignCenter()
- Returns:
- returns action to align paragraph centric
getActionAlignJustified
public CustomAction getActionAlignJustified()
- Returns:
- returns action to align paragraph justified
getActionAlignLeft
public CustomAction getActionAlignLeft()
- Returns:
- returns action to align paragraph left
getActionAlignRight
public CustomAction getActionAlignRight()
- Returns:
- returns action to align paragraph right
getActionClearFormat
public CustomAction getActionClearFormat()
- Returns:
- returns action to clear all formattings of selected text
getActionFontBold
public javax.swing.text.StyledEditorKit.BoldAction getActionFontBold()
- Returns:
- returns action to format selected text bold
getActionFontItalic
public javax.swing.text.StyledEditorKit.ItalicAction getActionFontItalic()
- Returns:
- returns action to format selected text italic
getActionFontStrike
public FormatAction getActionFontStrike()
- Returns:
- returns action to format selected text strikedthrough
getActionFontSubscript
public FormatAction getActionFontSubscript()
- Returns:
- returns action to format selected text subscripted
getActionFontSuperscript
public FormatAction getActionFontSuperscript()
- Returns:
- returns action to format selected text superscripted
getActionFontUnderline
public javax.swing.text.StyledEditorKit.UnderlineAction getActionFontUnderline()
- Returns:
- returns action to format selected text underlined
getActionIndentLeft
public IndentAction getActionIndentLeft()
- Returns:
- returns action to de-indent the current paragraph
getActionIndentRight
public IndentAction getActionIndentRight()
- Returns:
- returns action to indent the current paragraph
getActionInsertHyperlink
public CustomAction getActionInsertHyperlink()
- Returns:
- returns action that adds an anchor to the selected text.
getActionInsertServerImage
public ServerImageAction getActionInsertServerImage()
- Returns:
- returns action that adds an image from a server
getActionInsertCharacter
public SpecialCharAction getActionInsertCharacter()
- Returns:
- returns action to insert a character
getActionListOrdered
public ListAutomationAction getActionListOrdered()
- Returns:
- returns action to insert/modify ordered lists
getActionListUnordered
public ListAutomationAction getActionListUnordered()
- Returns:
- returns action to insert/modify unordered lists.
getActionSelectFont
public CustomAction getActionSelectFont()
- Returns:
- returns action to select a font for the selected text
getActionToggleCase
public ToggleCaseAction getActionToggleCase()
- Returns:
- returns action to toggle case of the selected text.
getRedoAction
public de.xeinfach.kafenio.KafenioPanel.RedoAction getRedoAction()
- Returns:
- returns redo action
getUndoAction
public de.xeinfach.kafenio.KafenioPanel.UndoAction getUndoAction()
- Returns:
- returns undo action
getActionAddParagraph
public FormatAction getActionAddParagraph()
- Returns:
- returns action to add a paragraph.
getActionHeading1
public FormatAction getActionHeading1()
- Returns:
- returns action to format selected text with H1
getActionHeading2
public FormatAction getActionHeading2()
- Returns:
- returns action to format selected text with H2
getActionHeading3
public FormatAction getActionHeading3()
- Returns:
- returns action to format selected text with H3
getActionHeading4
public FormatAction getActionHeading4()
- Returns:
- returns action to format selected text with H4
getActionHeading5
public FormatAction getActionHeading5()
- Returns:
- returns action to format selected text with H5
getActionHeading6
public FormatAction getActionHeading6()
- Returns:
- returns action to format selected text with H6
getActionAddListItem
public FormatAction getActionAddListItem()
- Returns:
- returns action to add a list item.
getActionBlockquote
public FormatAction getActionBlockquote()
- Returns:
- returns action to format text blockquoted
getActionEmphasis
public FormatAction getActionEmphasis()
- Returns:
- returns action to format text empasized
getActionPre
public FormatAction getActionPre()
- Returns:
- returns action to format text using pre
getActionSpan
public FormatAction getActionSpan()
- Returns:
- returns action to format text using span
getActionStrong
public FormatAction getActionStrong()
- Returns:
- returns action to format text strong
getActionTT
public FormatAction getActionTT()
- Returns:
- returns action to format text using tt
getActionFontSize1
public CustomAction getActionFontSize1()
- Returns:
- returns action that formats text with fontsize 1
getActionFontSize2
public CustomAction getActionFontSize2()
- Returns:
- returns action that formats text with fontsize 2
getActionFontSize3
public CustomAction getActionFontSize3()
- Returns:
- returns action that formats text with fontsize 3
getActionFontSize4
public CustomAction getActionFontSize4()
- Returns:
- returns action that formats text with fontsize 4
getActionFontSize5
public CustomAction getActionFontSize5()
- Returns:
- returns action that formats text with fontsize 5
getActionFontSize6
public CustomAction getActionFontSize6()
- Returns:
- returns action that formats text with fontsize 6
getActionFontSize7
public CustomAction getActionFontSize7()
- Returns:
- returns action that formats text with fontsize 7
getActionFormatBig
public FormatAction getActionFormatBig()
- Returns:
- returns action that formats text using big
getActionFormatSmall
public FormatAction getActionFormatSmall()
- Returns:
- returns action that formats text using small
getActionFontColorAqua
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorAqua()
- Returns:
- returns action that formats text-foreground in color aqua
getActionFontColorBlack
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorBlack()
- Returns:
- returns action that formats text-foreground in color black
getActionFontColorBlue
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorBlue()
- Returns:
- returns action that formats text-foreground in color blue
getActionFontColorFuschia
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorFuschia()
- Returns:
- returns action that formats text-foreground in color fuschia
getActionFontColorGray
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorGray()
- Returns:
- returns action that formats text-foreground in color gray
getActionFontColorGreen
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorGreen()
- Returns:
- returns action that formats text-foreground in color green
getActionFontColorLime
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorLime()
- Returns:
- returns action that formats text-foreground in color lime
getActionFontColorMaroon
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorMaroon()
- Returns:
- returns action that formats text-foreground in color maroon
getActionFontColorNavy
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorNavy()
- Returns:
- returns action that formats text-foreground in color navy
getActionFontColorOlive
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorOlive()
- Returns:
- returns action that formats text-foreground in color olive
getActionFontColorPurple
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorPurple()
- Returns:
- returns action that formats text-foreground in color purple
getActionFontColorRed
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorRed()
- Returns:
- returns action that formats text-foreground in color red
getActionFontColorSilver
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorSilver()
- Returns:
- returns action that formats text-foreground in color silver
getActionFontColorTeal
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorTeal()
- Returns:
- returns action that formats text-foreground in color teal
getActionFontColorWhite
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorWhite()
- Returns:
- returns action that formats text-foreground in color white
getActionFontColorYellow
public javax.swing.text.StyledEditorKit.ForegroundAction getActionFontColorYellow()
- Returns:
- returns action that formats text-foreground in color yellow
getActionFontCustomColor
public CustomAction getActionFontCustomColor()
- Returns:
- returns action that formats text-foreground in default color (black)
Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)