de.uni_paderborn.fujaba.fsa.listener
Class SelectionListenerHelper

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.listener.SelectionListenerHelper

public abstract class SelectionListenerHelper
extends java.lang.Object

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.13 $
Author:
$Author: schneider $

Nested Class Summary
private static class SelectionListenerHelper.SelectionStateListener
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private static java.lang.Integer FOCUSED
          No comment provided by developer, please add a comment to improve documentation.
private static java.lang.Integer FOCUSED_SELECTED
          No comment provided by developer, please add a comment to improve documentation.
private static java.lang.String LISTENER_CLIENT_PROPERTY
          No comment provided by developer, please add a comment to improve documentation.
private static java.lang.Integer SELECTED
          No comment provided by developer, please add a comment to improve documentation.
private static java.beans.PropertyChangeListener selectionStateListener
          No comment provided by developer, please add a comment to improve documentation.
(package private) static java.lang.String STATE_CLIENT_PROPERTY
          No comment provided by developer, please add a comment to improve documentation.
private static java.lang.Integer UNSELECTED
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
SelectionListenerHelper()
           
 
Method Summary
static void addSelectionListener(javax.swing.JComponent comp, SelectionListener listener)
          Access method for an one to n association.
protected static void fireSelectionChanged(javax.swing.JComponent source, java.lang.Integer old, java.lang.Integer selection)
          No comment provided by developer, please add a comment to improve documentation.
protected static void fireSelectionChanged(SelectionEvent event)
          No comment provided by developer, please add a comment to improve documentation.
static int getSelection(javax.swing.JComponent comp)
          Get the selection attribute of the SelectionListenerHelper class
protected static java.beans.PropertyChangeListener getSelectionStateListener()
          Get the selectionStateListener attribute of the SelectionListenerHelper class
static boolean isFocused(javax.swing.JComponent comp)
          Get the focused attribute of the SelectionListenerHelper class
static boolean isSelected(javax.swing.JComponent comp)
          Get the selected attribute of the SelectionListenerHelper class
static java.util.Iterator iteratorOfSelectionListeners(javax.swing.JComponent comp)
          No comment provided by developer, please add a comment to improve documentation.
static boolean removeSelectionListener(javax.swing.JComponent comp, SelectionListener listener)
          No comment provided by developer, please add a comment to improve documentation.
static void setFocused(javax.swing.JComponent comp, boolean flag)
          Sets the focused attribute of the SelectionListenerHelper class
static void setSelected(javax.swing.JComponent comp, boolean flag)
          Sets the selected attribute of the SelectionListenerHelper class
static void setSelection(javax.swing.JComponent comp, int selection)
          Sets the selection attribute of the SelectionListenerHelper class
protected static void setSelection(javax.swing.JComponent comp, java.lang.Integer selection)
          Sets the selection attribute of the SelectionListenerHelper class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSELECTED

private static final transient java.lang.Integer UNSELECTED
No comment provided by developer, please add a comment to improve documentation.


SELECTED

private static final transient java.lang.Integer SELECTED
No comment provided by developer, please add a comment to improve documentation.


FOCUSED

private static final transient java.lang.Integer FOCUSED
No comment provided by developer, please add a comment to improve documentation.


FOCUSED_SELECTED

private static final transient java.lang.Integer FOCUSED_SELECTED
No comment provided by developer, please add a comment to improve documentation.


LISTENER_CLIENT_PROPERTY

private static final transient java.lang.String LISTENER_CLIENT_PROPERTY
No comment provided by developer, please add a comment to improve documentation.


STATE_CLIENT_PROPERTY

static final transient java.lang.String STATE_CLIENT_PROPERTY
No comment provided by developer, please add a comment to improve documentation.


selectionStateListener

private static transient java.beans.PropertyChangeListener selectionStateListener
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

SelectionListenerHelper

public SelectionListenerHelper()
Method Detail

addSelectionListener

public static void addSelectionListener(javax.swing.JComponent comp,
                                        SelectionListener listener)
Access method for an one to n association.

Parameters:
comp - The object added.
listener - The object added.

removeSelectionListener

public static boolean removeSelectionListener(javax.swing.JComponent comp,
                                              SelectionListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comp - No description provided
listener - No description provided
Returns:
No description provided

iteratorOfSelectionListeners

public static java.util.Iterator iteratorOfSelectionListeners(javax.swing.JComponent comp)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comp - No description provided
Returns:
No description provided

getSelection

public static int getSelection(javax.swing.JComponent comp)
Get the selection attribute of the SelectionListenerHelper class

Parameters:
comp - No description provided
Returns:
The selection value

setSelection

public static void setSelection(javax.swing.JComponent comp,
                                int selection)
Sets the selection attribute of the SelectionListenerHelper class

Parameters:
comp - The new selection value
selection - The new selection value

setSelection

protected static void setSelection(javax.swing.JComponent comp,
                                   java.lang.Integer selection)
Sets the selection attribute of the SelectionListenerHelper class

Parameters:
comp - The new selection value
selection - The new selection value

isSelected

public static boolean isSelected(javax.swing.JComponent comp)
Get the selected attribute of the SelectionListenerHelper class

Parameters:
comp - No description provided
Returns:
The selected value

setSelected

public static void setSelected(javax.swing.JComponent comp,
                               boolean flag)
Sets the selected attribute of the SelectionListenerHelper class

Parameters:
comp - The new selected value
flag - The new selected value

isFocused

public static boolean isFocused(javax.swing.JComponent comp)
Get the focused attribute of the SelectionListenerHelper class

Parameters:
comp - No description provided
Returns:
The focused value

setFocused

public static void setFocused(javax.swing.JComponent comp,
                              boolean flag)
Sets the focused attribute of the SelectionListenerHelper class

Parameters:
comp - The new focused value
flag - The new focused value

fireSelectionChanged

protected static void fireSelectionChanged(SelectionEvent event)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
event - No description provided

fireSelectionChanged

protected static void fireSelectionChanged(javax.swing.JComponent source,
                                           java.lang.Integer old,
                                           java.lang.Integer selection)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
source - No description provided
old - No description provided
selection - No description provided

getSelectionStateListener

protected static java.beans.PropertyChangeListener getSelectionStateListener()
Get the selectionStateListener attribute of the SelectionListenerHelper class

Returns:
The selectionStateListener value