_ogretextfindprogresssheet_eoarchive_english.java
来自「Mac OS X 平台一文本编辑器的源代码」· Java 代码 · 共 180 行
JAVA
180 行
// _OgreTextFindProgressSheet_EOArchive_English.java// Generated by EnterpriseObjects palette at 2004\u5e746\u670821\u65e5\u6708\u66dc\u65e5 23\u664243\u520604\u79d2Asia/Tokyoimport com.webobjects.eoapplication.*;import com.webobjects.eocontrol.*;import com.webobjects.eointerface.*;import com.webobjects.eointerface.swing.*;import com.webobjects.foundation.*;import java.awt.*;import javax.swing.*;import javax.swing.border.*;import javax.swing.table.*;import javax.swing.text.*;public class _OgreTextFindProgressSheet_EOArchive_English extends com.webobjects.eoapplication.EOArchive { com.webobjects.eointerface.swing.EOFrame _eoFrame0; com.webobjects.eointerface.swing.EOTextField _nsTextField0, _nsTextField1, _nsTextField2; com.webobjects.eointerface.swing.EOView _nsProgressIndicator0; javax.swing.JButton _nsButton0; javax.swing.JPanel _nsView0; public _OgreTextFindProgressSheet_EOArchive_English(Object owner, NSDisposableRegistry registry) { super(owner, registry); } protected void _construct() { Object owner = _owner(); EOArchive._ObjectInstantiationDelegate delegate = (owner instanceof EOArchive._ObjectInstantiationDelegate) ? (EOArchive._ObjectInstantiationDelegate)owner : null; Object replacement; super._construct(); if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "donePerTotalTextField")) != null)) { _nsTextField2 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField2"); } else { _nsTextField2 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField11"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "titleTextField")) != null)) { _nsTextField1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField1"); } else { _nsTextField1 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField2"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "button")) != null)) { _nsButton0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement; _replacedObjects.setObjectForKey(replacement, "_nsButton0"); } else { _nsButton0 = (javax.swing.JButton)_registered(new javax.swing.JButton(""), "NSButton"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "progressBar")) != null)) { _nsProgressIndicator0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOView)replacement; _replacedObjects.setObjectForKey(replacement, "_nsProgressIndicator0"); } else { _nsProgressIndicator0 = (com.webobjects.eointerface.swing.EOView)_registered(new com.webobjects.eointerface.swing.EOView(), "1111111"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "progressTextField")) != null)) { _nsTextField0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField0"); } else { _nsTextField0 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "progressWindow")) != null)) { _eoFrame0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOFrame)replacement; _replacedObjects.setObjectForKey(replacement, "_eoFrame0"); } else { _eoFrame0 = (com.webobjects.eointerface.swing.EOFrame)_registered(new com.webobjects.eointerface.swing.EOFrame(), "ProgressSheet"); } _nsView0 = (JPanel)_eoFrame0.getContentPane(); } protected void _awaken() { super._awaken(); if (_replacedObjects.objectForKey("_nsTextField2") == null) { _connect(_owner(), _nsTextField2, "donePerTotalTextField"); } if (_replacedObjects.objectForKey("_nsTextField1") == null) { _connect(_owner(), _nsTextField1, "titleTextField"); } if (_replacedObjects.objectForKey("_eoFrame0") == null) { _connect(_owner(), _eoFrame0, "progressWindow"); } _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "cancel", _nsButton0), "")); if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_owner(), _nsButton0, "button"); } if (_replacedObjects.objectForKey("_nsProgressIndicator0") == null) { _connect(_owner(), _nsProgressIndicator0, "progressBar"); } if (_replacedObjects.objectForKey("_nsTextField0") == null) { _connect(_owner(), _nsTextField0, "progressTextField"); } } protected void _init() { super._init(); if (_replacedObjects.objectForKey("_nsTextField2") == null) { _setFontForComponent(_nsTextField2, "Lucida Grande", 11, Font.PLAIN); _nsTextField2.setEditable(false); _nsTextField2.setOpaque(false); _nsTextField2.setText(""); _nsTextField2.setHorizontalAlignment(javax.swing.JTextField.RIGHT); _nsTextField2.setSelectable(false); _nsTextField2.setEnabled(true); _nsTextField2.setBorder(null); } if (_replacedObjects.objectForKey("_nsTextField1") == null) { _setFontForComponent(_nsTextField1, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField1.setEditable(false); _nsTextField1.setOpaque(false); _nsTextField1.setText(""); _nsTextField1.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField1.setSelectable(false); _nsTextField1.setEnabled(true); _nsTextField1.setBorder(null); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _setFontForComponent(_nsButton0, "Lucida Grande", 13, Font.PLAIN); _nsButton0.setMargin(new Insets(0, 2, 0, 2)); } if (_replacedObjects.objectForKey("_nsTextField0") == null) { _setFontForComponent(_nsTextField0, "Lucida Grande", 11, Font.PLAIN); _nsTextField0.setEditable(false); _nsTextField0.setOpaque(false); _nsTextField0.setText(""); _nsTextField0.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField0.setSelectable(false); _nsTextField0.setEnabled(true); _nsTextField0.setBorder(null); } if (!(_nsView0.getLayout() instanceof EOViewLayout)) { _nsView0.setLayout(new EOViewLayout()); } _nsTextField0.setSize(366, 28); _nsTextField0.setLocation(11, 53); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField0, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField0); _nsTextField1.setSize(360, 17); _nsTextField1.setLocation(14, 10); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField1, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField1); _nsProgressIndicator0.setSize(362, 12); _nsProgressIndicator0.setLocation(12, 35); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsProgressIndicator0, EOViewLayout.MinYMargin); _nsView0.add(_nsProgressIndicator0); _nsTextField2.setSize(184, 14); _nsTextField2.setLocation(193, 19); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField2, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField2); _nsButton0.setSize(101, 26); _nsButton0.setLocation(276, 72); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton0, EOViewLayout.MinYMargin); _nsView0.add(_nsButton0); if (_replacedObjects.objectForKey("_eoFrame0") == null) { _nsView0.setSize(386, 108); _eoFrame0.setTitle("Window"); _eoFrame0.setLocation(227, 478); _eoFrame0.setSize(386, 108); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?