Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.UsageException


                  ps.setBoolean(paramIndex, ((BooleanData)inValue).getValue());
                }
                }
            }
            else {
                UsageException e = new UsageException("setParameterValue could not handle a " + inValue.getClass().getName() + ". Please determine how to map this type to the database.");
                logger.error(e.getMessage(), e);
                throw e;
            }
        }
        else // inValue != null
            if (inValue instanceof SqlTypeValue) {
View Full Code Here


    public static TextGraphic drawMultiLineText(JPanel form, TextData text,
            int startX, int startY, Font font, int horizAlign, int penColor,
            int width, int height, int visibleColumns, int visibleLines,
            boolean hasWordWrap, int lineSpacing) {
        if (height != -1 && visibleLines != -1) {
            UsageException errorVar = new UsageException("You cannot specify both Height and VisibleLines");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
        if (width != -1 && visibleColumns != -1) {
            UsageException errorVar = new UsageException("You cannot specify both Width and VisibleColumns");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
        setForm(form);
        TextGraphic tg = GraphicFactory.newTextGraphic(text);
View Full Code Here

     */
    public static TextGraphic drawSingleLineText(JPanel form, TextData text,
            int startX, int startY, Font font, int horizAlign, int vertAlign,
            int penColor, int width, int visibleColumns) {
        if (width != -1 && visibleColumns != -1) {
            UsageException errorVar = new UsageException("You cannot specify both Width and VisibleColumns");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
        setForm(form);
        TextGraphic tg = GraphicFactory.newTextGraphic(text);
View Full Code Here

            int oldValue = cellGravity;
            cellGravity = pCellGravity;
            firePropertyChange("cellGravity", oldValue, cellGravity);
            break;
        default:
            UsageException errorVar = new UsageException("Cell gravity passed invalid value of " + pCellGravity);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

            case Constants.IP_EXPAND_ROWS:
                // These doesn't seem to be supported in Forte, so do nothing
                break;

            default:
                UsageException errorVar = new UsageException("insert policy of " + pInsertPolicy + " is not supported");
                ErrorMgr.addError(errorVar);
                throw errorVar;
        }
    }
View Full Code Here

            int oldValue = horzDividerStyle;
            horzDividerStyle = pHorzDivideStyle;
            firePropertyChange("horzDividerStyle", oldValue, pHorzDivideStyle);
            break;
        default:
            UsageException errorVar = new UsageException("Invalid parameter "+pHorzDivideStyle);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

            int oldValue = vertDividerStyle;
            vertDividerStyle = pVertDivideStyle;
            firePropertyChange("vertDividerStyle", oldValue, pVertDivideStyle);
            break;
        default:
            UsageException errorVar = new UsageException("Invalid parameter " + pVertDivideStyle);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

                int oldValue = getHeightPolicy();
                GridField.getConstraints(this).setHeightPolicy(pHeightPolicy);
                firePropertyChange("heightPolicy", oldValue, pHeightPolicy);
                break;
            default:
                UsageException errorVar = new UsageException("The value " + pHeightPolicy + " is not allowed for a height policy");
                ErrorMgr.addError(errorVar);
                throw errorVar;
        }
    }
View Full Code Here

                this.validate();
                this.invalidate();
                firePropertyChange("widthPolicy", oldValue, pWidthPolicy);
                break;
            default:
                UsageException errorVar = new UsageException("The value " + pWidthPolicy + " is not allowed for a width policy");
                ErrorMgr.addError(errorVar);
                throw errorVar;
        }
    }
View Full Code Here

           */
          try {
          PrintUtilities.getPrinterJob().setPrintService(service);
            found = true;
        } catch (PrinterException e) {
          UsageException ex = new UsageException(MESSAGE + service.getName(), e);
          ErrorMgr.addError(ex);
          throw ex;
        }
          break;
        }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.UsageException

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.