Exemplo n.º 1
0
  @Override
  protected void initConfig() {
    m_uiFacade = new P_UIFacade();
    Class<? extends IGroupBoxBodyGrid> bodyGridClazz = getConfiguredBodyGrid();
    if (bodyGridClazz != null) {
      IGroupBoxBodyGrid bodyGrid;
      try {
        bodyGrid = bodyGridClazz.newInstance();
        setBodyGrid(bodyGrid);
      } catch (Exception e) {
        SERVICES
            .getService(IExceptionHandlerService.class)
            .handleException(
                new ProcessingException(
                    "error creating instance of class '" + bodyGridClazz.getName() + "'.", e));
      }
    }
    m_customProcessButtonGrid = new GroupBoxProcessButtonGrid(this, true, false);
    m_systemProcessButtonGrid = new GroupBoxProcessButtonGrid(this, false, true);
    super.initConfig();
    categorizeFields();

    setExpandable(getConfiguredExpandable());
    setExpanded(getConfiguredExpanded());
    setBorderVisible(getConfiguredBorderVisible());
    setBorderDecoration(getConfiguredBorderDecoration());
    setGridColumnCountHint(getConfiguredGridColumnCount());
    setBackgroundImageName(getConfiguredBackgroundImageName());
    setBackgroundImageHorizontalAlignment(getConfiguredBackgroundImageHorizontalAlignment());
    setBackgroundImageVerticalAlignment(getConfiguredBackgroundImageVerticalAlignment());
    setScrollable(getConfiguredScrollable());
  }
Exemplo n.º 2
0
 @Override
 protected void initConfig() {
   m_uiFacade = new P_UIFacade();
   m_grid = new TabBoxGrid(this);
   setMarkStrategy(getConfiguredMarkStrategy());
   super.initConfig();
   addPropertyChangeListener(
       PROP_SELECTED_TAB,
       new PropertyChangeListener() {
         @Override
         public void propertyChange(PropertyChangeEvent e) {
           // single observer exec
           try {
             execTabSelected(getSelectedTab());
           } catch (ProcessingException ex) {
             SERVICES.getService(IExceptionHandlerService.class).handleException(ex);
           } catch (Throwable t) {
             SERVICES
                 .getService(IExceptionHandlerService.class)
                 .handleException(new ProcessingException("Unexpected", t));
           }
         }
       });
 }