Skip to content

Commit

Permalink
Add 'clearAll' method in SamlPanelInfo to clear all labels before dis…
Browse files Browse the repository at this point in the history
…playing new values.

Fixes #32
  • Loading branch information
cnotin committed Dec 12, 2018
1 parent a41ae3d commit 336923f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/main/java/application/SamlTabController.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ public void setMessage(byte[] content, boolean isRequest) {

private void setInformationDisplay() {
SamlPanelInfo infoPanel = samlGUI.getInfoPanel();
infoPanel.clearAll();

try {
Document document = xmlHelpers.getXMLDocumentOfSAMLMessage(SAMLMessage);
Expand Down
19 changes: 13 additions & 6 deletions src/main/java/gui/SamlPanelInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ private void initialize() {
gbc_lblEncryption.gridy = 11;
add(lblEncryption, gbc_lblEncryption);
}

public void setAssertionTitle(String string){
lblAssertionTitle.setText(string);
}


public void setIssuer(String string){
lblIssuer.setText(string);
}
Expand Down Expand Up @@ -254,5 +250,16 @@ public void setDigestAlgorithm(String string){
public void setEncryptionAlgorithm(String string){
lblEncryption.setText(string);
}


public void clearAll(){
setIssuer("");
setSubject("");
setConditionNotBefore("");
setConditionNotAfter("");
setSubjectConfNotBefore("");
setSubjectConfNotAfter("");
setSignatureAlgorithm("");
setDigestAlgorithm("");
setEncryptionAlgorithm("");
}
}

0 comments on commit 336923f

Please sign in to comment.