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();
}
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();
}
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();
}
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();
}
Aggregations