org.exoplatform.gwtframework.ui.client.command.ui
Class MenuItemControl

java.lang.Object
  extended by org.exoplatform.gwtframework.ui.client.command.ui.MenuItemControl
All Implemented Interfaces:
com.google.gwt.core.client.Scheduler.ScheduledCommand, com.google.gwt.user.client.Command, ControlStateListener, SimpleControlStateListener

public class MenuItemControl
extends java.lang.Object
implements com.google.gwt.user.client.Command, SimpleControlStateListener

Created by The eXo Platform SAS .

Version:
$
Author:
Vitaliy Gulyy

Constructor Summary
MenuItemControl(com.google.gwt.event.shared.HandlerManager eventBus, MenuItem menuItem, SimpleControl command)
           
 
Method Summary
 void execute()
           
 void updateControlEnabling(boolean enabled)
           
 void updateControlHotKey(java.lang.String hotKey)
           
 void updateControlIcon(java.lang.String icon)
           
 void updateControlPrompt(java.lang.String prompt)
           
 void updateControlSelectionState(boolean selected)
           
 void updateControlTitle(java.lang.String title)
           
 void updateControlVisibility(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuItemControl

public MenuItemControl(com.google.gwt.event.shared.HandlerManager eventBus,
                       MenuItem menuItem,
                       SimpleControl command)
Method Detail

updateControlEnabling

public void updateControlEnabling(boolean enabled)
Specified by:
updateControlEnabling in interface ControlStateListener

updateControlVisibility

public void updateControlVisibility(boolean visible)
Specified by:
updateControlVisibility in interface ControlStateListener

updateControlPrompt

public void updateControlPrompt(java.lang.String prompt)
Specified by:
updateControlPrompt in interface ControlStateListener

updateControlIcon

public void updateControlIcon(java.lang.String icon)
Specified by:
updateControlIcon in interface ControlStateListener

execute

public void execute()
Specified by:
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommand
Specified by:
execute in interface com.google.gwt.user.client.Command

updateControlTitle

public void updateControlTitle(java.lang.String title)
Specified by:
updateControlTitle in interface SimpleControlStateListener

updateControlSelectionState

public void updateControlSelectionState(boolean selected)
Specified by:
updateControlSelectionState in interface SimpleControlStateListener

updateControlHotKey

public void updateControlHotKey(java.lang.String hotKey)
Specified by:
updateControlHotKey in interface SimpleControlStateListener


Copyright © 2012 eXo Platform SAS. All Rights Reserved.