Skip to content

Commit

Permalink
changed the description to interpret HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
osavencu committed Mar 2, 2017
1 parent 3e3041d commit 487d39c
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class GeneralEntityDetailsPanel extends JPanel {
private JXPanel entityDetailsPanel;
private JXTextArea descriptionDetails;
private JTextPane descriptionDetails;
private boolean hasAttachment = false;
private HeaderPanel headerPanel;
private CommentsConversationPanel commentsListPanel;
Expand Down Expand Up @@ -88,9 +88,8 @@ public GeneralEntityDetailsPanel(EntityModel entityModel) {
gbc_lblDescription.gridy = 0;
descriptionPanel.add(lblDescription, gbc_lblDescription);

descriptionDetails = new JXTextArea();
descriptionDetails.setLineWrap(true);
descriptionDetails.setWrapStyleWord(true);
descriptionDetails = new JTextPane();
descriptionDetails.setContentType("text/html");
descriptionDetails.setEditable(false);
descriptionDetails.setOpaque(false);
descriptionDetails.setEditable(false);
Expand Down Expand Up @@ -158,7 +157,7 @@ public GeneralEntityDetailsPanel(EntityModel entityModel) {

private void drawGeneralDetailsForEntity(EntityModel entityModel) {
headerPanel.setPhaseDetails(getUiDataFromModel(entityModel.getValue(DetailsViewDefaultFields.FIELD_PHASE)));
this.descriptionDetails.setText(stripHtml(getUiDataFromModel(entityModel.getValue(DetailsViewDefaultFields.FIELD_DESCRIPTION))));
this.descriptionDetails.setText(getUiDataFromModel(entityModel.getValue(DetailsViewDefaultFields.FIELD_DESCRIPTION)));
}

public void setEntityNameClickHandler(Runnable runnable) {
Expand Down

0 comments on commit 487d39c

Please sign in to comment.