Search in sources :

Example 1 with EJRWTComboItemRenderer

use of org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer in project rap by entirej.

the class EJRWTUpdateScreenRenderer method open.

@Override
public void open(EJDataRecord recordToUpdate) {
    _itemRegister.resetRegister();
    setupUpdateScreen();
    _itemRegister.register(recordToUpdate);
    Collection<EJManagedItemRendererWrapper> registeredRenderers = _itemRegister.getRegisteredRenderers();
    for (EJManagedItemRendererWrapper wrapper : registeredRenderers) {
        if (wrapper.getUnmanagedRenderer() instanceof EJRWTComboItemRenderer) {
            if (((EJRWTComboItemRenderer) wrapper.getUnmanagedRenderer()).isLovInitialiedOnValueSet())
                wrapper.getUnmanagedRenderer().refreshItemRenderer();
        }
    }
    _updateDialog.centreLocation();
    if (_maximize) {
        _updateDialog.getShell().setMaximized(_maximize);
    }
    _updateDialog.open();
    _updateDialog.activateDialog();
}
Also used : EJManagedItemRendererWrapper(org.entirej.framework.core.renderers.EJManagedItemRendererWrapper) EJRWTComboItemRenderer(org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer)

Example 2 with EJRWTComboItemRenderer

use of org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer in project rap by entirej.

the class EJRWTSingleRecordBlockRenderer method recordSelected.

@Override
public void recordSelected(EJDataRecord record) {
    if (record != null) {
        logger.trace("START recordSelected");
        synchronize();
        _mainItemRegister.register(record);
        Collection<EJManagedItemRendererWrapper> registeredRenderers = _mainItemRegister.getRegisteredRenderers();
        for (EJManagedItemRendererWrapper wrapper : registeredRenderers) {
            if (wrapper.getUnmanagedRenderer() instanceof EJRWTComboItemRenderer) {
                if (((EJRWTComboItemRenderer) wrapper.getUnmanagedRenderer()).isLovInitialiedOnValueSet())
                    wrapper.getUnmanagedRenderer().refreshItemRenderer();
            }
        }
        logger.trace("END recordSelected");
    }
    notifyStatus();
}
Also used : EJManagedItemRendererWrapper(org.entirej.framework.core.renderers.EJManagedItemRendererWrapper) EJRWTComboItemRenderer(org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer)

Example 3 with EJRWTComboItemRenderer

use of org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer in project rap by entirej.

the class EJRWTInsertScreenRenderer method open.

@Override
public void open(EJDataRecord record) {
    _itemRegister.resetRegister();
    setupInsertScreen();
    _itemRegister.register(record);
    Collection<EJManagedItemRendererWrapper> registeredRenderers = _itemRegister.getRegisteredRenderers();
    for (EJManagedItemRendererWrapper wrapper : registeredRenderers) {
        if (wrapper.getUnmanagedRenderer() instanceof EJRWTComboItemRenderer) {
            if (((EJRWTComboItemRenderer) wrapper.getUnmanagedRenderer()).isLovInitialiedOnValueSet())
                wrapper.getUnmanagedRenderer().refreshItemRenderer();
        }
    }
    _insertDialog.centreLocation();
    if (_maximize) {
        _insertDialog.getShell().setMaximized(_maximize);
    }
    _insertDialog.open();
    _insertDialog.activateDialog();
}
Also used : EJManagedItemRendererWrapper(org.entirej.framework.core.renderers.EJManagedItemRendererWrapper) EJRWTComboItemRenderer(org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer)

Example 4 with EJRWTComboItemRenderer

use of org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer in project rap by entirej.

the class EJRWTQueryScreenRenderer method open.

@Override
public void open(EJDataRecord queryRecord) {
    _itemRegister.resetRegister();
    setupQueryScreen();
    _itemRegister.register(queryRecord);
    _itemRegister.initialiseRegisteredRenderers();
    Collection<EJManagedItemRendererWrapper> registeredRenderers = _itemRegister.getRegisteredRenderers();
    for (EJManagedItemRendererWrapper wrapper : registeredRenderers) {
        if (wrapper.getUnmanagedRenderer() instanceof EJRWTComboItemRenderer) {
            if (((EJRWTComboItemRenderer) wrapper.getUnmanagedRenderer()).isLovInitialiedOnValueSet())
                wrapper.getUnmanagedRenderer().refreshItemRenderer();
        }
    }
    _queryDialog.centreLocation();
    if (_maximize) {
        _queryDialog.getShell().setMaximized(_maximize);
    }
    _queryDialog.open();
    _queryDialog.activateDialog();
}
Also used : EJManagedItemRendererWrapper(org.entirej.framework.core.renderers.EJManagedItemRendererWrapper) EJRWTComboItemRenderer(org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer)

Aggregations

EJRWTComboItemRenderer (org.entirej.applicationframework.rwt.renderers.item.EJRWTComboItemRenderer)4 EJManagedItemRendererWrapper (org.entirej.framework.core.renderers.EJManagedItemRendererWrapper)4