|
|
@ -7,10 +7,14 @@ import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.utils.gui.LayoutUtils; |
|
|
|
import com.fr.design.utils.gui.LayoutUtils; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import java.awt.*; |
|
|
|
import javax.swing.JProgressBar; |
|
|
|
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
|
|
|
import java.awt.CardLayout; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author richer |
|
|
|
* @author richer |
|
|
@ -23,6 +27,10 @@ public abstract class LoadingBasicPane extends BasicPane { |
|
|
|
private JProgressBar progressBar; |
|
|
|
private JProgressBar progressBar; |
|
|
|
public LoadingBasicPane() { |
|
|
|
public LoadingBasicPane() { |
|
|
|
initCards(); |
|
|
|
initCards(); |
|
|
|
|
|
|
|
initPane(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void initPane(){ |
|
|
|
new SwingWorker<Integer, Void>() { |
|
|
|
new SwingWorker<Integer, Void>() { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -42,13 +50,14 @@ public abstract class LoadingBasicPane extends BasicPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initCards() { |
|
|
|
private void initCards() { |
|
|
|
card = new CardLayout(); |
|
|
|
card = new CardLayout(); |
|
|
|
setLayout(card); |
|
|
|
setLayout(card); |
|
|
|
JPanel loadingDisPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel loadingDisPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
String[] message = {"Loading","Please-Wait"}; |
|
|
|
String[] message = {"Loading","Please-Wait"}; |
|
|
|
String[] operator = {",","..."}; |
|
|
|
String[] operator = {",","..."}; |
|
|
|
UILabel loadingPane = new UILabel(Inter.getLocText(message,operator) , SwingConstants.CENTER); |
|
|
|
UILabel loadingPane = new UILabel(InterProviderFactory.getProvider().getLocText(message,operator) , SwingConstants.CENTER); |
|
|
|
loadingDisPane.add(loadingPane, BorderLayout.CENTER); |
|
|
|
loadingDisPane.add(loadingPane, BorderLayout.CENTER); |
|
|
|
progressBar = new JProgressBar(); |
|
|
|
progressBar = new JProgressBar(); |
|
|
|
progressBar.setIndeterminate(true); |
|
|
|
progressBar.setIndeterminate(true); |
|
|
|