Search in sources :

Example 11 with IFormManager

use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.

the class CmdInvertRecords 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.invertRecords.status.text"));
        IFormManager fm = application.getFormManager();
        IForm dm = fm.getCurrentForm();
        dm.invertRecords();
    } finally {
        application.releaseGUI();
    }
    return null;
}
Also used : IFormManager(com.servoy.j2db.IFormManager) IForm(com.servoy.j2db.IForm)

Example 12 with IFormManager

use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.

the class CmdNewRecord 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.newRecord.status.text"));
        IFormManager fm = application.getFormManager();
        IForm dm = fm.getCurrentForm();
        if (dm != null) {
            dm.newRecord();
        }
    } finally {
        application.releaseGUI();
    }
    return null;
}
Also used : IFormManager(com.servoy.j2db.IFormManager) IForm(com.servoy.j2db.IForm)

Example 13 with IFormManager

use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.

the class CmdNextRecord method doIt.

@Override
public UndoableEdit doIt(java.util.EventObject ae) {
    IFormManager fm = application.getFormManager();
    final FormController fp = (FormController) fm.getCurrentForm();
    fp.selectNextRecord();
    return null;
}
Also used : FormController(com.servoy.j2db.FormController) IFormManager(com.servoy.j2db.IFormManager)

Example 14 with IFormManager

use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.

the class CmdOmitRecord 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.omitRecord.status.text"));
        IFormManager fm = application.getFormManager();
        IForm dm = fm.getCurrentForm();
        dm.omitRecord();
    } finally {
        application.releaseGUI();
    }
    return null;
}
Also used : IFormManager(com.servoy.j2db.IFormManager) IForm(com.servoy.j2db.IForm)

Example 15 with IFormManager

use of com.servoy.j2db.IFormManager in project servoy-client by Servoy.

the class CmdDeleteAllRecord 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.deleteAll.status.text"));
        IFormManager fm = application.getFormManager();
        IForm dm = fm.getCurrentForm();
        dm.deleteAllRecords();
    } finally {
        application.releaseGUI();
    }
    return null;
}
Also used : IFormManager(com.servoy.j2db.IFormManager) IForm(com.servoy.j2db.IForm)

Aggregations

IFormManager (com.servoy.j2db.IFormManager)17 IForm (com.servoy.j2db.IForm)14 FormManager (com.servoy.j2db.FormManager)3 FormController (com.servoy.j2db.FormController)2 GraphicsDevice (java.awt.GraphicsDevice)1