Package org.jmule.ui.swt

Examples of org.jmule.ui.swt.Refreshable


       
    completed = new Label(shared_file_fields,SWT.NONE);
    completed.setFont(skin.getLabelFont());
    completed.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    if (shared_file instanceof PartialFile) {
      refresher = new Refreshable(){

        public void refresh() {
          PartialFile p_file = (PartialFile) shared_file;
          completed.setText(FileFormatter.formatProgress(p_file.getPercentCompleted()));
        }
View Full Code Here


    try {
    updateDirList(config_manager.getSharedFolders());
  } catch (ConfigurationManagerException e) {
    e.printStackTrace();
  }
  refreshable = new Refreshable() {
    public void refresh() {
      if (isDisposed()) return;
      String text = _._("mainwindow.sharedtab.group.shared_files");
      SharedFile hashing_file = sharing_manager.getCurrentHashingFile();
      if (hashing_file != null) {
View Full Code Here

    uploads = new Group(upload_panel,SWT.NONE);
    uploads.setFont(skin.getDefaultFont());
    uploads.setLayout(new FillLayout());
    upload_list = new UploadList(uploads,_core);
   
    refreshable = new Refreshable() {
      public void refresh() {
        if (isDisposed()) return;
        int download_count = _core.getDownloadManager().getDownloadCount();
        int upload_count = _core.getUploadManager().getUploadCount();
       
View Full Code Here

        layout();
      }
     
    });
   
    GUIUpdater.getInstance().addRefreshable(new Refreshable() {
      public void refresh() {
        if (isDisposed()) return ;
        String down_limit = "";
        String up_limit = "";
        try {
View Full Code Here

    filesize_formatter.add(JMuleCoreStats.ST_NET_SESSION_UPLOAD_BYTES);
    filesize_formatter.add(JMuleCoreStats.ST_DISK_SHARED_FILES_BYTES);
    filesize_formatter.add(JMuleCoreStats.ST_DISK_SHARED_FILES_PARTIAL_BYTES);
    filesize_formatter.add(JMuleCoreStats.ST_DISK_SHARED_FILES_COMPLETE_BYTES);
   
    refreshable = new Refreshable() {
      Map<String,Object> stats = null;
      public void refresh() {
        stats = JMuleCoreStats.getStats(types);
       
        for(String key : stats.keySet()) {
View Full Code Here

    label_files.setText(server.getNumFiles()+"");
    label_users.setText(server.getNumUsers()+"");
    label_desc.setText(server.getDesc());
    label_name.setText(server.getName());
   
    final Refreshable refreshable = this;
   
    button.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        GUIUpdater.getInstance().removeRefreshable(refreshable);
        shell.close();
View Full Code Here

TOP

Related Classes of org.jmule.ui.swt.Refreshable

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.