BrightSide Workbench Full Report + Source Code
org.turro.zkoss.menu.ElephantMenu Class Referenceabstract
Inheritance diagram for org.turro.zkoss.menu.ElephantMenu:
Collaboration diagram for org.turro.zkoss.menu.ElephantMenu:

Public Member Functions

abstract void addMenus (ElephantMenuBar bar)
 
void addToSessionMenu (ElephantMenuBar bar, Menupopup mp)
 
void addToToolsMenu (ElephantMenuBar bar, Menupopup mp)
 
int compareTo (ElephantMenu o)
 

Static Public Member Functions

static void showEntity (Object id, String attribute, String label, String source)
 
static void showEntity (Object id, String attribute, String label, String source, Map< String, Object > dynProps)
 
static void showZulFile (String label, String source)
 
static void showZulFile (String label, String source, Map< String, Object > dynProps)
 
static void showModalZulFile (String label, String source, Command command)
 
static void showModalZulFile (String label, String source, Map args, Command command)
 
static void showPopupZulFile (String label, String source)
 
static void showPopupZulFile (String label, String source, Map args)
 
static void showEntityModal (Object id, String attribute, String source, Command command)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file zkoss/menu/ElephantMenu.java.

Member Function Documentation

◆ addMenus()

abstract void org.turro.zkoss.menu.ElephantMenu.addMenus ( ElephantMenuBar  bar)
abstract

Reimplemented in org.turro.erp.menu.ErpMenu.

◆ addToSessionMenu()

void org.turro.zkoss.menu.ElephantMenu.addToSessionMenu ( ElephantMenuBar  bar,
Menupopup  mp 
)

Definition at line 37 of file zkoss/menu/ElephantMenu.java.

37 {}

◆ addToToolsMenu()

void org.turro.zkoss.menu.ElephantMenu.addToToolsMenu ( ElephantMenuBar  bar,
Menupopup  mp 
)

Definition at line 38 of file zkoss/menu/ElephantMenu.java.

38 {}

◆ compareTo()

int org.turro.zkoss.menu.ElephantMenu.compareTo ( ElephantMenu  o)

Definition at line 41 of file zkoss/menu/ElephantMenu.java.

41  {
42  int result = CompareUtil.compare(getClass().getName(), o.getClass().getName());
43  return result;
44  }

◆ showEntity() [1/2]

static void org.turro.zkoss.menu.ElephantMenu.showEntity ( Object  id,
String  attribute,
String  label,
String  source 
)
static

Definition at line 46 of file zkoss/menu/ElephantMenu.java.

46  {
47  showEntity(id, attribute, label, source, null);
48  }
static void showEntity(Object id, String attribute, String label, String source)
Here is the caller graph for this function:

◆ showEntity() [2/2]

static void org.turro.zkoss.menu.ElephantMenu.showEntity ( Object  id,
String  attribute,
String  label,
String  source,
Map< String, Object >  dynProps 
)
static

Definition at line 50 of file zkoss/menu/ElephantMenu.java.

50  {
51  Framework frame = Framework.getCurrent();
52  if((id instanceof Long && ((Long)id) < 1) || id == null) {
53  frame.getDesktop().removeAttribute(attribute);
54  } else {
55  frame.getDesktop().setAttribute(attribute, id);
56  }
57  if(label.startsWith("@")) {
58  frame.addContent(label.substring(1), source, dynProps);
59  } else {
60  frame.addContent(I_.get(label) + " #" + (id == null ? "0" : id.toString()), source, dynProps);
61  }
62  frame.invalidateSelected();
63  }
Here is the call graph for this function:

◆ showEntityModal()

static void org.turro.zkoss.menu.ElephantMenu.showEntityModal ( Object  id,
String  attribute,
String  source,
Command  command 
)
static

Definition at line 104 of file zkoss/menu/ElephantMenu.java.

104  {
105  Framework frame = Framework.getCurrent();
106  if((id instanceof Long && ((Long)id) < 1) || id == null) {
107  frame.getDesktop().removeAttribute(attribute);
108  } else {
109  frame.getDesktop().setAttribute(attribute, id);
110  }
111  Modal.doModal(source, command);
112  }
Here is the call graph for this function:

◆ showModalZulFile() [1/2]

static void org.turro.zkoss.menu.ElephantMenu.showModalZulFile ( String  label,
String  source,
Command  command 
)
static

Definition at line 78 of file zkoss/menu/ElephantMenu.java.

78  {
79  showModalZulFile(label, source, null, null);
80  }
static void showModalZulFile(String label, String source, Command command)
Here is the caller graph for this function:

◆ showModalZulFile() [2/2]

static void org.turro.zkoss.menu.ElephantMenu.showModalZulFile ( String  label,
String  source,
Map  args,
Command  command 
)
static

Definition at line 82 of file zkoss/menu/ElephantMenu.java.

82  {
83  Framework frame = Framework.getCurrent();
84  if(label.startsWith("@")) {
85  frame.showModal(label.substring(1), source, args, command);
86  } else {
87  frame.showModal(I_.get(label), source, args, command);
88  }
89  }
Here is the call graph for this function:

◆ showPopupZulFile() [1/2]

static void org.turro.zkoss.menu.ElephantMenu.showPopupZulFile ( String  label,
String  source 
)
static

Definition at line 91 of file zkoss/menu/ElephantMenu.java.

91  {
92  showPopupZulFile(label, source, null);
93  }
static void showPopupZulFile(String label, String source)
Here is the caller graph for this function:

◆ showPopupZulFile() [2/2]

static void org.turro.zkoss.menu.ElephantMenu.showPopupZulFile ( String  label,
String  source,
Map  args 
)
static

Definition at line 95 of file zkoss/menu/ElephantMenu.java.

95  {
96  Framework frame = Framework.getCurrent();
97  if(label.startsWith("@")) {
98  frame.showPopup(label.substring(1), source, args);
99  } else {
100  frame.showPopup(I_.get(label), source, args);
101  }
102  }
Here is the call graph for this function:

◆ showZulFile() [1/2]

static void org.turro.zkoss.menu.ElephantMenu.showZulFile ( String  label,
String  source 
)
static

Definition at line 65 of file zkoss/menu/ElephantMenu.java.

65  {
66  showZulFile(label, source, null);
67  }
static void showZulFile(String label, String source)

◆ showZulFile() [2/2]

static void org.turro.zkoss.menu.ElephantMenu.showZulFile ( String  label,
String  source,
Map< String, Object >  dynProps 
)
static

Definition at line 69 of file zkoss/menu/ElephantMenu.java.

69  {
70  Framework frame = Framework.getCurrent();
71  if(label.startsWith("@")) {
72  frame.addContent(label.substring(1), source, dynProps);
73  } else {
74  frame.addContent(I_.get(label), source, dynProps);
75  }
76  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: