Package com.illumon.iris.gui.util
Enum GlobalOneClickManager
- All Implemented Interfaces:
Serializable,Comparable<GlobalOneClickManager>,java.lang.constant.Constable
public enum GlobalOneClickManager extends Enum<GlobalOneClickManager>
This manager is used to issue and listen for global OneClick events
that are not dependent on the GUI layout
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGlobalOneClickManager.GlobalOneClickListener -
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT -
Method Summary
Modifier and Type Method Description voidaddListener(GlobalOneClickManager.GlobalOneClickListener listener)Add aGlobalOneClickListenerfor global OneClick events on any columnvoidaddListener(String column, GlobalOneClickManager.GlobalOneClickListener listener)Add aGlobalOneClickListenerfor OneClicks on a specific columnvoiddoGlobalOneClick(String column, String value)Issue a OneClick event on the specified columne and value.voidremoveListener(GlobalOneClickManager.GlobalOneClickListener listener)Remove a listener from global OneClick event notificationvoidremoveListener(String column, GlobalOneClickManager.GlobalOneClickListener listener)Remove a listener from notification of OneClicks on a particular column.static GlobalOneClickManagervalueOf(String name)Returns the enum constant of this type with the specified name.static GlobalOneClickManager[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
addListener
Add aGlobalOneClickListenerfor global OneClick events on any column- Parameters:
listener- AGlobalOneClickListenerto notify of OneClick events
-
addListener
Add aGlobalOneClickListenerfor OneClicks on a specific column- Parameters:
column- The column to listen for OneClickslistener- The listener to notify
-
removeListener
Remove a listener from global OneClick event notification- Parameters:
listener- The listener to remove
-
removeListener
Remove a listener from notification of OneClicks on a particular column. This only affects listeners registered with the column oriented addListener- Parameters:
column- The column the listener was listening forlistener- The listener to remove
-
doGlobalOneClick
Issue a OneClick event on the specified columne and value. This will notify all global OneClick listeners- Parameters:
column- The column to issue a OneClick forvalue- The value to OneClick with
-