use of com.xenoage.zong.core.info.Rights in project Zong by Xenoage.
the class ScoreInfoReader method readRights.
private void readRights() {
MxlIdentification mxlIdentification = mxlHeader.getIdentification();
if (mxlIdentification != null) {
for (MxlTypedText mxlRights : it(mxlIdentification.getRights())) {
Rights rights = new Rights(mxlRights.getValue(), mxlRights.getType());
scoreInfo.getRights().add(rights);
}
}
}
use of com.xenoage.zong.core.info.Rights in project Zong by Xenoage.
the class InfoDialog method setScore.
public void setScore(Score score) {
ScoreInfo info = score.getInfo();
lblTitle.setText(info.getTitle());
txtWorkNumber.setText(info.getWorkNumber());
txtWorkTitle.setText(info.getWorkTitle());
txtMovementNumber.setText(info.getMovementNumber());
txtMovementTitle.setText(info.getMovementTitle());
// creators
String s = "-";
if (info.getCreators().size() > 0) {
s = "";
for (Creator creator : info.getCreators()) s += (creator.getType() != null ? creator.getType() + ": " : "") + creator.getName() + "\n";
}
txtCreators.setText(s);
// rights
s = "-";
if (info.getRights().size() > 0) {
s = "";
for (Rights rights : info.getRights()) s += (rights.getType() != null ? rights.getType() + ": " : "") + rights.getText() + "\n";
}
txtRights.setText(s);
// parts
s = "-";
if (score.getStavesList().getParts().size() > 0) {
s = "";
for (int i : range(score.getStavesList().getParts())) {
Part part = score.getStavesList().getParts().get(i);
s += i + ": " + part.getName() + "\n";
}
}
txtParts.setText(s);
}
Aggregations