Search in sources :

Example 11 with AWindow

use of org.compiere.apps.AWindow in project adempiere by adempiere.

the class VTrxMaterial method zoom.

//  refresh
/**
	 *  Zoom
	 */
public void zoom() {
    super.zoom();
    //  Zoom
    panel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    AWindow frame = new AWindow();
    if (!frame.initWindow(AD_Window_ID, query)) {
        panel.setCursor(Cursor.getDefaultCursor());
        return;
    }
    AEnv.addToWindowManager(frame);
    AEnv.showCenterScreen(frame);
    frame = null;
    panel.setCursor(Cursor.getDefaultCursor());
}
Also used : AWindow(org.compiere.apps.AWindow)

Example 12 with AWindow

use of org.compiere.apps.AWindow in project adempiere by adempiere.

the class ZoomMenuAction method zoom.

private void zoom() {
    String tablename = tableName;
    int tableid = tableID;
    MQuery query = new MQuery();
    query.setTableName(tablename);
    AWindow window = new AWindow();
    if (window.initWindow(tableid, query)) {
        AEnv.showCenterScreen(window);
    }
    window = null;
}
Also used : AWindow(org.compiere.apps.AWindow) MQuery(org.compiere.model.MQuery)

Aggregations

AWindow (org.compiere.apps.AWindow)12 MQuery (org.compiere.model.MQuery)6 SQLException (java.sql.SQLException)3 PropertyVetoException (java.beans.PropertyVetoException)2 Cursor (java.awt.Cursor)1 Point (java.awt.Point)1 PreparedStatement (java.sql.PreparedStatement)1 ResultSet (java.sql.ResultSet)1 AdempiereException (org.adempiere.exceptions.AdempiereException)1 DBException (org.adempiere.exceptions.DBException)1 ALayoutConstraint (org.compiere.apps.ALayoutConstraint)1 AWindowListener (org.compiere.apps.AWindowListener)1 FormFrame (org.compiere.apps.form.FormFrame)1 MLookup (org.compiere.model.MLookup)1 CFrame (org.compiere.swing.CFrame)1 KeyNamePair (org.compiere.util.KeyNamePair)1 ValueNamePair (org.compiere.util.ValueNamePair)1 MWFNode (org.compiere.wf.MWFNode)1