use of com.servoy.j2db.IMainContainer in project servoy-client by Servoy.
the class ScrollResponseHeaderContainer method setColumnThatRequestsFocus.
/**
* Requests focus for the cell in the web cell view corresponding to the selected record and to the given column identifier component.
*
* @param columnIdentifierComponent the Component that identifies a column for java script.
*/
public void setColumnThatRequestsFocus(final Component columnIdentifierComponent) {
focusRequestingColIdentComponent = null;
if (currentData == null)
return;
Component cell = getCellToFocus(columnIdentifierComponent);
if (cell != null) {
IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
if (currentContainer instanceof MainPage) {
((MainPage) currentContainer).componentToFocus(cell);
} else {
// $NON-NLS-1$
Debug.trace("focus couldnt be set on component " + cell);
}
} else {
focusRequestingColIdentComponent = columnIdentifierComponent;
}
}
use of com.servoy.j2db.IMainContainer in project servoy-client by Servoy.
the class WebDataRadioChoice method fireOnRender.
public void fireOnRender(boolean force) {
if (scriptable != null) {
boolean isFocused = false;
IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
if (currentContainer instanceof MainPage) {
isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
}
if (force)
scriptable.getRenderEventExecutor().setRenderStateChanged();
scriptable.getRenderEventExecutor().fireOnRender(isFocused);
}
}
use of com.servoy.j2db.IMainContainer in project servoy-client by Servoy.
the class WebDataField method fireOnRender.
public void fireOnRender(boolean force) {
if (!isIgnoreOnRender && scriptable != null) {
boolean isFocused = false;
IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
if (currentContainer instanceof MainPage) {
isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
}
if (force)
scriptable.getRenderEventExecutor().setRenderStateChanged();
scriptable.getRenderEventExecutor().fireOnRender(isFocused);
}
}
use of com.servoy.j2db.IMainContainer in project servoy-client by Servoy.
the class WebDataHtmlArea method fireOnRender.
public void fireOnRender(boolean force) {
if (scriptable != null) {
boolean isFocused = false;
IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
if (currentContainer instanceof MainPage) {
isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
}
if (force)
scriptable.getRenderEventExecutor().setRenderStateChanged();
scriptable.getRenderEventExecutor().fireOnRender(isFocused);
}
}
use of com.servoy.j2db.IMainContainer in project servoy-client by Servoy.
the class WebDataListBox method fireOnRender.
public void fireOnRender(boolean force) {
if (scriptable != null) {
boolean isFocused = false;
IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
if (currentContainer instanceof MainPage) {
isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
}
if (force)
scriptable.getRenderEventExecutor().setRenderStateChanged();
scriptable.getRenderEventExecutor().fireOnRender(isFocused);
}
}
Aggregations