use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.
the class CmdPreviewMode method doIt.
/*
* _____________________________________________________________ The methods below override methods from superclass AbstractCmd
*/
@Override
public UndoableEdit doIt(java.util.EventObject ae) {
IFormManager fm = application.getFormManager();
// showPreview(fm.getCurrentMainShowingForm());
IForm form = fm.getCurrentForm();
if (form != null)
form.printPreview();
return null;
}
use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.
the class CmdReCopyValues method doIt.
@Override
public UndoableEdit doIt(java.util.EventObject ae) {
IFormManager fm = application.getFormManager();
IForm dm = fm.getCurrentForm();
dm.reLookupValues();
return null;
}
use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.
the class CmdReduceFind method doIt.
/*
* _____________________________________________________________ The methods below override methods from superclass AbstractCmd
*/
@Override
public UndoableEdit doIt(java.util.EventObject ae) {
IFormManager fm = application.getFormManager();
IForm cf = fm.getCurrentForm();
if (cf != null && !cf.isInFindMode()) {
cf = null;
}
if (cf == null) {
IForm[] rfif = ((FormManager) fm).getVisibleRootFormsInFind();
cf = rfif.length > 0 ? rfif[0] : null;
// rfif.length > 1 would be a strange case where more than one visible form relation hierarchy is in find mode;
// we choose the first one - I or should we use all of them?! this is an ansupported case anyway
}
if (cf != null) {
cf.performFind(false, true, true);
}
return null;
}
use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.
the class CmdShowOmitRecords method doIt.
/*
* _____________________________________________________________ The methods below override methods from superclass AbstractCmd
*/
@Override
public UndoableEdit doIt(java.util.EventObject ae) {
try {
// $NON-NLS-1$
application.blockGUI(application.getI18NMessage("servoy.menuitem.showOmitted.status.text"));
IFormManager fm = application.getFormManager();
IForm dm = fm.getCurrentForm();
dm.showOmittedRecords();
} finally {
application.releaseGUI();
}
return null;
}
use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.
the class CmdSort method doIt.
@Override
public UndoableEdit doIt(java.util.EventObject ae) {
try {
// $NON-NLS-1$
application.blockGUI(application.getI18NMessage("servoy.menuitem.sort.status.text"));
IFormManager fm = application.getFormManager();
IForm dm = fm.getCurrentForm();
dm.showSortDialog();
} catch (Exception ex) {
Debug.error(ex);
} finally {
application.releaseGUI();
}
return null;
}
Aggregations