package ListViewTest;
import DisplayProject.Array_Of_DisplayNode;
import DisplayProject.Array_Of_OutlineColumnDesc;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.DisplayNode;
import DisplayProject.FixedLengthDocument;
import DisplayProject.GridField;
import DisplayProject.OutlineColumnDesc;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.CommandType;
import DisplayProject.actions.FrameWeight;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.ListView;
import DisplayProject.controls.MenuSeparator;
import DisplayProject.controls.TextGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.MenuFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.printing.PrintActionListener;
import DisplayProject.printing.PrintSetupActionListener;
import Framework.DateTimeData;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.RuntimeProperties;
import Framework.TextData;
import Framework.UsageException;
import ListViewTest.Array_Of_RoleDN_n;
import ListViewTest.RoleDN_n;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ComponentListener;
import java.awt.event.KeyEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.help.CSH;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.JTextField;
import javax.swing.KeyStroke;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
/**
* Main<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Main
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private DisplayNode user_wdl;
private TextData statusLine_wed;
private TextData statusUserID_wed;
private RoleDN_n userRole_wdl;
private DateTimeData statusTime_wed;
// ------------
// Constructors
// ------------
public Main() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
}
// ----------------------
// Accessors and Mutators
// ----------------------
public File getDefaultHelpFile() {
return DefaultHelpFile;
}
public void setDefaultHelpFile(File defaultHelpFile) {
DefaultHelpFile = defaultHelpFile;
UserWindow.createHelp(this, defaultHelpFile);
}
public void setHelpURL(String urlString) {
try {
URL url = new URL(urlString);
UserWindow.createHelp(this, url);
} catch (MalformedURLException e) {
UsageException err = new UsageException("Cannot create help URL", e);
ErrorMgr.addError(err);
throw err;
}
}
protected BindingManager getBindingManager() {
if (this.bindingManager == null) {
this.bindingManager = new BindingManager(this);
}
return bindingManager;
}
public void setUser_wdl(DisplayNode user_wdl) {
DisplayNode oldValue = this.getUser_wdl();
this.getqq_user_wdl().setRootNode(user_wdl);
this.qq_Listeners.firePropertyChange("user_wdl", oldValue, user_wdl);
}
public DisplayNode getUser_wdl() {
return (DisplayNode)this.getqq_user_wdl().getRootNode();
}
public void setStatusLine_wed(TextData statusLine_wed) {
TextData oldValue = this.statusLine_wed;
this.statusLine_wed = statusLine_wed;
this.qq_Listeners.firePropertyChange("statusLine_wed", oldValue, this.statusLine_wed);
}
public TextData getStatusLine_wed() {
return this.statusLine_wed;
}
public void setStatusUserID_wed(TextData statusUserID_wed) {
TextData oldValue = this.statusUserID_wed;
this.statusUserID_wed = statusUserID_wed;
this.qq_Listeners.firePropertyChange("statusUserID_wed", oldValue, this.statusUserID_wed);
}
public TextData getStatusUserID_wed() {
return this.statusUserID_wed;
}
public void setUserRole_wdl(RoleDN_n userRole_wdl) {
RoleDN_n oldValue = this.getUserRole_wdl();
this.getqq_userRole_wdl().setRootNode(userRole_wdl);
this.qq_Listeners.firePropertyChange("userRole_wdl", oldValue, userRole_wdl);
}
public RoleDN_n getUserRole_wdl() {
return (RoleDN_n)this.getqq_userRole_wdl().getRootNode();
}
public void setStatusTime_wed(DateTimeData statusTime_wed) {
DateTimeData oldValue = this.statusTime_wed;
this.statusTime_wed = statusTime_wed;
this.qq_Listeners.firePropertyChange("statusTime_wed", oldValue, this.statusTime_wed);
}
public DateTimeData getStatusTime_wed() {
return this.statusTime_wed;
}
// -------
// Methods
// -------
public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(property, listener);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(property, listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(listener);
}
/**
* display<p>
* <p>
*/
public void display() {
this.getqq_userRole_wdl().setViewNodes((Array_Of_DisplayNode)this.makeNodes());
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
}
//catch (Exception qq_error) {
//Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
//throw qq_error;
//}
finally {
EventManager.endEventLoop();
UserWindow.close(this);
}
}
/**
* makeNodes<p>
* <p>
* @return Array_Of_RoleDN_n<RoleDN_n>
*/
public Array_Of_RoleDN_n<RoleDN_n> makeNodes() {
Array_Of_RoleDN_n<RoleDN_n> list = new Array_Of_RoleDN_n<RoleDN_n>();
list.set(0, new RoleDN_n("7", "Bob"));
list.set(1, new RoleDN_n("3", "Mary"));
return list;
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public DataField qq_statusLine_wed;
public DataField qq_statusTime_wed;
public DataField qq_statusUserID_wed;
public GridField qq_baseData_gwg;
public GridField qq_baseStatus_gwg;
public GridField qq_baseToolBarButtons_gwg;
public GridField qq_baseToolBar_gwg;
public GridField qq_baseTop_gwg;
public JButton qq_clear_wcp;
public JButton qq_exit_wcp;
public JMenu qq_EditMenu_n;
public JMenu qq_FileMenu_n;
public JMenu qq_HelpMenu_n;
public JMenuBar qq_MainMenuBar;
public JMenuItem qq_about_nc;
public JMenuItem qq_clear_nc;
public JMenuItem qq_deleteUser_nc;
public JMenuItem qq_exit_nc;
public JMenuItem qq_help_nc;
public JMenuItem qq_newUser_nc;
public JMenuItem qq_printSetup_nc;
public JMenuItem qq_print_nc;
public JMenuItem qq_property_nc;
public JPanel Form;
public JPopupMenu qq_popup_n;
public ListView qq_userRole_wdl;
public ListView qq_user_wdl;
public MenuSeparator qq_separator1;
public MenuSeparator qq_separator;
public OutlineColumnDesc qq_userRole_wdl_capacity_as;
public OutlineColumnDesc qq_userRole_wdl_roleName_as;
public OutlineColumnDesc qq_user_wdl_DVNodeText;
public TextGraphic qq_TextGraphic36;
/**
* qq_print_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_print_nc() {
if (qq_print_nc == null) {
qq_print_nc = MenuFactory.newMenuItem("print_nc", true);
qq_print_nc.setVerifyInputWhenFocusTarget(true);
qq_print_nc.addActionListener(new PrintActionListener(this));
CommandType.set(qq_print_nc, Constants.CT_PRINT);
qq_print_nc.setText( "Print..." );
qq_print_nc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.CTRL_MASK));
qq_print_nc.setVisible(true);
}
return qq_print_nc;
}
public void setqq_print_nc(JMenuItem value) {
JMenuItem oldValue = qq_print_nc;
qq_print_nc = value;
this.qq_Listeners.firePropertyChange("qq_print_nc", oldValue, value);
}
/**
* qq_printSetup_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_printSetup_nc() {
if (qq_printSetup_nc == null) {
qq_printSetup_nc = MenuFactory.newMenuItem("printSetup_nc", true);
qq_printSetup_nc.setVerifyInputWhenFocusTarget(true);
qq_printSetup_nc.addActionListener(new PrintSetupActionListener());
CommandType.set(qq_printSetup_nc, Constants.CT_PRINTSETUP);
qq_printSetup_nc.setText( "Print Setup..." );
qq_printSetup_nc.setVisible(true);
}
return qq_printSetup_nc;
}
public void setqq_printSetup_nc(JMenuItem value) {
JMenuItem oldValue = qq_printSetup_nc;
qq_printSetup_nc = value;
this.qq_Listeners.firePropertyChange("qq_printSetup_nc", oldValue, value);
}
/**
* qq_separator: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator() {
if (qq_separator == null) {
qq_separator = new MenuSeparator();
qq_separator.setName("");
qq_separator.setVisible( true );
}
return qq_separator;
}
public void setqq_separator(MenuSeparator value) {
MenuSeparator oldValue = qq_separator;
qq_separator = value;
this.qq_Listeners.firePropertyChange("qq_separator", oldValue, value);
}
/**
* qq_exit_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_exit_nc() {
if (qq_exit_nc == null) {
qq_exit_nc = MenuFactory.newMenuItem("exit_nc", true);
qq_exit_nc.setVerifyInputWhenFocusTarget(true);
qq_exit_nc.setMnemonic( 'x' );
qq_exit_nc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, ActionEvent.ALT_MASK));
CommandType.set(qq_exit_nc, Constants.CT_EXIT);
qq_exit_nc.setText( "Exit" );
qq_exit_nc.setVisible(true);
}
return qq_exit_nc;
}
public void setqq_exit_nc(JMenuItem value) {
JMenuItem oldValue = qq_exit_nc;
qq_exit_nc = value;
this.qq_Listeners.firePropertyChange("qq_exit_nc", oldValue, value);
}
/**
* qq_FileMenu_n: transformed from: qqds_Submenu
*/
public JMenu getqq_FileMenu_n() {
if (qq_FileMenu_n == null) {
qq_FileMenu_n = new JMenu();
qq_FileMenu_n.setName("FileMenu_n");
qq_FileMenu_n.setText( "File" );
qq_FileMenu_n.setVisible(true);
qq_FileMenu_n.add(getqq_print_nc());
qq_FileMenu_n.add(getqq_printSetup_nc());
qq_FileMenu_n.add(getqq_separator());
qq_FileMenu_n.add(getqq_exit_nc());
}
return qq_FileMenu_n;
}
/**
* qq_clear_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_clear_nc() {
if (qq_clear_nc == null) {
qq_clear_nc = MenuFactory.newMenuItem("clear_nc", true);
qq_clear_nc.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_clear_nc, Constants.CT_CUSTOM);
qq_clear_nc.setText( "Clear" );
qq_clear_nc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, ActionEvent.CTRL_MASK | ActionEvent.SHIFT_MASK));
qq_clear_nc.setVisible(true);
}
return qq_clear_nc;
}
public void setqq_clear_nc(JMenuItem value) {
JMenuItem oldValue = qq_clear_nc;
qq_clear_nc = value;
this.qq_Listeners.firePropertyChange("qq_clear_nc", oldValue, value);
}
/**
* qq_EditMenu_n: transformed from: qqds_Submenu
*/
public JMenu getqq_EditMenu_n() {
if (qq_EditMenu_n == null) {
qq_EditMenu_n = new JMenu();
qq_EditMenu_n.setName("EditMenu_n");
qq_EditMenu_n.setText( "Edit" );
qq_EditMenu_n.setVisible(true);
qq_EditMenu_n.add(getqq_clear_nc());
}
return qq_EditMenu_n;
}
/**
* qq_help_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_help_nc() {
if (qq_help_nc == null) {
qq_help_nc = MenuFactory.newMenuItem("help_nc", true);
qq_help_nc.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_help_nc, Constants.CT_HELPCONTENTS);
qq_help_nc.setText( "Contents" );
qq_help_nc.setVisible(true);
}
return qq_help_nc;
}
public void setqq_help_nc(JMenuItem value) {
JMenuItem oldValue = qq_help_nc;
qq_help_nc = value;
this.qq_Listeners.firePropertyChange("qq_help_nc", oldValue, value);
}
/**
* qq_separator1: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator1() {
if (qq_separator1 == null) {
qq_separator1 = new MenuSeparator();
qq_separator1.setName("");
qq_separator1.setVisible( true );
}
return qq_separator1;
}
public void setqq_separator1(MenuSeparator value) {
MenuSeparator oldValue = qq_separator1;
qq_separator1 = value;
this.qq_Listeners.firePropertyChange("qq_separator1", oldValue, value);
}
/**
* qq_about_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_about_nc() {
if (qq_about_nc == null) {
qq_about_nc = MenuFactory.newMenuItem("about_nc", true);
qq_about_nc.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_about_nc, Constants.CT_CUSTOM);
qq_about_nc.setText( "About SMS..." );
qq_about_nc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.CTRL_MASK | ActionEvent.SHIFT_MASK));
qq_about_nc.setVisible(true);
}
return qq_about_nc;
}
public void setqq_about_nc(JMenuItem value) {
JMenuItem oldValue = qq_about_nc;
qq_about_nc = value;
this.qq_Listeners.firePropertyChange("qq_about_nc", oldValue, value);
}
/**
* qq_HelpMenu_n: transformed from: qqds_Submenu
*/
public JMenu getqq_HelpMenu_n() {
if (qq_HelpMenu_n == null) {
qq_HelpMenu_n = new JMenu();
qq_HelpMenu_n.setName("HelpMenu_n");
qq_HelpMenu_n.setText( "Help" );
qq_HelpMenu_n.setVisible(true);
qq_HelpMenu_n.add(getqq_help_nc());
qq_HelpMenu_n.add(getqq_separator1());
qq_HelpMenu_n.add(getqq_about_nc());
}
return qq_HelpMenu_n;
}
/**
* qq_newUser_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_newUser_nc() {
if (qq_newUser_nc == null) {
qq_newUser_nc = MenuFactory.newMenuItem("newUser_nc", true);
qq_newUser_nc.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_newUser_nc, Constants.CT_CUSTOM);
qq_newUser_nc.setText( "New User" );
qq_newUser_nc.setVisible(true);
}
return qq_newUser_nc;
}
public void setqq_newUser_nc(JMenuItem value) {
JMenuItem oldValue = qq_newUser_nc;
qq_newUser_nc = value;
this.qq_Listeners.firePropertyChange("qq_newUser_nc", oldValue, value);
}
/**
* qq_deleteUser_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_deleteUser_nc() {
if (qq_deleteUser_nc == null) {
qq_deleteUser_nc = MenuFactory.newMenuItem("deleteUser_nc", true);
qq_deleteUser_nc.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_deleteUser_nc, Constants.CT_CUSTOM);
qq_deleteUser_nc.setText( "Delete User" );
qq_deleteUser_nc.setVisible(true);
}
return qq_deleteUser_nc;
}
public void setqq_deleteUser_nc(JMenuItem value) {
JMenuItem oldValue = qq_deleteUser_nc;
qq_deleteUser_nc = value;
this.qq_Listeners.firePropertyChange("qq_deleteUser_nc", oldValue, value);
}
/**
* qq_property_nc: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_property_nc() {
if (qq_property_nc == null) {
qq_property_nc = MenuFactory.newMenuItem("property_nc", true);
qq_property_nc.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_property_nc, Constants.CT_CUSTOM);
qq_property_nc.setText( "Property" );
qq_property_nc.setVisible(true);
}
return qq_property_nc;
}
public void setqq_property_nc(JMenuItem value) {
JMenuItem oldValue = qq_property_nc;
qq_property_nc = value;
this.qq_Listeners.firePropertyChange("qq_property_nc", oldValue, value);
}
/**
* qq_popup_n: transformed from: qqds_Submenu
*/
public JPopupMenu getqq_popup_n() {
if (qq_popup_n == null) {
qq_popup_n = new JPopupMenu();
qq_popup_n.setName("popup_n");
qq_popup_n.setVisible(true);
qq_popup_n.add(getqq_newUser_nc());
qq_popup_n.add(getqq_deleteUser_nc());
qq_popup_n.add(getqq_property_nc());
}
return qq_popup_n;
}
/**
* qq_MainMenuBar: transformed from: qqds_MenuBar
*/
public JMenuBar getqq_MenuBar() {
if (qq_MainMenuBar == null) {
qq_MainMenuBar = MenuFactory.newMenuBar();
qq_MainMenuBar.setName("MainMenuBar");
qq_MainMenuBar.setBorderPainted(false);
this.qq_MainMenuBar.add(getqq_FileMenu_n());
this.qq_MainMenuBar.add(getqq_EditMenu_n());
this.qq_MainMenuBar.add(getqq_HelpMenu_n());
}
return qq_MainMenuBar;
}
public void setqq_MainMenuBar(JMenuBar value) {
JMenuBar oldValue = qq_MainMenuBar;
qq_MainMenuBar = value;
this.qq_Listeners.firePropertyChange("qq_MainMenuBar", oldValue, value);
}
/**
* qq_userRole_wdl: transformed from: qqds_ListView
* TagId=29
* isInherited=FALSE
*/
public ListView getqq_userRole_wdl() {
if (qq_userRole_wdl == null) {
qq_userRole_wdl = TableFactory.newListView("userRole_wdl", Constants.LT_DETAIL, null, Font.PLAIN);
qq_userRole_wdl.setMappedType(Array_Of_RoleDN_n.class);
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_userRole_wdl_roleName_as());
columns.add(getqq_userRole_wdl_capacity_as());
qq_userRole_wdl.setColumnList(columns);
qq_userRole_wdl.setHasTitles(true);
qq_userRole_wdl.setVisibleLines(15);
qq_userRole_wdl.setVisibleColumns(25);
WidthPolicy.set(qq_userRole_wdl, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_userRole_wdl, Constants.SP_TO_PARENT);
}
return qq_userRole_wdl;
}
public void setqq_userRole_wdl(ListView value) {
ListView oldValue = qq_userRole_wdl;
qq_userRole_wdl = value;
this.qq_Listeners.firePropertyChange("qq_userRole_wdl", oldValue, value);
}
public OutlineColumnDesc getqq_userRole_wdl_roleName_as() {
if (qq_userRole_wdl_roleName_as == null) {
qq_userRole_wdl_roleName_as = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 21, "roleName_as", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Assigned Roles", 0);
}
return qq_userRole_wdl_roleName_as;
}
public OutlineColumnDesc getqq_userRole_wdl_capacity_as() {
if (qq_userRole_wdl_capacity_as == null) {
qq_userRole_wdl_capacity_as = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 12, "capacity_as", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Capacity", 0);
}
return qq_userRole_wdl_capacity_as;
}
/**
* qq_user_wdl: transformed from: qqds_ListView
* TagId=30
* isInherited=FALSE
*/
public ListView getqq_user_wdl() {
if (qq_user_wdl == null) {
qq_user_wdl = TableFactory.newListView("user_wdl", Constants.LT_DETAIL, null, Font.PLAIN);
qq_user_wdl.setMappedType(Array_Of_DisplayNode.class);
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_user_wdl_DVNodeText());
qq_user_wdl.setColumnList(columns);
qq_user_wdl.setHasTitles(false);
qq_user_wdl.setVisibleLines(15);
qq_user_wdl.setVisibleColumns(25);
WidthPolicy.set(qq_user_wdl, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_user_wdl, Constants.SP_TO_PARENT);
}
return qq_user_wdl;
}
public void setqq_user_wdl(ListView value) {
ListView oldValue = qq_user_wdl;
qq_user_wdl = value;
this.qq_Listeners.firePropertyChange("qq_user_wdl", oldValue, value);
}
public OutlineColumnDesc getqq_user_wdl_DVNodeText() {
if (qq_user_wdl_DVNodeText == null) {
qq_user_wdl_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 20, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "", 0);
}
return qq_user_wdl_DVNodeText;
}
/**
* qq_baseData_gwg: transformed from: qqds_GridField
* TagId=28
* isInherited=FALSE
* In forte this was a 2x1 grid field.
* The cell margins are all 50 mils
* The width policy is set to Parent, and the height policy is set to Parent.
*/
protected void setqq_baseData_gwgProperties() {
qq_baseData_gwg.setCellTopMargin(25);
qq_baseData_gwg.setCellBottomMargin(25);
qq_baseData_gwg.setCellLeftMargin(25);
qq_baseData_gwg.setCellRightMargin(25);
qq_baseData_gwg.setCellGravity(Constants.CG_CENTER);
qq_baseData_gwg.setIgnoreInvisibleChildren(true);
qq_baseData_gwg.setCollapsed(true);
qq_baseData_gwg.setHeightPolicy(Constants.SP_TO_PARENT);
qq_baseData_gwg.setWidthPolicy(Constants.SP_TO_PARENT);
qq_baseData_gwg.setBackground(null);
}
public GridField getqq_baseData_gwg() {
if (qq_baseData_gwg == null) {
qq_baseData_gwg = CompoundFieldFactory.newGridField("baseData_gwg", false);
setqq_baseData_gwgProperties();
qq_baseData_gwg.setMinimumSize(new Dimension(0, 0));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 3;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc.fill = GridBagConstraints.BOTH; // Size to parent - original: H & W = SP_TO_PARENT
qq_gbc.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_baseData_gwg.add( getqq_user_wdl(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 2;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc1.fill = GridBagConstraints.BOTH; // Size to parent - original: H & W = SP_TO_PARENT
qq_gbc1.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_baseData_gwg.add( getqq_userRole_wdl(), qq_gbc1 );
}
return qq_baseData_gwg;
}
public void setqq_baseData_gwg(GridField value) {
GridField oldValue = qq_baseData_gwg;
qq_baseData_gwg = value;
this.qq_Listeners.firePropertyChange("qq_baseData_gwg", oldValue, value);
}
/**
* qq_statusLine_wed: transformed from: qqds_DataField
* TagId=32
* isInherited=FALSE
*/
public DataField getqq_statusLine_wed() {
if (qq_statusLine_wed == null) {
// Mask type: MK_NONE
qq_statusLine_wed = DataFieldFactory.newDataField("statusLine_wed", 13, TextData.class, Constants.MK_NONE);
qq_statusLine_wed.setValue("");
qq_statusLine_wed.setOriginalFormatText(null);
qq_statusLine_wed.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_statusLine_wed, "statusLine_wed");
WidthPolicy.set(qq_statusLine_wed, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_statusLine_wed, Constants.SP_NATURAL);
int width = UIutils.colsToPixels(0, qq_statusLine_wed);
qq_statusLine_wed.setMinimumSize(new Dimension(width, 19));
ColourChange.setBackground(qq_statusLine_wed, Constants.C_GRAY2);
}
return qq_statusLine_wed;
}
public void setqq_statusLine_wed(DataField value) {
DataField oldValue = qq_statusLine_wed;
qq_statusLine_wed = value;
this.qq_Listeners.firePropertyChange("qq_statusLine_wed", oldValue, value);
}
/**
* qq_statusUserID_wed: transformed from: qqds_DataField
* TagId=33
* isInherited=FALSE
*/
public DataField getqq_statusUserID_wed() {
if (qq_statusUserID_wed == null) {
// Mask type: MK_NONE
qq_statusUserID_wed = DataFieldFactory.newDataField("statusUserID_wed", 11, TextData.class, Constants.MK_NONE);
qq_statusUserID_wed.setValue("");
qq_statusUserID_wed.setOriginalFormatText(null);
qq_statusUserID_wed.setHorizontalAlignment(JTextField.LEFT);
qq_statusUserID_wed.setDocument( new FixedLengthDocument(10) ); // Max characters of 10
getBindingManager().bindComponent(qq_statusUserID_wed, "statusUserID_wed");
WidthPolicy.set(qq_statusUserID_wed, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_statusUserID_wed, Constants.SP_NATURAL);
qq_statusUserID_wed.setMinimumSize(new Dimension(79, 19));
qq_statusUserID_wed.setSize(new Dimension(79, 19));
ColourChange.setBackground(qq_statusUserID_wed, Constants.C_GRAY2);
}
return qq_statusUserID_wed;
}
public void setqq_statusUserID_wed(DataField value) {
DataField oldValue = qq_statusUserID_wed;
qq_statusUserID_wed = value;
this.qq_Listeners.firePropertyChange("qq_statusUserID_wed", oldValue, value);
}
/**
* qq_statusTime_wed: transformed from: qqds_DataField
* TagId=34
* isInherited=FALSE
*/
public DataField getqq_statusTime_wed() {
if (qq_statusTime_wed == null) {
// Mask type: MK_NONE
qq_statusTime_wed = DataFieldFactory.newDataField("statusTime_wed", 19, DateTimeData.class, Constants.MK_NONE);
qq_statusTime_wed.setOriginalFormatText(null);
qq_statusTime_wed.setHorizontalAlignment(JTextField.LEFT);
qq_statusTime_wed.setDocument( new FixedLengthDocument(19) ); // Max characters of 19
getBindingManager().bindComponent(qq_statusTime_wed, "statusTime_wed");
WidthPolicy.set(qq_statusTime_wed, Constants.SP_NATURAL);
HeightPolicy.set(qq_statusTime_wed, Constants.SP_NATURAL);
qq_statusTime_wed.setMinimumSize(new Dimension(124, 19));
ColourChange.setBackground(qq_statusTime_wed, Constants.C_GRAY2);
// HelpTopic
CSH.setHelpIDString(qq_statusTime_wed, "");
}
return qq_statusTime_wed;
}
public void setqq_statusTime_wed(DataField value) {
DataField oldValue = qq_statusTime_wed;
qq_statusTime_wed = value;
this.qq_Listeners.firePropertyChange("qq_statusTime_wed", oldValue, value);
}
/**
* qq_baseStatus_gwg: transformed from: qqds_GridField
* TagId=31
* isInherited=FALSE
* In forte this was a 3x1 grid field.
* Neither the top nor the bottom cell margins are set, but the left cell margin is 0 mils and the right cell margin is 10 mils.
* The width policy is set to Parent, and the height policy is set to Natural.
*/
protected void setqq_baseStatus_gwgProperties() {
qq_baseStatus_gwg.setCellLeftMargin(20);
qq_baseStatus_gwg.setCellRightMargin(5);
qq_baseStatus_gwg.setCellGravity(Constants.CG_CENTER);
qq_baseStatus_gwg.setIgnoreInvisibleChildren(true);
qq_baseStatus_gwg.setCollapsed(true);
qq_baseStatus_gwg.setHeightPolicy(Constants.SP_NATURAL);
qq_baseStatus_gwg.setWidthPolicy(Constants.SP_TO_PARENT);
qq_baseStatus_gwg.setBackground(null);
}
public GridField getqq_baseStatus_gwg() {
if (qq_baseStatus_gwg == null) {
qq_baseStatus_gwg = CompoundFieldFactory.newGridField("baseStatus_gwg", false);
setqq_baseStatus_gwgProperties();
qq_baseStatus_gwg.setMinimumSize(new Dimension(0, 19));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 1;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc.fill = GridBagConstraints.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc.insets = new Insets(0, 1, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseStatus_gwg.add( getqq_statusLine_wed(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 1, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseStatus_gwg.add( getqq_statusUserID_wed(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 2; // Column 3
qq_gbc2.gridy = 0; // Row 1
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(0, 1, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseStatus_gwg.add( getqq_statusTime_wed(), qq_gbc2 );
}
return qq_baseStatus_gwg;
}
public void setqq_baseStatus_gwg(GridField value) {
GridField oldValue = qq_baseStatus_gwg;
qq_baseStatus_gwg = value;
this.qq_Listeners.firePropertyChange("qq_baseStatus_gwg", oldValue, value);
}
/**
* qq_TextGraphic36: transformed from: qqds_TextGraphic
* TagId=36
* isInherited=FALSE
*/
public TextGraphic getqq_TextGraphic36() {
if (qq_TextGraphic36 == null) {
qq_TextGraphic36 = GraphicFactory.newTextGraphic(" ", "");
qq_TextGraphic36.setHorizontalAlignment( SwingConstants.LEFT );
// OPTIONAL UIutils.reloadLabelText(qq_TextGraphic36, mcat);
WidthPolicy.set(qq_TextGraphic36, Constants.SP_NATURAL);
HeightPolicy.set(qq_TextGraphic36, Constants.SP_NATURAL);
qq_TextGraphic36.setMinimumSize(new Dimension(21, 14));
}
return qq_TextGraphic36;
}
public void setqq_TextGraphic36(TextGraphic value) {
TextGraphic oldValue = qq_TextGraphic36;
qq_TextGraphic36 = value;
this.qq_Listeners.firePropertyChange("qq_TextGraphic36", oldValue, value);
}
/**
* qq_clear_wcp: transformed from: qqds_PictureButton
* TagId=38
* isInherited=FALSE
*/
public JButton getqq_clear_wcp() {
if (qq_clear_wcp == null) {
qq_clear_wcp = PushButtonFactory.newInstance("clear_wcp");
qq_clear_wcp.setIcon(new ImageIcon(Main.class.getResource("Main.qq_clear_wcp.png")));
qq_clear_wcp.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_clear_wcp, Constants.SP_NATURAL);
HeightPolicy.set(qq_clear_wcp, Constants.SP_NATURAL);
qq_clear_wcp.setSize(new Dimension(31, 31));
qq_clear_wcp.setMinimumSize(new Dimension(31, 31));
qq_clear_wcp.setPreferredSize(new Dimension(31, 31));
// HelpTopic
CSH.setHelpIDString(qq_clear_wcp, "");
// FloatOverText
qq_clear_wcp.setToolTipText("Clear");
}
return qq_clear_wcp;
}
public void setqq_clear_wcp(JButton value) {
JButton oldValue = qq_clear_wcp;
qq_clear_wcp = value;
this.qq_Listeners.firePropertyChange("qq_clear_wcp", oldValue, value);
}
/**
* qq_exit_wcp: transformed from: qqds_PictureButton
* TagId=39
* isInherited=FALSE
*/
public JButton getqq_exit_wcp() {
if (qq_exit_wcp == null) {
qq_exit_wcp = PushButtonFactory.newInstance("exit_wcp");
qq_exit_wcp.setIcon(new ImageIcon(Main.class.getResource("Main.qq_exit_wcp.png")));
qq_exit_wcp.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_exit_wcp, Constants.SP_NATURAL);
HeightPolicy.set(qq_exit_wcp, Constants.SP_NATURAL);
qq_exit_wcp.setSize(new Dimension(31, 31));
qq_exit_wcp.setMinimumSize(new Dimension(31, 31));
qq_exit_wcp.setPreferredSize(new Dimension(31, 31));
// HelpTopic
CSH.setHelpIDString(qq_exit_wcp, "");
// FloatOverText
qq_exit_wcp.setToolTipText("Exit");
}
return qq_exit_wcp;
}
public void setqq_exit_wcp(JButton value) {
JButton oldValue = qq_exit_wcp;
qq_exit_wcp = value;
this.qq_Listeners.firePropertyChange("qq_exit_wcp", oldValue, value);
}
/**
* qq_baseToolBarButtons_gwg: transformed from: qqds_GridField
* TagId=37
* isInherited=FALSE
* In forte this was a 2x1 grid field.
* The top and bottom cell margins are both 10 mils and the left and right cell margins are both 40 mils.
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_baseToolBarButtons_gwgProperties() {
qq_baseToolBarButtons_gwg.setCellTopMargin(5);
qq_baseToolBarButtons_gwg.setCellBottomMargin(5);
qq_baseToolBarButtons_gwg.setCellLeftMargin(20);
qq_baseToolBarButtons_gwg.setCellRightMargin(20);
qq_baseToolBarButtons_gwg.setCellGravity(Constants.CG_CENTER);
qq_baseToolBarButtons_gwg.setIgnoreInvisibleChildren(true);
qq_baseToolBarButtons_gwg.setCollapsed(true);
qq_baseToolBarButtons_gwg.setHeightPolicy(Constants.SP_NATURAL);
qq_baseToolBarButtons_gwg.setWidthPolicy(Constants.SP_NATURAL);
qq_baseToolBarButtons_gwg.setBackground(null);
}
public GridField getqq_baseToolBarButtons_gwg() {
if (qq_baseToolBarButtons_gwg == null) {
qq_baseToolBarButtons_gwg = CompoundFieldFactory.newGridField("baseToolBarButtons_gwg", false);
setqq_baseToolBarButtons_gwgProperties();
qq_baseToolBarButtons_gwg.setMinimumSize(new Dimension(76, 33));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 1, 0, 1); // Top, Left, Bottom, Right Margin
qq_baseToolBarButtons_gwg.add( getqq_exit_wcp(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 1, 0, 1); // Top, Left, Bottom, Right Margin
qq_baseToolBarButtons_gwg.add( getqq_clear_wcp(), qq_gbc1 );
}
return qq_baseToolBarButtons_gwg;
}
public void setqq_baseToolBarButtons_gwg(GridField value) {
GridField oldValue = qq_baseToolBarButtons_gwg;
qq_baseToolBarButtons_gwg = value;
this.qq_Listeners.firePropertyChange("qq_baseToolBarButtons_gwg", oldValue, value);
}
/**
* qq_baseToolBar_gwg: transformed from: qqds_GridField
* TagId=35
* isInherited=FALSE
* In forte this was a 2x1 grid field.
* There are no cell margins set
* The width policy is set to Parent, and the height policy is set to Parent.
*/
protected void setqq_baseToolBar_gwgProperties() {
FrameWeight.set(qq_baseToolBar_gwg, Constants.W_DEFAULT);
qq_baseToolBar_gwg.setCellGravity(Constants.CG_CENTER);
qq_baseToolBar_gwg.setIgnoreInvisibleChildren(true);
qq_baseToolBar_gwg.setCollapsed(true);
qq_baseToolBar_gwg.setHeightPolicy(Constants.SP_TO_PARENT);
qq_baseToolBar_gwg.setWidthPolicy(Constants.SP_TO_PARENT);
qq_baseToolBar_gwg.setBackground(null);
}
public GridField getqq_baseToolBar_gwg() {
if (qq_baseToolBar_gwg == null) {
qq_baseToolBar_gwg = CompoundFieldFactory.newGridField("baseToolBar_gwg", false);
setqq_baseToolBar_gwgProperties();
qq_baseToolBar_gwg.setMinimumSize(new Dimension(0, 0));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseToolBar_gwg.add( getqq_baseToolBarButtons_gwg(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseToolBar_gwg.add( getqq_TextGraphic36(), qq_gbc1 );
}
return qq_baseToolBar_gwg;
}
public void setqq_baseToolBar_gwg(GridField value) {
GridField oldValue = qq_baseToolBar_gwg;
qq_baseToolBar_gwg = value;
this.qq_Listeners.firePropertyChange("qq_baseToolBar_gwg", oldValue, value);
}
/**
* qq_baseTop_gwg: transformed from: qqds_GridField
* TagId=27
* isInherited=FALSE
* In forte this was a 1x3 grid field.
* There are no cell margins set
* The width policy is set to Parent, and the height policy is set to Parent.
*/
protected void setqq_baseTop_gwgProperties() {
qq_baseTop_gwg.setCellGravity(Constants.CG_CENTER);
qq_baseTop_gwg.setIgnoreInvisibleChildren(true);
qq_baseTop_gwg.setCollapsed(true);
qq_baseTop_gwg.setHeightPolicy(Constants.SP_TO_PARENT);
qq_baseTop_gwg.setWidthPolicy(Constants.SP_TO_PARENT);
qq_baseTop_gwg.setBackground(null);
qq_baseTop_gwg.setLocation(4, 2);
}
public GridField getqq_baseTop_gwg() {
if (qq_baseTop_gwg == null) {
qq_baseTop_gwg = CompoundFieldFactory.newGridField("baseTop_gwg", false);
setqq_baseTop_gwgProperties();
qq_baseTop_gwg.setMinimumSize(new Dimension(0, 0));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc.fill = GridBagConstraints.BOTH; // Size to parent - original: H & W = SP_TO_PARENT
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseTop_gwg.add( getqq_baseToolBar_gwg(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 0; // Column 1
qq_gbc1.gridy = 1; // Row 2
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 1;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc1.fill = GridBagConstraints.BOTH; // Size to parent - original: H & W = SP_TO_PARENT
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseTop_gwg.add( getqq_baseData_gwg(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 2; // Row 3
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc2.fill = GridBagConstraints.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc2.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_baseTop_gwg.add( getqq_baseStatus_gwg(), qq_gbc2 );
}
return qq_baseTop_gwg;
}
public void setqq_baseTop_gwg(GridField value) {
GridField oldValue = qq_baseTop_gwg;
qq_baseTop_gwg = value;
this.qq_Listeners.firePropertyChange("qq_baseTop_gwg", oldValue, value);
}
/**
* Form: transformed from: qqds_Panel
* TagId=1
* isInherited=FALSE
*/
protected void setFormProperties() {
Form.setOpaque( true );
}
public JPanel getForm() {
if (Form == null) {
Form = CompoundFieldFactory.newForm();
this.setFormProperties();
Form.add( getqq_baseTop_gwg() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "Main" );
this.setTitle( "User Manager" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
this.setJMenuBar( getqq_MenuBar() );
if (this.getContentPane() != this.getForm()) {
this.setContentPane(getForm());
}
this.qq_setupWindowUsage();
this.setResizable( true );
this.setAlwaysOnTop(false);
UserWindow.setIconizeEnabled(this, true);
UserWindow.setMaximizeEnabled(this, true);
WindowManager.addWindowListener(this);
this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
this.setUsage(DisplayProject.Constants.WU_UPDATE);
UIutils.processGUIActions();
this.pack();
this.setInitialX(0);
this.setInitialY(0);
this.setInitialPositionPolicy(Constants.PP_SYSTEMDEFAULT);
}
}
// ----------------
// Window usage
//-----------------
protected WindowUsageMap usage = new WindowUsageMap();
public int getUsage() {
return this.usage.getUsage();
}
public WindowUsageMap getUsageMap() {
return this.usage;
}
/**
* Sets the window usage
*
* The Usage property sets the state for all a window�s child widgets at once, providing collective widget state changes on a predefined basis. A widget�s state determines how the widget reacts to mouse actions and how it displays itself. A window�s Usage property provides a convenient way to control the states of a group of widgets in the context of their parent window. With the Usage attribute, you can synchronize widget states to conform to a pattern you establish for the window.
* The Usage attribute accepts the following values:
* <li>Constants.WU_EDIT Edit usage: widgets themselves are editable, but not underlying data.</li>
* <li>Constants.WU_QUERY Query only usage: widget data is editable, but not widgets themselves.</li>
* <li>Constants.WU_UPDATE Update usage: mouse actions and keyboard input accepted. Widgets themselves are changeable. This is the default.</li>
* <li>Constants.WU_USER1 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER2 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER3 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_VIEW View-only usage: no keyboard input is accepted. Widget posts Click events for mouse clicks.</li>
*/
public void setUsage(int usage) {
this.usage.setUsage(usage);
}
public void qq_setupWindowUsage() {
this.usage = new WindowUsageMap();
this.usage.add(getqq_print_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_printSetup_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_exit_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_FileMenu_n(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_clear_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_EditMenu_n(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_help_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator1(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_about_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_HelpMenu_n(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_newUser_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_deleteUser_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_property_nc(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_popup_n(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_baseTop_gwg(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_baseData_gwg(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_userRole_wdl(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_user_wdl(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_baseStatus_gwg(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_statusLine_wed(), Constants.FS_INACTIVE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_statusUserID_wed(), Constants.FS_INACTIVE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_statusTime_wed(), Constants.FS_INACTIVE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_baseToolBar_gwg(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_TextGraphic36(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_baseToolBarButtons_gwg(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_clear_wcp(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_exit_wcp(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main( String[] args ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Main main_start = new Main();
main_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class Main
// c Pass 2 Conversion Time: 327 milliseconds