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

Public Member Functions

final void onChange (Event event)
 
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 44 of file TextComposer.java.

Member Function Documentation

◆ doAfterCompose()

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

Definition at line 79 of file TextComposer.java.

79  {
80  super.doAfterCompose(comp);
81  initWiki();
82  }

◆ onChange()

final void org.turro.newsletter.TextComposer.onChange ( Event  event)

Definition at line 50 of file TextComposer.java.

50  {
51  Events.postEvent(new Event(Events.ON_CHANGE));
52  }

◆ onDeleteBanner()

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

Definition at line 73 of file TextComposer.java.

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

◆ onSelectBanner()

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

Definition at line 55 of file TextComposer.java.

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

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