adalogo.gui.editor

Class IndentEditorKit


public class IndentEditorKit
extends StyledEditorKit

Field Summary

Action
commentAction
Action
copyAction
Action
cutAction
Action[]
fontSizeActions
Action
pasteAction
Action
uncommentAction

Constructor Summary

IndentEditorKit()

Method Summary

Action[]
getActions()
overriden getActions to replace certain actions with the analog indent actions (tab enter delete backspace home).
void
install(JEditorPane pane)
override install to add shift tab action.

Field Details

commentAction

public Action commentAction


copyAction

public Action copyAction


cutAction

public Action cutAction


fontSizeActions

public Action[] fontSizeActions


pasteAction

public Action pasteAction


uncommentAction

public Action uncommentAction

Constructor Details

IndentEditorKit

public IndentEditorKit()

Method Details

getActions

public Action[] getActions()
overriden getActions to replace certain actions with the analog indent actions (tab enter delete backspace home). all but the shift tab action is inserted here. this is because there is no input map entry for shift tab (or at least i have no idea where or how). the shift tab action is bound to the textpane directly in the overridden install method

See Also:
install(JEditorPane)


install

public void install(JEditorPane pane)
override install to add shift tab action. the getActions() was not able to install shift tab. so it is added here using the traditional inputmap actionmap method.

See Also:
getActions()