資源簡(jiǎn)介
java開(kāi)源股票系統(tǒng)

代碼片段和文件信息
package?com.nexes.wizard;
import?java.awt.*;
import?java.awt.event.*;
import?java.beans.*;
import?java.util.*;
import?java.net.*;
import?javax.swing.*;
import?javax.swing.border.*;
/**
?*?This?class?implements?a?basic?wizard?dialog?where?the?programmer?can
?*?insert?one?or?more?Components?to?act?as?panels.?These?panels?can?be?navigated
?*?through?arbitrarily?using?the?‘Next‘?or?‘Back‘?buttons?or?the?dialog?itself
?*?can?be?closed?using?the?‘Cancel‘?button.?Note?that?even?though?the?dialog
?*?uses?a?CardLayout?manager?the?order?of?the?panels?is?not?linear.?Each?panel
?*?determines?at?runtime?what?its?next?and?previous?panel?will?be.
?*/
public?class?Wizard?extends?WindowAdapter?implements?PropertyChangeListener?{
????/**
?????*?Indicates?that?the?‘Finish‘?button?was?pressed?to?close?the?dialog.
?????*/????
????public?static?final?int?FINISH_RETURN_CODE?=?0;
????/**
?????*?Indicates?that?the?‘Cancel‘?button?was?pressed?to?close?the?dialog?or
?????*?the?user?pressed?the?close?box?in?the?corner?of?the?window.
?????*/????
????public?static?final?int?CANCEL_RETURN_CODE?=?1;
????/**
?????*?Indicates?that?the?dialog?closed?due?to?an?internal?error.
?????*/????
????public?static?final?int?ERROR_RETURN_CODE?=?2;
????????
????/**
?????*?The?String-based?action?command?for?the?‘Next‘?button.
?????*/????
????public?static?final?String?NEXT_BUTTON_ACTION_COMMAND?=?“NextButtonActionCommand“;
????/**
?????*?The?String-based?action?command?for?the?‘Back‘?button.
?????*/????
????public?static?final?String?BACK_BUTTON_ACTION_COMMAND?=?“BackButtonActionCommand“;
????/**
?????*?The?String-based?action?command?for?the?‘Cancel‘?button.
?????*/????
????public?static?final?String?CANCEL_BUTTON_ACTION_COMMAND?=?“CancelButtonActionCommand“;
????????
????//?The?i18n?text?used?for?the?buttons.?Loaded?from?a?property?resource?file.????
????
????static?String?BACK_TEXT;
????static?String?NEXT_TEXT;
????static?String?FINISH_TEXT;
????static?String?CANCEL_TEXT;
????//?The?image?icons?used?for?the?buttons.?Filenames?are?loaded?from?a?property?resource?file.????
????static?Icon?BACK_ICON;
????static?Icon?NEXT_ICON;
????static?Icon?FINISH_ICON;
????static?Icon?CANCEL_ICON;
????
????
????private?WizardModel?wizardModel;
????private?WizardController?wizardController;
????private?JDialog?wizardDialog;
????????
????private?JPanel?cardPanel;
????private?CardLayout?cardLayout;????????????
????private?JButton?backButton;
????private?JButton?nextButton;
????private?JButton?cancelButton;
????
????private?int?returnCode;
????
????
????/**
?????*?Default?constructor.?This?method?creates?a?new?WizardModel?object?and?passes?it
?????*?into?the?overloaded?constructor.
?????*/????
????public?Wizard()?{
????????this((frame)null);
????}
????
????/**
?????*?This?method?accepts?a?java.awt.Dialog?object?as?the?javax.swing.JDialog‘s
?????*?parent.
?????*?@param?owner?The?java.awt.Dialog?object?that?is?the?owner?of?this?dialog.
?????*/????
????public?Wizard(Dialog?owner)?{
????????wizardModel
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-01?22:45??jstock\
?????文件????????7334??2013-01-01?22:43??jstock\.hgtags
?????文件????????5015??2013-01-01?22:43??jstock\build.xm
?????目錄???????????0??2013-01-01?22:45??jstock\config\
?????文件?????????112??2013-01-01?22:43??jstock\config\commons-logging.properties
?????目錄???????????0??2013-01-01?22:45??jstock\docs\
?????文件???????34202??2013-01-01?22:43??jstock\docs\changelog.txt
?????文件?????????990??2013-01-01?22:43??jstock\docs\contributors.txt
?????文件???????17987??2013-01-01?22:43??jstock\docs\gpl-2.0.txt
?????目錄???????????0??2013-01-01?22:45??jstock\installer\
?????目錄???????????0??2013-01-01?22:45??jstock\installer\linux\
?????文件????????1306??2013-01-01?22:43??jstock\installer\linux\jstock.sh
?????目錄???????????0??2013-01-01?22:45??jstock\installer\windows\
?????文件???????99678??2013-01-01?22:43??jstock\installer\windows\chart.ico
?????文件???????17987??2013-01-01?22:43??jstock\installer\windows\gpl-2.0.txt
?????文件????????5187??2013-01-01?22:43??jstock\installer\windows\jstock.nsi
?????文件????????1351??2013-01-01?22:43??jstock\installer\windows\jstock.xm
?????文件??????????82??2013-01-01?22:43??jstock\manifest.mf
?????目錄???????????0??2013-01-01?22:45??jstock\nbproject\
?????文件???????????8??2013-01-01?22:43??jstock\nbproject\.cvsignore
?????文件???????56333??2013-01-01?22:43??jstock\nbproject\build-impl.xm
?????文件?????????465??2013-01-01?22:43??jstock\nbproject\genfiles.properties
?????文件????????7626??2013-01-01?22:43??jstock\nbproject\project.properties
?????文件?????????560??2013-01-01?22:43??jstock\nbproject\project.xm
?????目錄???????????0??2013-01-01?22:45??jstock\src\
?????目錄???????????0??2013-01-01?22:45??jstock\src\com\
?????目錄???????????0??2013-01-01?22:45??jstock\src\com\nexes\
?????目錄???????????0??2013-01-01?22:45??jstock\src\com\nexes\wizard\
?????文件???????17083??2013-01-01?22:43??jstock\src\com\nexes\wizard\Wizard.java
?????文件?????????296??2013-01-01?22:43??jstock\src\com\nexes\wizard\wizard.properties
?????文件????????4667??2013-01-01?22:43??jstock\src\com\nexes\wizard\WizardController.java
............此處省略495個(gè)文件信息
評(píng)論
共有 條評(píng)論