Package org.xnap.commons.settings

Examples of org.xnap.commons.settings.SettingStore


   */
  public static void main(String[] args)
  {
    final AddressBook app = new AddressBook();
    app.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    app.restoreLayout(new SettingStore(Settings.backstore));
   
    try {
      File file = JHylaFAX.getAddressBookFile();
      if (file.exists()) {
        app.load(file);
View Full Code Here


   
    notificationTimer.settingsUpdated();
  }
 
  private void restoreLayout() {
    SettingStore store = new SettingStore(Settings.backstore);
    store.restoreWindow("window.main", 40, 40, 540, 400, this);

    recvqPanel.restoreLayout(store, new String[] { "sender", "pages", "time", "filename", "filesize", "error" });
    sendqPanel.restoreLayout(store, new String[] { "id", "priority", "sender", "number", "dials", "pages", "error", "state" });
    pollqPanel.restoreLayout(store, new String[] { "id", "priority", "sender", "number", "dials", "pages", "error", "state" });
    doneqPanel.restoreLayout(store, new String[] { "id", "priority", "sender", "number", "dials", "pages", "error", "state" });
View Full Code Here

    doneqPanel.restoreLayout(store, new String[] { "id", "priority", "sender", "number", "dials", "pages", "error", "state" });
    docqPanel.restoreLayout(store, new String[] { "permissions", "owner", "modified", "filename", "filesize", "time" });
  }
 
  private void saveLayout() {
    SettingStore store = new SettingStore(Settings.backstore);
    store.saveWindow("window.main", this);

    recvqPanel.saveLayout(store);
    sendqPanel.saveLayout(store);
    pollqPanel.saveLayout(store);
    doneqPanel.saveLayout(store);
View Full Code Here

  public void exit()
  {
    if (addressBook != null) {
      try {
        addressBook.saveLayout(new SettingStore(Settings.backstore));
        addressBook.store(addressBookFile);
      }
      catch (Exception e) {
        logger.debug("Error storing addressbook", e);
        ErrorDialog.showError(JHylaFAX.this,
View Full Code Here

  public AddressBook getAddressBook()
  {
    if (addressBook == null) {
      addressBook = new AddressBook();
      //addressBook.setLocationRelativeTo(JHylaFAX.this);
      addressBook.restoreLayout(new SettingStore(Settings.backstore));
     
      try {
        addressBookFile = getAddressBookFile();
        if (addressBookFile.exists()) {
          addressBook.load(addressBookFile);
View Full Code Here

TOP

Related Classes of org.xnap.commons.settings.SettingStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.