Package org.apache.pivot.wtk.text
Class ElementListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.text.ElementListener.Adapter
-
- All Implemented Interfaces:
ElementListener
- Enclosing interface:
- ElementListener
@Deprecated public static class ElementListener.Adapter extends java.lang.Object implements ElementListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.text.ElementListener
ElementListener.Adapter, ElementListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
backgroundColorChanged(Element element, java.awt.Color previousBackgroundColor)
Deprecated.Called when the background color has changed.void
fontChanged(Element element, java.awt.Font previousFont)
Deprecated.Called when the font has changed.void
foregroundColorChanged(Element element, java.awt.Color previousForegroundColor)
Deprecated.Called when the foreground color has changed.void
nodeInserted(Element element, int index)
Deprecated.Called when a node has been inserted into an element.void
nodesRemoved(Element element, int index, Sequence<Node> nodes)
Deprecated.Called when nodes have been removed from an element.void
strikethroughChanged(Element element)
Deprecated.Called when strikethrough style has changed.void
underlineChanged(Element element)
Deprecated.Called when underline style has changed.
-
-
-
Method Detail
-
nodeInserted
public void nodeInserted(Element element, int index)
Deprecated.Description copied from interface:ElementListener
Called when a node has been inserted into an element.- Specified by:
nodeInserted
in interfaceElementListener
- Parameters:
element
- The element that has changed.index
- Where in the element's node sequence the new one was inserted.
-
nodesRemoved
public void nodesRemoved(Element element, int index, Sequence<Node> nodes)
Deprecated.Description copied from interface:ElementListener
Called when nodes have been removed from an element.- Specified by:
nodesRemoved
in interfaceElementListener
- Parameters:
element
- The element that changed.index
- The starting index of where nodes were removed.nodes
- The actual sequence of removed nodes.
-
fontChanged
public void fontChanged(Element element, java.awt.Font previousFont)
Deprecated.Description copied from interface:ElementListener
Called when the font has changed.- Specified by:
fontChanged
in interfaceElementListener
- Parameters:
element
- The element that changed.previousFont
- What the font used to be.
-
backgroundColorChanged
public void backgroundColorChanged(Element element, java.awt.Color previousBackgroundColor)
Deprecated.Description copied from interface:ElementListener
Called when the background color has changed.- Specified by:
backgroundColorChanged
in interfaceElementListener
- Parameters:
element
- The element that changed.previousBackgroundColor
- What the background color was before the change.
-
foregroundColorChanged
public void foregroundColorChanged(Element element, java.awt.Color previousForegroundColor)
Deprecated.Description copied from interface:ElementListener
Called when the foreground color has changed.- Specified by:
foregroundColorChanged
in interfaceElementListener
- Parameters:
element
- The element whose color changed.previousForegroundColor
- The old foreground color.
-
underlineChanged
public void underlineChanged(Element element)
Deprecated.Description copied from interface:ElementListener
Called when underline style has changed.- Specified by:
underlineChanged
in interfaceElementListener
- Parameters:
element
- The element that changed.
-
strikethroughChanged
public void strikethroughChanged(Element element)
Deprecated.Description copied from interface:ElementListener
Called when strikethrough style has changed.- Specified by:
strikethroughChanged
in interfaceElementListener
- Parameters:
element
- The element that changed.
-
-