Package se.datadosen.component
Class SmartTextComponentSupport
java.lang.Object
se.datadosen.component.SmartTextComponentSupport
- All Implemented Interfaces:
MouseListener
,EventListener
,UndoableEditListener
public class SmartTextComponentSupport
extends Object
implements UndoableEditListener, MouseListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static JTextComponent
Trigger lazy sticky loading of menuvoid
installHoverButton
(Action action) boolean
boolean
boolean
void
void
void
void
void
void
setAllowHTMLEditing
(boolean allowHTMLEditing) void
setFullHTMLEditing
(boolean fullHTMLEditing) void
Implements UndoableEditListener
-
Field Details
-
NO_SELECTION
public static final int NO_SELECTION- See Also:
-
SOME_SELECTED
public static final int SOME_SELECTED- See Also:
-
ALL_SELECTED
public static final int ALL_SELECTED- See Also:
-
UNDO_LIMIT
public static final int UNDO_LIMIT- See Also:
-
-
Constructor Details
-
SmartTextComponentSupport
-
-
Method Details
-
getCurrentComponent
- Returns:
- Component that currently has mouse hovering over it
-
isAllowHTMLEditing
public boolean isAllowHTMLEditing() -
setAllowHTMLEditing
public void setAllowHTMLEditing(boolean allowHTMLEditing) -
isFullHTMLEditing
public boolean isFullHTMLEditing() -
setFullHTMLEditing
public void setFullHTMLEditing(boolean fullHTMLEditing) -
getPopupMenu
Trigger lazy sticky loading of menu- Returns:
-
getUndoManager
-
doPopup
-
undoableEditHappened
Implements UndoableEditListener- Specified by:
undoableEditHappened
in interfaceUndoableEditListener
- Parameters:
e
-
-
isSpelling
public boolean isSpelling() -
installHoverButton
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-