コード例 #1
0
ファイル: OptionPanel.java プロジェクト: GeorgLink/Desktop
 public void closeWindow() {
   final OptionPanelWindowConfigurationStorage storage =
       new OptionPanelWindowConfigurationStorage();
   storage.setPanel(selectedPanel);
   storage.storeDialogPositions(topDialog, OptionPanel.PREFERENCE_STORAGE_PROPERTY);
   topDialog.setVisible(false);
   topDialog.dispose();
 }
コード例 #2
0
 public static OptionPanelWindowConfigurationStorage decorateDialog(
     final String marshalled, final JDialog dialog) {
   final OptionPanelWindowConfigurationStorage storage =
       new OptionPanelWindowConfigurationStorage();
   final XMLElement xml = storage.unmarschall(marshalled, dialog);
   if (xml != null) {
     storage.panel = xml.getAttribute("panel", null);
     return storage;
   }
   return null;
 }