BrightSide Workbench Full Report + Source Code
org.turro.financials.command.DocumentLabel Class Reference
Inheritance diagram for org.turro.financials.command.DocumentLabel:
Collaboration diagram for org.turro.financials.command.DocumentLabel:

Public Member Functions

 DocumentLabel (Object entity, boolean linkEntity)
 
 DocumentLabel (Object entity)
 
 DocumentLabel ()
 
void generate ()
 
- Public Member Functions inherited from org.turro.command.LabelControl
 LabelControl ()
 
 LabelControl (Object entity)
 
 LabelControl (Object entity, boolean linkEntity)
 
Object getEntity ()
 
void setEntity (Object entity)
 
boolean isLinkEntity ()
 
void setLinkEntity (boolean linkEntity)
 
int getMaxChars ()
 
void setMaxChars (int maxChars)
 
void afterCompose ()
 
void setContext (Popup popup)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.command.LabelControl
Object entity
 

Detailed Description

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

Definition at line 30 of file DocumentLabel.java.

Constructor & Destructor Documentation

◆ DocumentLabel() [1/3]

org.turro.financials.command.DocumentLabel.DocumentLabel ( Object  entity,
boolean  linkEntity 
)

Definition at line 32 of file DocumentLabel.java.

32  {
33  super(entity, linkEntity);
34  }

◆ DocumentLabel() [2/3]

org.turro.financials.command.DocumentLabel.DocumentLabel ( Object  entity)

Definition at line 36 of file DocumentLabel.java.

36  {
37  super(entity);
38  }

◆ DocumentLabel() [3/3]

org.turro.financials.command.DocumentLabel.DocumentLabel ( )

Definition at line 40 of file DocumentLabel.java.

40  {
41  }

Member Function Documentation

◆ generate()

void org.turro.financials.command.DocumentLabel.generate ( )

Reimplemented from org.turro.command.LabelControl.

Definition at line 44 of file DocumentLabel.java.

44  {
45  Framework framework = Framework.getCurrent();
46  if(framework != null) {
47  DocumentActionMenu dam = (DocumentActionMenu) framework.getAttribute("docCtxMenu");
48  if(dam == null) {
49  dam = new DocumentActionMenu();
50  framework.setAttribute("docCtxMenu", dam);
51  framework.getChildren().add(dam);
52  }
53  setContext(dam);
54  }
55  if(entity instanceof BatchOf) {
56  setAttribute("document", ((BatchOf) getEntity()).getBatch());
57  } else {
58  setAttribute("document", getEntity());
59  }
60  super.generate();
61  }
Here is the call graph for this function:

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