BrightSide Workbench Full Report + Source Code
org.turro.newsletter.ExternalComposer Class Reference
Inheritance diagram for org.turro.newsletter.ExternalComposer:
Collaboration diagram for org.turro.newsletter.ExternalComposer:

Public Member Functions

void onMacro ()
 
void onSelectBanner ()
 
void onDeleteBanner ()
 
void doAfterCompose (Component comp) throws Exception
 
- Public Member Functions inherited from org.turro.composer.EntityPathComposer< E >
void doBeforeComposeChildren (Component comp) throws Exception
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.composer.EntityPathComposer< E >
String entityPath
 
entity
 

Detailed Description

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

Definition at line 40 of file ExternalComposer.java.

Member Function Documentation

◆ doAfterCompose()

void org.turro.newsletter.ExternalComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 77 of file ExternalComposer.java.

77  {
78  super.doAfterCompose(comp);
79  macro.setValue(entity.getBody());
80  }

◆ onDeleteBanner()

void org.turro.newsletter.ExternalComposer.onDeleteBanner ( )

Definition at line 71 of file ExternalComposer.java.

71  {
72  entity.setBanner(null);
73  Events.postEvent(new Event(Events.ON_CHANGE));
74  }

◆ onMacro()

void org.turro.newsletter.ExternalComposer.onMacro ( )

Definition at line 46 of file ExternalComposer.java.

46  {
47  entity.setWiki("$no_wiki\n" + macro.getValue());
48  entity.setBody(macro.getValue());
49  Events.postEvent(new Event(Events.ON_CHANGE));
50  }

◆ onSelectBanner()

void org.turro.newsletter.ExternalComposer.onSelectBanner ( )

Definition at line 53 of file ExternalComposer.java.

53  {
54  BannerComposer banner = new BannerComposer(entity.getBanner(), PublicationPU.getObjectPath(entity.getNewsletter()));
55  SelectionDialog.showComponent(getPage(), I_.get("Banner"), banner, "90%", "60%", new Command() {
56  @Override
57  public Object execute(Context context) {
58  String result = banner.getResult();
59  if(!Strings.isBlank(result)) {
60  entity.setBanner(result);
61  } else {
62  entity.setBanner(null);
63  }
64  Events.postEvent(new Event(Events.ON_CHANGE));
65  return null;
66  }
67  });
68  }
Here is the call graph for this function:

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