RestrictableEditAction

abstract class RestrictableEditAction(actionName: String) : TextAction

An text edit TextAction that may be prevented based on whether the JTextPane.canEdit flag is set to false. If false the action will be prevented and the UIManager will provide some kind of appropriate error feedback.

Author

Richard Arriaga

Parameters

actionName

The TextAction name.

Constructors

Link copied to clipboard
fun RestrictableEditAction(actionName: String)

Functions

Link copied to clipboard
open fun accept(p0: Any): Boolean
Link copied to clipboard
open override fun actionPerformed(e: ActionEvent)
Link copied to clipboard
open override fun addPropertyChangeListener(p0: PropertyChangeListener)
Link copied to clipboard
abstract fun executeEditAction(e: ActionEvent, sourcePane: JTextPane)

The function that performs the actual edit action given JTextPane.canEdit is true.

Link copied to clipboard
open fun getKeys(): Array<Any>
Link copied to clipboard
open fun getPropertyChangeListeners(): Array<PropertyChangeListener>
Link copied to clipboard
open override fun getValue(p0: String): Any
Link copied to clipboard
open override fun isEnabled(): Boolean
Link copied to clipboard
open override fun putValue(p0: String, p1: Any)
Link copied to clipboard
open override fun removePropertyChangeListener(p0: PropertyChangeListener)
Link copied to clipboard
open override fun setEnabled(p0: Boolean)