Package com.jgoodies.binding

Examples of com.jgoodies.binding.PresentationModel


   * @param aOrderCost
   */
  public OrderCostView(OrderCostViewHandler handler, OrderCost aOrderCost) {
    viewHandler = handler;
    if (aOrderCost != null) {
      presentationModel = new PresentationModel(new OrderCostModel(
          aOrderCost));
    } else {
      presentationModel = new PresentationModel(new OrderCostModel(
          new OrderCost()));
    }
  }
View Full Code Here


   *
   */
  public ReportConstraintViewHandler() {
    transportReportSetting = new TransportReportSetting();

    presentationModel = new PresentationModel(transportReportSetting);
   
  }
View Full Code Here

  /**
   * @param useCustomerSearch
   */
  public SearchOrderView(boolean useCustomerSearch) {
    useCustomer = useCustomerSearch;
    presentationModel = new PresentationModel(new SearchCriteria());
  }
View Full Code Here

     */
    public SearchAttributeViewHandler() {
        ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
                .getBean("articleTypeManager");
        querySettings = new QuerySettings();
        queryPresentationModel = new PresentationModel(querySettings);

        List<ArticleType> articles = articleTypeManager.findAllTopLevel();
        if (articles != null) {
            lazyLoadArticles(articles);
        } else {
View Full Code Here

  public TransportCostViewHandler(final Login aLogin,
      TransportCostBasisManager transportCostBasisManager) {
    super("Transportkostnad", transportCostBasisManager, aLogin
        .getUserType(), true);
    period = new Periode();
    presentationModelPeriod = new PresentationModel(period);
    presentationModelTotalInfo = new PresentationModel(new TotalInfo());
    orderCostList = new ArrayListModel();
    orderCostSelectionList = new SelectionInList((ListModel) orderCostList);
  }
View Full Code Here

  @Inject
  public ConfirmReportViewHandler(final OrderViewHandler aOrderViewHandler,
      ManagerRepository managerRepository) {
    this.managerRepository = managerRepository;
    presentationModel = new PresentationModel(new ConfirmReport());
    reportSelectionList = new SelectionInList((ListModel) presentationModel
        .getValue(ConfirmReport.PROPERTY_REPORT_LIST));
    orderViewHandler = aOrderViewHandler;

  }
View Full Code Here

    public PackInitialsViewHandler(String initials,BigDecimal colliHeight,ProductAreaGroup productAreaGroup,ApplicationUserManager applicationUserManager) {
        String[] initialsArray = null;
        if (initials != null) {
            initialsArray = initials.split("/");
        }
        presentationModel = new PresentationModel(new Initials(initialsArray,colliHeight));
       
        packInitials = applicationUserManager.findAllPackers(productAreaGroup);
    }
View Full Code Here

import com.jgoodies.binding.adapter.BasicComponentFactory;

public class FileViewHandler implements Closeable{
    private PresentationModel presentationModel;
    public FileViewHandler(String fileContent){
        presentationModel=new PresentationModel(new FileModel(fileContent));
    }
View Full Code Here

  @SuppressWarnings("unchecked")
  public void initColli(Colli aColli) {
    ((ColliManager) overviewManager).lazyLoad(aColli,
        new LazyLoadEnum[][] { { LazyLoadEnum.ORDER_LINES,
            LazyLoadEnum.NONE } });
    presentationModel = new PresentationModel(new ColliModel(aColli));
    orderLineList = new ArrayListModel((List<OrderLine>) presentationModel
        .getValue(ColliModel.PROPERTY_ORDER_LINES));
    orderLineSelectionList = new SelectionInList((ListModel) orderLineList);
    objectList.add(aColli);
  }
View Full Code Here

   * @param excelReportType
   */
  public ExcelReportViewHandlerDeviation(String aWindowTitle,
      boolean useFromAndTo, ExcelReportEnum excelReportType) {
    super(excelReportType, new Dimension(320, 130));
    presentationModel = new PresentationModel(
        new ExcelReportSettingDeviation(excelReportType));

    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
View Full Code Here

TOP

Related Classes of com.jgoodies.binding.PresentationModel

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.