Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.WindowUsageMap


     * @return
     */
    public static int getForUsage(JComponent comp, int usage) {
      // TF:08/01/2010:DET-95:Added support for usage maps off menu elements that may not be able to discover their
      // frames properly, such as invisible popup menus.
      WindowUsageMap map = WindowUsageMap.get(comp);
      if (map != null) {
        return map.getStateForUsage(comp, usage);
      }

      //PM:12/5/08 added support for nested windows
      // JFrame win = (JFrame)UIutils.getWindowForComponent((JComponent)comp).getParent();
     
View Full Code Here


    public static int getForUsage(MenuElement comp, int usage) {
      // TF:08/01/2010:DET-95:Added support for usage maps off menu elements that may not be able to discover their
      // frames properly, such as invisible popup menus.
      JComponent component = (JComponent)comp.getComponent();
      WindowUsageMap map = WindowUsageMap.get(component);
      if (map != null) {
        return map.getStateForUsage(component, usage);
      }
     
      //PM:12/5/08 added support for nested windows
      // JFrame win = (JFrame)UIutils.getWindowForComponent((JComponent)comp).getParent();
View Full Code Here

     *
     * @param oldWindow
     * @param newWindow
     */
    public static void copyUsageMap(JFrame oldWindow, JFrame newWindow) {//PM:13/01/2009:made public
      WindowUsageMap usageOld = WindowUsage.getWindowUsageMap(oldWindow);
      WindowUsageMap usageNew = WindowUsage.getWindowUsageMap(newWindow);
      usageNew.addAll(usageOld);
    }
View Full Code Here

     */
    public void setUsage(int usage) {
        this.qq_usage.setUsage(usage);
    }
    public void qq_setupWindowUsage() {
        this.qq_usage = new WindowUsageMap();
        this.qq_usage.add(getqq_StatusLine(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_GridField44(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_GridField45(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_GridField46(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_TraderNameLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
View Full Code Here

     */
    public void setUsage(int usage) {
        this.qq_usage.setUsage(usage);
    }
    public void qq_setupWindowUsage() {
        this.qq_usage = new WindowUsageMap();
        this.qq_usage.add(getqq_OutrGrid(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_CustomerGrid(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_CustomerGrid_CustomerDetailGrdi(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.qq_usage.add(getqq_NameLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
        this.qq_usage.add(getqq_CustomerGrid_CustomerName(), Constants.FS_VIEWONLY, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
View Full Code Here

     */
    public void setUsage(int usage) {
        this.qq_usage.setUsage(usage);
    }
    public void qq_setupWindowUsage() {
        this.qq_usage = new WindowUsageMap();
        this.qq_usage.add(getqq_fileExit(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.qq_usage.add(getqq_file(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.qq_usage.add(getqq_AsCustomerMC(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.qq_usage.add(getqq_AsTraderMC(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.qq_usage.add(getqq_LogonMenu(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
View Full Code Here

     * indicies are 1-based. If the collapsed attribute is true,
     * this method does nothing. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void insertColumn(final int position) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".insertColumn(" + position + ")";
            }
            @Override
View Full Code Here

     * Add a row into the model. If the collapsed attribute is true,
     * this method does nothing. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void insertRow(final int position) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".insertRow(" + position + ")";
            }
            @Override
View Full Code Here

     * return the weight of the column in the grid field. This method is thread-safe.
     * @param row
     * @return
     */
    public int getColumnJustifyWeight(int column) {
        PendingAction action = ActionMgr.getAction(new ColumnJustifyWeightFilter(column));
        if (action != null) {
            return ((ColumnJustifyWeight)action).weight;
        }
        Integer val = layout.columnWeights.get(column);
        return val == null ? 0 : val.intValue();
View Full Code Here

     * return the weight of the row in the grid field. This method is thread-safe.
     * @param row
     * @return
     */
    public int getRowJustifyWeight(int row) {
        PendingAction action = ActionMgr.getAction(new RowJustifyWeightFilter(row));
        if (action != null) {
            return ((RowJustifyWeight)action).weight;
        }
        Integer val = layout.rowWeights.get(row);
        return (val == null) ? 0 : val.intValue();
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.displayproject.WindowUsageMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.