当前位置: 首页>>代码示例>>Java>>正文


Java Env.clearWinContext方法代码示例

本文整理汇总了Java中org.compiere.util.Env.clearWinContext方法的典型用法代码示例。如果您正苦于以下问题:Java Env.clearWinContext方法的具体用法?Java Env.clearWinContext怎么用?Java Env.clearWinContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.compiere.util.Env的用法示例。


在下文中一共展示了Env.clearWinContext方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public void dispose()
{
	final ProcessPanel panel = this.panel;
	if (panel != null)
	{
		panel.dispose();
	}

	super.dispose();

	if (windowNoCreatedHere != null)
	{
		Env.clearWinContext(windowNoCreatedHere);
	}
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:17,代码来源:ProcessFrame.java

示例2: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 * dispose
 */
@Override
public void dispose()
{
	saveSelection();

	// GridController
	if (m_gridController != null)
	{
		m_gridController.dispose();
		m_gridController = null;
	}

	// Model
	m_mTab = null;
	if (m_mWindow != null)
	{
		m_mWindow.dispose();
		m_mWindow = null;
	}

	removeAll();
	Env.clearWinContext(m_WindowNo);
	super.dispose();
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:28,代码来源:VAccountDialog.java

示例3: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public void dispose()
{
	removeAll();

	Env.clearWinContext(m_WindowNo);

	//
	// FIXME: we need to set the Info on parent's WindowNo
	//
	// String columnName = DB.getSQLValueString(ITrx.TRXNAME_None, "SELECT ColumnName FROM AD_Column WHERE AD_Column_ID = ?", m_AD_Column_ID);
	// if (Check.isEmpty(columnName, true))
	// {
	// // fallback
	// columnName = "M_AttributeSetInstance_ID";
	// }
	// Env.setContext(getCtx(), m_WindowNo, Env.TAB_INFO, m_columnName, String.valueOf(m_M_AttributeSetInstance_ID));
	// Env.setContext(getCtx(), m_WindowNo, Env.TAB_INFO, "M_Locator_ID", String.valueOf(m_M_Locator_ID));
	//
	super.dispose();
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:22,代码来源:VPAttributeDialog.java

示例4: onContainerDispose

import org.compiere.util.Env; //导入方法依赖的package包/类
public void onContainerDispose()
{
	if (!userPressedOK && isNewlyCreatedC_BP_BankAccount())
	{
		InterfaceWrapperHelper.delete(getC_BP_BankAccountOrNull()); // will not be null if validated by isNewlyCreatedC_BP_BankAccount()
	}
	Env.clearWinContext(windowNo);
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:9,代码来源:ReadPaymentDocumentPanel.java

示例5: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 * 	Dispose
 */
@Override
public void dispose()
{
	Env.clearWinContext(m_WindowNo);
	m_reportEngine = null;
	m_viewPanel = null;
	m_ctx = null;
	super.dispose();
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:13,代码来源:Viewer.java

示例6: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 * Dispose
 */
public void dispose()
{
	// acctSchemas = null;
	_acctSchema = null;
	//
	_whereInfo.clear();
	_whereInfo = null;
	//
	Env.clearWinContext(WindowNo);
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:14,代码来源:AcctViewerData.java

示例7: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 *  Dispose
 */
@Override
public final void dispose()
{
	log.info("");

	//
	// Don't call dispose() again if the form was already disposed or is currently disposing
	// Else, more than one WINDOW_CLOSED event will be triggered, so listeners will be called more than once
	if (_disposing || _disposed)
	{
		return;
	}
	
	_disposing = true;
	try
	{
		// recursive calls
		if (m_panel != null) // [x] close window pressed
		{
			// 05749: removed ( Trace.isCalledFrom("JFrame") && ) from dispose logic
			m_panel.dispose();
		}
	}
	finally
	{
		m_panel = null;
		super.dispose();
		Env.clearWinContext(m_WindowNo);
		
		_disposing = false;
		_disposed = true;
	}
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:37,代码来源:FormFrame.java

示例8: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public void dispose()
{
	super.dispose();

	Env.clearWinContext(getWindowNo());
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:8,代码来源:EMailDialog.java

示例9: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public void dispose()
{
	super.dispose();

	if (disposed)
	{
		// NOTE: for some reason this method is called twice on login, so we introduced disposed flag to prevent running the code twice
		return;
	}

	Env.clearWinContext(getCtx(), m_WindowNo);
	disposed = true;
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:15,代码来源:ALogin.java

示例10: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 *	dispose
 */
@Override
public void dispose()
{
	removeAll();
	Env.clearWinContext(m_WindowNo);
	//
	Env.setContext(Env.getCtx(), Env.WINDOW_INFO, Env.TAB_INFO, "M_AttributeSetInstance_ID", 
		String.valueOf(m_M_AttributeSetInstance_ID));
	Env.setContext(Env.getCtx(), Env.WINDOW_INFO, Env.TAB_INFO, "M_Locator_ID", 
		String.valueOf(m_M_Locator_ID));
	//
	super.dispose();
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:17,代码来源:VPAttributeSerNoDialog.java

示例11: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public void dispose()
{
	super.dispose();
	Env.clearWinContext(windowNo);
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:7,代码来源:SelectPaySelectionDialog.java

示例12: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 * Dispose
 */
public void dispose()
{
	// ignore changes
	m_disposing = true;
	//
	if (m_curAPanelTab != null)
	{
		m_curAPanelTab.unregisterPanel();
		m_curAPanelTab = null;
	}
	// close panels
	if (tabPanel != null)
	{
		tabPanel.dispose(this);
		tabPanel = null;
	}

	// All Workbenches
	if (m_mWorkbench != null)
	{
		for (int i = 0; i < m_mWorkbench.getWindowCount(); i++)
		{
			m_curWindowNo = m_mWorkbench.getWindowNo(i);
			log.debug("disposing windowNo={}", m_curWindowNo);
			Env.setAutoCommit(m_ctx, m_curWindowNo, false);
			m_mWorkbench.dispose(i);
			Env.clearWinContext(m_ctx, m_curWindowNo);
		}
		m_mWorkbench.dispose();
		m_mWorkbench = null;
	}
	// MenuBar
	if (menuBar != null)
	{
		menuBar.removeAll();
		menuBar = null;
	}
	// ToolBar
	if (toolBar != null)
	{
		toolBar.removeAll();
		toolBar = null;
		getInputMap(WHEN_IN_FOCUSED_WINDOW).clear();
	}

	// Current grid controller
	// mainly, it shall be already disposed, but we do this for included tab case where tabPanels is null.
	if (m_curGC != null)
	{
		m_curGC.removeDataStatusListener(this);
		m_curGC.dispose();
		m_curGC = null;
	}

	// Prepare GC
	this.removeAll();

	Services.get(IProcessEventSupport.class).removeListener(this); // metas: remove this instance a a listener
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:63,代码来源:APanel.java

示例13: dispose

import org.compiere.util.Env; //导入方法依赖的package包/类
/**
 * Dispose and save Selection
 *
 * @param ok OK pressed
 */
public final void dispose(final boolean ok)
{
	if (disposing || disposed)
	{
		// Info window is currently dispossing or it was already disposed
		return;
	}

	disposing = true;
	try
	{
		log.info("OK=" + ok);
		m_ok = ok;

		// End Worker
		stopWorker();

		//
		// Save Selection (only if user did not press Cancel)
		if (ok)
		{
			saveSelection();
		}

		if (_window != null)
		{
			_window.removeAll();
			_window.dispose();
		}
		_window = null;

		// 05203: In case the windowNo was created locally, we need cleanup the context for it and to remove the window
		if (localWindowNo)
		{
			Env.clearWinContext(getCtx(), p_WindowNo);
		}
	}
	finally
	{
		disposing = false;
		disposed = true;
	}
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:49,代码来源:Info.java


注:本文中的org.compiere.util.Env.clearWinContext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。