示例#1
0
          @Override
          public boolean loading(final LoadEvents event, final int counter) {
            if (!m_continue) {
              m_continue = true;

              return false;
            }

            m_loadProgressPanel.next();

            if (event == LoadEvents.LOADING_FINISHED) {
              m_loadProgressPanel.setVisible(false);

              m_first = true;
              m_continue = true;
            } else if (m_first) {
              m_loadProgressPanel.setValue(counter);

              m_first = false;
            }

            m_loadProgressPanel.setText(DESCRIPTION_TEXTS[event.ordinal()]);

            return true;
          }
示例#2
0
    @Override
    public CProgressPanel getProgressPanel() {
      m_loadProgressPanel.setMaximum(LoadEvents.values().length);

      m_loadProgressPanel.setVisible(true);

      return m_loadProgressPanel;
    }