to.etc.domui.component.menu
Interface IUIAction<T>


public interface IUIAction<T>


Method Summary
 void execute(T instance)
           
 java.lang.String getDisableReason(T instance)
          If this menu item is disabled, return a reason why it is.
 java.lang.String getIcon(T instance)
           
 java.lang.String getName(T instance)
           
 

Method Detail

getDisableReason

@Nullable
java.lang.String getDisableReason(T instance)
                                  throws java.lang.Exception
If this menu item is disabled, return a reason why it is. This will be shown as a hint when the entry is shown as disabled. If the item is not disabled return null.

Parameters:
instance -
Returns:
Throws:
java.lang.Exception

getName

@Nonnull
java.lang.String getName(T instance)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getIcon

@Nullable
java.lang.String getIcon(T instance)
                         throws java.lang.Exception
Throws:
java.lang.Exception

execute

void execute(T instance)
             throws java.lang.Exception
Throws:
java.lang.Exception