pivot.wtk
Class Component

java.lang.Object
  extended by pivot.wtk.Component
All Implemented Interfaces:
ConstrainedVisual, Visual
Direct Known Subclasses:
Button, ChartView, Container, ImageView, Label, ListView, Meter, ScrollPane.Corner, Separator, TableView, TableViewHeader, TerraScrollBarSkin.Handle, TerraScrollBarSkin.ScrollButton, TerraSliderSkin.Thumb, TerraSpinnerSkin.SpinButton, TerraSpinnerSkin.SpinnerContent, TerraSplitPaneSkin.Splitter, TerraSplitPaneSkin.SplitterShadow, TextArea, TextInput, TreeView

public abstract class Component
extends java.lang.Object
implements ConstrainedVisual

Top level abstract base class for all components. In MVC terminology, a component represents the "controller". It has no inherent visual representation and acts as an intermediary between the component's data (the "model") and the skin, an implementation of Skin which serves as the "view".

TODO Add a contains() method or some equivalent that will support mouse interaction with non-rectangular components.


Nested Class Summary
static class Component.Attributes
          Abstract base class for component "attributes".
static class Component.ComponentDictionary
          Provides dictionary access to all components by handle.
 class Component.DecoratorSequence
          Decorator sequence implementation.
 class Component.StyleDictionary
          Style dictionary implementation.
 
Constructor Summary
Component()
          Creates a new component.
 
Method Summary
static void clearFocus()
          Clears the focus.
protected static void clearFocus(boolean temporary)
          Clears the focus.
protected  void finalize()
           
 Component.Attributes getAttributes()
          Returns the currently installed attributes.
 Bounds getBounds()
          Returns the component's bounding area.
static ListenerList<ComponentClassListener> getComponentClassListeners()
           
 ListenerList<ComponentDataListener> getComponentDataListeners()
           
 ListenerList<ComponentDecoratorListener> getComponentDecoratorListeners()
           
 ListenerList<ComponentDragDropListener> getComponentDragDropListeners()
           
 ListenerList<ComponentKeyListener> getComponentKeyListeners()
           
 ListenerList<ComponentLayoutListener> getComponentLayoutListeners()
           
 ListenerList<ComponentListener> getComponentListeners()
           
 ListenerList<ComponentMouseButtonListener> getComponentMouseButtonListeners()
           
 ListenerList<ComponentMouseListener> getComponentMouseListeners()
           
 ListenerList<ComponentMouseWheelListener> getComponentMouseWheelListeners()
           
static Component.ComponentDictionary getComponents()
          Returns the component dictionary.
 ListenerList<ComponentStateListener> getComponentStateListeners()
           
 Cursor getCursor()
          Returns the cursor that is displayed when the mouse pointer is over this component.
 Bounds getDecoratedBounds()
          Returns the component's bounding area including decorators.
 Component.DecoratorSequence getDecorators()
          Returns the component's decorator sequence.
 Display getDisplay()
           
 DragSource getDragSource()
           
 DropTarget getDropTarget()
           
static Component getFocusedComponent()
          Returns the currently focused component.
 java.lang.Integer getHandle()
          Return's the component's handle.
 int getHeight()
          Returns the visual's height.
 Point getLocation()
          Returns the component's location.
 Container getParent()
           
 int getPreferredHeight()
           
 int getPreferredHeight(int width)
          Returns the visual's preferred height given the provided width constraint.
 Dimensions getPreferredSize()
          Gets the component's unconstrained preferred size.
 int getPreferredWidth()
           
 int getPreferredWidth(int height)
          Returns the visual's preferred width given the provided height constraint.
 Dimensions getSize()
           
protected  Skin getSkin()
          Returns the currently installed skin.
 Component.StyleDictionary getStyles()
          Returns a dictionary instance representing the component's style properties.
 java.lang.String getTooltipText()
          Returns the component's tooltip text.
 java.lang.Object getUserData()
           
 Bounds getVisibleArea()
          Determines the visible area of a component.
 Bounds getVisibleArea(Bounds area)
          Determines the visible area of a component.
 Bounds getVisibleArea(int x, int y, int width, int height)
          Determines the visible area of a component.
 int getWidth()
          Returns the visual's width.
 Window getWindow()
           
 int getX()
          Returns the component's x-coordinate.
 int getY()
          Returns the component's y-coordinate.
protected  void installSkin(java.lang.Class<? extends Component> componentClass)
          Installs the skin for the given component class, unless a subclass has defined a more specific skin.
 void invalidate()
          Notifies the component's parent that it needs to re-layout.
 boolean isBlocked()
          Determines if this component is blocked.
 boolean isDisplayable()
          Returns the component's displayability.
 boolean isEnabled()
          Returns the component's enabled state.
 boolean isFocusable()
          Returns this component's focusability.
 boolean isFocused()
          Returns the component's focused state.
 boolean isMouseOver()
          Determines if the mouse is positioned over this component.
 boolean isPreferredHeightSet()
          Returns a flag indicating whether the preferred height was explicitly set by the caller or is the default value determined by the skin.
 boolean isPreferredSizeSet()
          Returns a flag indicating whether the preferred size was explicitly set by the caller or is the default value determined by the skin.
 boolean isPreferredWidthSet()
          Returns a flag indicating whether the preferred width was explicitly set by the caller or is the default value determined by the skin.
 boolean isShowing()
          Determines if this component is showing.
 boolean isValid()
          Returns the component's valid state.
 boolean isVisible()
          Returns the component's visibility.
protected  boolean keyPressed(int keyCode, Keyboard.KeyLocation keyLocation)
           
protected  boolean keyReleased(int keyCode, Keyboard.KeyLocation keyLocation)
           
protected  boolean keyTyped(char character)
           
 void load(Dictionary<java.lang.String,?> context)
          Copies bound values from the bind context to the component.
 Point mapPointFromAncestor(Container ancestor, int x, int y)
          Maps a point in the specified ancestor's coordinate space to this component's coordinate system.
 Point mapPointToAncestor(Container ancestor, int x, int y)
          Maps a point in this component's coordinate system to the specified ancestor's coordinate space.
protected  boolean mouseClick(Mouse.Button button, int x, int y, int count)
           
protected  boolean mouseDown(Mouse.Button button, int x, int y)
           
protected  boolean mouseMove(int x, int y)
           
protected  void mouseOut()
           
protected  void mouseOver()
           
protected  boolean mouseUp(Mouse.Button button, int x, int y)
           
protected  boolean mouseWheel(Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
           
 void paint(java.awt.Graphics2D graphics)
          Paints the component.
 void repaint()
          Flags the entire component as needing to be repainted.
 void repaint(boolean immediate)
          Flags the entire component as needing to be repainted.
 void repaint(Bounds area)
          Flags an area as needing to be repainted.
 void repaint(Bounds area, boolean immediate)
          Flags an area as needing to be repainted or repaints the rectangle immediately.
 void repaint(int x, int y, int width, int height)
          Flags an area as needing to be repainted.
 void repaint(int x, int y, int width, int height, boolean immediate)
          Flags an area as needing to be repainted.
 void requestFocus()
          Requests that focus be given to this component.
protected  void requestFocus(boolean temporary)
          Requests that focus be given to this component.
 void scrollAreaToVisible(Bounds area)
          Ensures that the given area of a component is visible within the viewports of all applicable ancestors.
 void scrollAreaToVisible(int x, int y, int width, int height)
          Ensures that the given area of a component is visible within the viewports of all applicable ancestors.
protected  void setAttributes(Component.Attributes attributes)
          Sets the attributes.
 void setCursor(Cursor cursor)
          Sets the cursor that is displayed when the mouse pointer is over this component.
 void setCursor(java.lang.String cursor)
           
 void setDisplayable(boolean displayable)
          Sets the component's displayability.
 void setDragSource(DragSource dragSource)
           
 void setDropTarget(DropTarget dropTarget)
           
 void setEnabled(boolean enabled)
          Sets the component's enabled state.
protected  void setFocused(boolean focused, boolean temporary)
          Called to notify a component that its focus state has changed.
 void setLocation(int x, int y)
          Sets the component's location.
 void setLocation(Point location)
          Sets the component's location.
protected  void setParent(Container parent)
           
 void setPreferredHeight(int preferredHeight)
          Sets the component's preferred height.
 void setPreferredSize(Dimensions preferredSize)
           
 void setPreferredSize(int preferredWidth, int preferredHeight)
          Sets the component's preferred size.
 void setPreferredWidth(int preferredWidth)
          Sets the component's preferred width.
 void setSize(Dimensions size)
           
 void setSize(int width, int height)
          NOTE This method should only be called during layout.
protected  void setSkin(Skin skin)
          Sets the skin, replacing any previous skin.
 void setStyles(Map<java.lang.String,?> styles)
          Applies a set of styles.
 void setStyles(java.lang.String styles)
          Applies a set of styles encoded as a JSON string.
 void setStyles(java.net.URL styles)
          Applies a set of styles.
 void setTooltipText(java.lang.String tooltipText)
          Sets the component's tooltip text.
 void setUserData(java.lang.Object userData)
           
 void setVisible(boolean visible)
          Sets the component's visibility.
 void store(Dictionary<java.lang.String,?> context)
          Copies bound values from the component to the bind context.
 java.lang.String toString()
           
 void transferFocus(Direction direction)
          Transfers focus to the next focusable component.
 void validate()
          Lays out the component by calling Skin.layout().
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Component

public Component()
Creates a new component.

Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getHandle

public java.lang.Integer getHandle()
Return's the component's handle.


getSkin

protected Skin getSkin()
Returns the currently installed skin.

Returns:
The currently installed skin.

setSkin

protected void setSkin(Skin skin)
Sets the skin, replacing any previous skin.

Parameters:
skin - The new skin.

installSkin

protected void installSkin(java.lang.Class<? extends Component> componentClass)
Installs the skin for the given component class, unless a subclass has defined a more specific skin. Any component that defines a custom skin class must call this method.

Parameters:
componentClass -

getParent

public Container getParent()

setParent

protected void setParent(Container parent)

getWindow

public Window getWindow()

getDisplay

public Display getDisplay()

getWidth

public int getWidth()
Description copied from interface: Visual
Returns the visual's width.

Specified by:
getWidth in interface Visual

getHeight

public int getHeight()
Description copied from interface: Visual
Returns the visual's height.

Specified by:
getHeight in interface Visual

getSize

public Dimensions getSize()

setSize

public final void setSize(Dimensions size)

setSize

public void setSize(int width,
                    int height)
NOTE This method should only be called during layout. Callers should use setPreferredSize(int, int).

Specified by:
setSize in interface ConstrainedVisual
Parameters:
width -
height -

getPreferredWidth

public int getPreferredWidth()

getPreferredWidth

public int getPreferredWidth(int height)
Description copied from interface: ConstrainedVisual
Returns the visual's preferred width given the provided height constraint.

Specified by:
getPreferredWidth in interface ConstrainedVisual
Parameters:
height - The height by which to constrain the preferred width, or -1 for no constraint.

setPreferredWidth

public void setPreferredWidth(int preferredWidth)
Sets the component's preferred width.

Parameters:
preferredWidth - The preferred width value, or -1 to use the default value determined by the skin.

isPreferredWidthSet

public boolean isPreferredWidthSet()
Returns a flag indicating whether the preferred width was explicitly set by the caller or is the default value determined by the skin.

Returns:
true if the preferred width was explicitly set; false, otherwise.

getPreferredHeight

public int getPreferredHeight()

getPreferredHeight

public int getPreferredHeight(int width)
Description copied from interface: ConstrainedVisual
Returns the visual's preferred height given the provided width constraint.

Specified by:
getPreferredHeight in interface ConstrainedVisual
Parameters:
width - The width by which to constrain the preferred height, or -1 for no constraint.

setPreferredHeight

public void setPreferredHeight(int preferredHeight)
Sets the component's preferred height.

Parameters:
preferredHeight - The preferred height value, or -1 to use the default value determined by the skin.

isPreferredHeightSet

public boolean isPreferredHeightSet()
Returns a flag indicating whether the preferred height was explicitly set by the caller or is the default value determined by the skin.

Returns:
true if the preferred height was explicitly set; false, otherwise.

getPreferredSize

public Dimensions getPreferredSize()
Gets the component's unconstrained preferred size.

Specified by:
getPreferredSize in interface ConstrainedVisual

setPreferredSize

public final void setPreferredSize(Dimensions preferredSize)

setPreferredSize

public void setPreferredSize(int preferredWidth,
                             int preferredHeight)
Sets the component's preferred size.

Parameters:
preferredWidth - The preferred width value, or -1 to use the default value determined by the skin.
preferredHeight - The preferred height value, or -1 to use the default value determined by the skin.

isPreferredSizeSet

public boolean isPreferredSizeSet()
Returns a flag indicating whether the preferred size was explicitly set by the caller or is the default value determined by the skin.

Returns:
true if the preferred size was explicitly set; false, otherwise.

getX

public int getX()
Returns the component's x-coordinate.

Returns:
The component's horizontal position relative to the origin of the parent container.

getY

public int getY()
Returns the component's y-coordinate.

Returns:
The component's vertical position relative to the origin of the parent container.

getLocation

public Point getLocation()
Returns the component's location.

Returns:
A point value containing the component's horizontal and vertical position relative to the origin of the parent container.

setLocation

public void setLocation(int x,
                        int y)
Sets the component's location. NOTE This method should only be called when performing layout. However, since some containers do not reposition components during layout, it is valid for callers to invoke this method directly when such containers.

Parameters:
x - The component's horizontal position relative to the origin of the parent container.
y - The component's vertical position relative to the origin of the parent container.

setLocation

public final void setLocation(Point location)
Sets the component's location.

Parameters:
location - A point value containing the component's horizontal and vertical position relative to the origin of the parent container.
See Also:
setLocation(int, int)

getBounds

public Bounds getBounds()
Returns the component's bounding area.

Returns:
The component's bounding area. The x and y values are relative to the parent container.

getDecoratedBounds

public Bounds getDecoratedBounds()
Returns the component's bounding area including decorators.

Returns:
The decorated bounding area. The x and y values are relative to the parent container.

isVisible

public boolean isVisible()
Returns the component's visibility.

Returns:
true if the component will be painted; false, otherwise.

setVisible

public void setVisible(boolean visible)
Sets the component's visibility.

NOTE This method should only be called during layout. Callers should use setDisplayable(boolean).

Parameters:
visible - true if the component should be painted; false, otherwise.

isDisplayable

public boolean isDisplayable()
Returns the component's displayability. NOTE Container skins should generally try to respect this flag when laying out, as follows: However, depending on the nature of the skin, it may ignore this flag and manage its components' visibilities internally.

Returns:
true if the component will participate in layout; false, otherwise.

setDisplayable

public void setDisplayable(boolean displayable)
Sets the component's displayability.

Parameters:
displayable - true if the component will participate in layout; false, otherwise.

getDecorators

public Component.DecoratorSequence getDecorators()
Returns the component's decorator sequence.

Returns:
The component's decorator sequence

mapPointToAncestor

public Point mapPointToAncestor(Container ancestor,
                                int x,
                                int y)
Maps a point in this component's coordinate system to the specified ancestor's coordinate space.

Parameters:
x - The x-coordinate in this component's coordinate space
y - The y-coordinate in this component's coordinate space
Returns:
A point containing the translated coordinates, or null if the component is not a descendant of the specified ancestor.

mapPointFromAncestor

public Point mapPointFromAncestor(Container ancestor,
                                  int x,
                                  int y)
Maps a point in the specified ancestor's coordinate space to this component's coordinate system.

Parameters:
x - The x-coordinate in the ancestors's coordinate space.
y - The y-coordinate in the ancestor's coordinate space.
Returns:
A point containing the translated coordinates, or null if the component is not a descendant of the specified ancestor.

isShowing

public boolean isShowing()
Determines if this component is showing. To be showing, the component and all of its ancestors must be visible, and the component's window must be open.

Returns:
true if this component is showing; false otherwise

getVisibleArea

public Bounds getVisibleArea()
Determines the visible area of a component. The visible area is defined as the intersection of the component's area with the visible area of its ancestors, or, in the case of a Viewport, the viewport bounds.

Returns:
The visible area of the component in display coordinates, or null if the component is either not showing or not part of the component hierarchy.

getVisibleArea

public Bounds getVisibleArea(Bounds area)
Determines the visible area of a component. The visible area is defined as the intersection of the component's area with the visible area of its ancestors, or, in the case of a Viewport, the viewport bounds.

Parameters:
area -
Returns:
The visible area of the component in display coordinates, or null if the component is either not showing or not part of the component hierarchy.

getVisibleArea

public Bounds getVisibleArea(int x,
                             int y,
                             int width,
                             int height)
Determines the visible area of a component. The visible area is defined as the intersection of the component's area with the visible area of its ancestors, or, in the case of a Viewport, the viewport bounds.

Parameters:
x -
y -
width -
height -
Returns:
The visible area of the component in display coordinates, or null if the component is either not showing or not part of the component hierarchy.

scrollAreaToVisible

public void scrollAreaToVisible(Bounds area)
Ensures that the given area of a component is visible within the viewports of all applicable ancestors.

Parameters:
area -

scrollAreaToVisible

public void scrollAreaToVisible(int x,
                                int y,
                                int width,
                                int height)
Ensures that the given area of a component is visible within the viewports of all applicable ancestors.

Parameters:
x -
y -
width -
height -

isValid

public boolean isValid()
Returns the component's valid state.

Returns:
true; non-container components are always valid.

invalidate

public void invalidate()
Notifies the component's parent that it needs to re-layout.


validate

public void validate()
Lays out the component by calling Skin.layout().

This is an effective no-op for non-containers since the skin's implementation of layout() will be a no-op.


repaint

public void repaint()
Flags the entire component as needing to be repainted.


repaint

public void repaint(boolean immediate)
Flags the entire component as needing to be repainted.

Parameters:
immediate -

repaint

public final void repaint(Bounds area)
Flags an area as needing to be repainted.

Parameters:
area -

repaint

public final void repaint(Bounds area,
                          boolean immediate)
Flags an area as needing to be repainted or repaints the rectangle immediately.

Parameters:
area -
immediate -

repaint

public final void repaint(int x,
                          int y,
                          int width,
                          int height)
Flags an area as needing to be repainted.

Parameters:
x -
y -
width -
height -

repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height,
                    boolean immediate)
Flags an area as needing to be repainted.

Parameters:
x -
y -
width -
height -
immediate -

paint

public void paint(java.awt.Graphics2D graphics)
Paints the component. Delegates to the skin.

Specified by:
paint in interface Visual
Parameters:
graphics - The graphics context in which to paint the visual.

isEnabled

public boolean isEnabled()
Returns the component's enabled state.

Returns:
true if the component is enabled; false, otherwise.

setEnabled

public void setEnabled(boolean enabled)
Sets the component's enabled state. Enabled components respond to user input events; disabled components do not.

Parameters:
enabled - true if the component is enabled; false, otherwise.

isBlocked

public boolean isBlocked()
Determines if this component is blocked. A component is blocked if the component or any of its ancestors is disabled.

Returns:
true if the component is blocked; false, otherwise.

isMouseOver

public boolean isMouseOver()
Determines if the mouse is positioned over this component.

Returns:
true if the mouse is currently located over this component; false, otherwise.

getCursor

public Cursor getCursor()
Returns the cursor that is displayed when the mouse pointer is over this component.

Returns:
The cursor that is displayed over the component.

setCursor

public void setCursor(Cursor cursor)
Sets the cursor that is displayed when the mouse pointer is over this component.

Parameters:
cursor - The cursor to display over the component, or null to inherit the cursor of the parent container.

setCursor

public final void setCursor(java.lang.String cursor)

getTooltipText

public java.lang.String getTooltipText()
Returns the component's tooltip text.

Returns:
The component's tooltip text, or null if no tooltip is specified.

setTooltipText

public void setTooltipText(java.lang.String tooltipText)
Sets the component's tooltip text.

Parameters:
tooltipText - The component's tooltip text, or null for no tooltip.

isFocusable

public boolean isFocusable()
Returns this component's focusability. A focusable component is capable of receiving the focus.

Returns:
true if the component is enabled and visible.

isFocused

public boolean isFocused()
Returns the component's focused state.

Returns:
true if the component has the input focus; false; otherwise.

setFocused

protected void setFocused(boolean focused,
                          boolean temporary)
Called to notify a component that its focus state has changed.

Parameters:
focused - true if the component has received the input focus; false if the component has lost the focus.
temporary - true if this focus change is temporary; false, otherwise.

requestFocus

public void requestFocus()
Requests that focus be given to this component.


requestFocus

protected void requestFocus(boolean temporary)
Requests that focus be given to this component.

Parameters:
temporary - If true, indicates that focus is being restored from a temporary loss.

transferFocus

public void transferFocus(Direction direction)
Transfers focus to the next focusable component.

Parameters:
direction - The direction in which to transfer focus.

getFocusedComponent

public static Component getFocusedComponent()
Returns the currently focused component.

Returns:
The component that currently has the focus, or null if no component is focused.

clearFocus

public static void clearFocus()
Clears the focus.


getComponents

public static Component.ComponentDictionary getComponents()
Returns the component dictionary.


clearFocus

protected static void clearFocus(boolean temporary)
Clears the focus.

Parameters:
temporary - If true, the focus is being cleared temporarily.

load

public void load(Dictionary<java.lang.String,?> context)
Copies bound values from the bind context to the component. This functionality must be provided by the subclass; the base implementation is a no-op.

Parameters:
context -

store

public void store(Dictionary<java.lang.String,?> context)
Copies bound values from the component to the bind context. This functionality must be provided by the subclass; the base implementation is a no-op.

Parameters:
context -

getDragSource

public DragSource getDragSource()

setDragSource

public void setDragSource(DragSource dragSource)

getDropTarget

public DropTarget getDropTarget()

setDropTarget

public void setDropTarget(DropTarget dropTarget)

getUserData

public java.lang.Object getUserData()

setUserData

public void setUserData(java.lang.Object userData)

getStyles

public Component.StyleDictionary getStyles()
Returns a dictionary instance representing the component's style properties. This is effectively a pass-through to the skin's dictionary implementation. It allows callers to modify the properties of the skin without directly obtaining a reference to the skin.


setStyles

public void setStyles(Map<java.lang.String,?> styles)
Applies a set of styles.

Parameters:
styles -

setStyles

public void setStyles(java.net.URL styles)
               throws java.io.IOException,
                      SerializationException
Applies a set of styles.

Parameters:
styles - The location of the styles to apply. If the styles have been previously applied, they will be retrieved from the resource cache in the application context. Otherwise, they will be loaded from the given location and added to the cache before being applied.
Throws:
java.io.IOException
SerializationException

setStyles

public void setStyles(java.lang.String styles)
Applies a set of styles encoded as a JSON string.

Parameters:
styles -

getAttributes

public Component.Attributes getAttributes()
Returns the currently installed attributes.

Returns:
This component's attributes

setAttributes

protected void setAttributes(Component.Attributes attributes)
Sets the attributes.

Parameters:
attributes -

mouseMove

protected boolean mouseMove(int x,
                            int y)

mouseOver

protected void mouseOver()

mouseOut

protected void mouseOut()

mouseDown

protected boolean mouseDown(Mouse.Button button,
                            int x,
                            int y)

mouseUp

protected boolean mouseUp(Mouse.Button button,
                          int x,
                          int y)

mouseClick

protected boolean mouseClick(Mouse.Button button,
                             int x,
                             int y,
                             int count)

mouseWheel

protected boolean mouseWheel(Mouse.ScrollType scrollType,
                             int scrollAmount,
                             int wheelRotation,
                             int x,
                             int y)

keyTyped

protected boolean keyTyped(char character)

keyPressed

protected boolean keyPressed(int keyCode,
                             Keyboard.KeyLocation keyLocation)

keyReleased

protected boolean keyReleased(int keyCode,
                              Keyboard.KeyLocation keyLocation)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getComponentListeners

public ListenerList<ComponentListener> getComponentListeners()

getComponentLayoutListeners

public ListenerList<ComponentLayoutListener> getComponentLayoutListeners()

getComponentStateListeners

public ListenerList<ComponentStateListener> getComponentStateListeners()

getComponentDecoratorListeners

public ListenerList<ComponentDecoratorListener> getComponentDecoratorListeners()

getComponentMouseListeners

public ListenerList<ComponentMouseListener> getComponentMouseListeners()

getComponentMouseButtonListeners

public ListenerList<ComponentMouseButtonListener> getComponentMouseButtonListeners()

getComponentMouseWheelListeners

public ListenerList<ComponentMouseWheelListener> getComponentMouseWheelListeners()

getComponentKeyListeners

public ListenerList<ComponentKeyListener> getComponentKeyListeners()

getComponentDragDropListeners

public ListenerList<ComponentDragDropListener> getComponentDragDropListeners()

getComponentDataListeners

public ListenerList<ComponentDataListener> getComponentDataListeners()

getComponentClassListeners

public static ListenerList<ComponentClassListener> getComponentClassListeners()