775 filePermission = allowedToPrintToFile();
776 }
777
778 public boolean isPrintToFileSelected() {
779 return cbPrintToFile.isSelected();
780 }
781
782 private JLabel addLabel(String text,
783 GridBagLayout gridbag, GridBagConstraints c)
784 {
785 c.gridwidth = 1;
786 addToGB(new JLabel(text, JLabel.TRAILING), this, gridbag, c);
787
788 c.gridwidth = GridBagConstraints.REMAINDER;
789 JLabel label = new JLabel();
790 addToGB(label, this, gridbag, c);
791
792 return label;
793 }
794
795 public void actionPerformed(ActionEvent e) {
796 Object source = e.getSource();
797
798 if (source == btnProperties) {
799 if (uiFactory != null) {
800 JDialog dialog = (JDialog)uiFactory.getUI(
801 ServiceUIFactory.MAIN_UIROLE,
802 ServiceUIFactory.JDIALOG_UI);
803
804 if (dialog != null) {
805 dialog.show();
806 } else {
807 DocumentPropertiesUI docPropertiesUI = null;
808 try {
809 docPropertiesUI =
810 (DocumentPropertiesUI)uiFactory.getUI
811 (DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE,
812 DocumentPropertiesUI.DOCPROPERTIESCLASSNAME);
813 } catch (Exception ex) {
814 }
|
775 filePermission = allowedToPrintToFile();
776 }
777
778 public boolean isPrintToFileSelected() {
779 return cbPrintToFile.isSelected();
780 }
781
782 private JLabel addLabel(String text,
783 GridBagLayout gridbag, GridBagConstraints c)
784 {
785 c.gridwidth = 1;
786 addToGB(new JLabel(text, JLabel.TRAILING), this, gridbag, c);
787
788 c.gridwidth = GridBagConstraints.REMAINDER;
789 JLabel label = new JLabel();
790 addToGB(label, this, gridbag, c);
791
792 return label;
793 }
794
795 @SuppressWarnings("deprecation")
796 public void actionPerformed(ActionEvent e) {
797 Object source = e.getSource();
798
799 if (source == btnProperties) {
800 if (uiFactory != null) {
801 JDialog dialog = (JDialog)uiFactory.getUI(
802 ServiceUIFactory.MAIN_UIROLE,
803 ServiceUIFactory.JDIALOG_UI);
804
805 if (dialog != null) {
806 dialog.show();
807 } else {
808 DocumentPropertiesUI docPropertiesUI = null;
809 try {
810 docPropertiesUI =
811 (DocumentPropertiesUI)uiFactory.getUI
812 (DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE,
813 DocumentPropertiesUI.DOCPROPERTIESCLASSNAME);
814 } catch (Exception ex) {
815 }
|