* id of the item that was clicked
*/
public void onMenuClick(int clickedItemId) {
- System.out.println("onMenuClick");
// Updating the state to the server can not be done before
// the server connection is known, i.e., before updateFromUIDL()
// has been called.
*/
public void itemClick(CustomMenuItem item) {
if (item.getCommand() != null) {
- System.out.println("itemClick, running command");
setSelected(null);
if (visibleChildMenu != null) {
* @param item
*/
public void itemOver(CustomMenuItem item) {
- System.out.println("ItemOver " + item.getText());
setSelected(item);
boolean menuWasVisible = visibleChildMenu != null;
* @param item
*/
public void itemOut(CustomMenuItem item) {
- System.out.println("ItemOut " + item.getText());
if (visibleChildMenu != item.getSubMenu() || visibleChildMenu == null) {
hideChildMenu(item);
setSelected(null);
* @param item
*/
public void setSelected(CustomMenuItem item) {
- if (item != null) {
- System.out.println("setSelected " + item.getText());
- } else {
- System.out.println("setSelected was null");
- }
// If we had something selected, unselect
if (item != selected && selected != null) {
selected.setSelected(false);
* Listener method, fired when this menu is closed
*/
public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
- System.out.println("onPopupClosed, auto: " + autoClosed);
hideChildren();
if (autoClosed) {
hideParents();