use of com.servoy.j2db.FormManager 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.FormManager in project servoy-client by Servoy.
the class WebRuntimeWindowManager method getOrderedContainers.
@Override
protected List<String> getOrderedContainers() {
FormManager fm = ((FormManager) application.getFormManager());
List<String> all = fm.getCreatedMainContainerKeys();
int size = all.size();
ArrayList<String> al = new ArrayList<String>(size);
HashSet<String> visited = new HashSet<String>();
ArrayList<String> result = new ArrayList<String>(size);
for (String key : all) {
((MainPage) fm.getMainContainer(key)).getMainPageReversedCloseSeq(al, visited);
}
for (int i = al.size() - 1; i >= 0; i--) {
result.add(al.get(i));
}
return result;
}
use of com.servoy.j2db.FormManager 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.FormManager 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.FormManager 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);
}
}
Aggregations