com.metamatrix.console.ui.util
Class SelectAllOrNonePopupController

java.lang.Object
  extended by com.metamatrix.console.ui.util.SelectAllOrNonePopupController

public class SelectAllOrNonePopupController
extends java.lang.Object

Class which will add a mouse listener to each of an array of Components. The mouse listener will put up a pop-up menu. The menu will by default have Actions labeled "Select All" and "Select None", as well as "Cancel". Upon "Select All" or "Select None" being selected, a method supplied by the caller is invoked.


Field Summary
static java.lang.String DEFAULT_ALL_TEXT
           
static java.lang.String DEFAULT_NONE_TEXT
           
 
Constructor Summary
SelectAllOrNonePopupController(SelectAllOrNoneMessageReceiver rcvr, java.awt.Component[] comp)
           
SelectAllOrNonePopupController(SelectAllOrNoneMessageReceiver rcvr, java.awt.Component[] comp, java.lang.String allText, java.lang.String noneText)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ALL_TEXT

public static final java.lang.String DEFAULT_ALL_TEXT
See Also:
Constant Field Values

DEFAULT_NONE_TEXT

public static final java.lang.String DEFAULT_NONE_TEXT
See Also:
Constant Field Values
Constructor Detail

SelectAllOrNonePopupController

public SelectAllOrNonePopupController(SelectAllOrNoneMessageReceiver rcvr,
                                      java.awt.Component[] comp,
                                      java.lang.String allText,
                                      java.lang.String noneText)

SelectAllOrNonePopupController

public SelectAllOrNonePopupController(SelectAllOrNoneMessageReceiver rcvr,
                                      java.awt.Component[] comp)


Copyright © 2009. All Rights Reserved.