1 14 package org.wings; 15 16 import org.wings.plaf.MenuBarCG; 17 18 23 public class SMenuItem extends SButton { 24 protected SComponent menuParent; 25 26 public SMenuItem() { 27 } 28 29 public SMenuItem(String text) { 30 super(text); 31 } 32 33 public SMenuItem(SIcon icon) { 34 super(icon); 35 } 36 37 public SMenuItem(String text, SIcon icon) { 38 super(text, icon); 39 } 40 41 final void setParentMenu(SComponent menuParent) { 42 this.menuParent = menuParent; 43 setParentFrame(menuParent != null ? menuParent.getParentFrame() : null); 44 } 45 46 public SComponent getParentMenu() { 47 return this.menuParent; 48 } 49 50 public void setCG(MenuBarCG cg) { 51 super.setCG(cg); 52 } 53 } 54 55 56 | Popular Tags |