本文整理汇总了Java中org.compiere.util.Env.WINDOW_None方法的典型用法代码示例。如果您正苦于以下问题:Java Env.WINDOW_None方法的具体用法?Java Env.WINDOW_None怎么用?Java Env.WINDOW_None使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.compiere.util.Env
的用法示例。
在下文中一共展示了Env.WINDOW_None方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ProcessFrame
import org.compiere.util.Env; //导入方法依赖的package包/类
ProcessFrame(final ProcessDialogBuilder builder)
{
super();
if (builder.getWindowNo() <= 0 || builder.getWindowNo() == Env.WINDOW_None)
{
windowNoCreatedHere = Env.createWindowNo(this);
builder.setWindowAndTabNo(windowNoCreatedHere);
}
else
{
windowNoCreatedHere = null;
}
panel = builder.buildPanel();
if (panel.isDisposed())
{
dispose();
return;
}
panel.installTo(this);
}
示例2: getWindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
*
* @return window number or {@link Env#WINDOW_None}
*/
private int getWindowNo()
{
final Lookup lookup = getLookup();
if (lookup != null)
{
return lookup.getWindowNo();
}
if (m_mField != null)
{
return m_mField.getWindowNo();
}
return Env.WINDOW_None;
}
示例3: getParentFrame
import org.compiere.util.Env; //导入方法依赖的package包/类
private final JFrame getParentFrame()
{
final int parentWindowNo = getParentWindowNo();
// No windowNo => use main window
if (parentWindowNo < 0 || parentWindowNo == Env.WINDOW_None)
{
return Env.getWindow(Env.WINDOW_MAIN);
}
// Use particular window
final JFrame frame = Env.getWindow(parentWindowNo);
if (frame != null)
{
return frame;
}
// Fallback to main window (shall not happen)
return Env.getWindow(Env.WINDOW_MAIN);
}
示例4: getWindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
public static int getWindowNo(final Object model)
{
final Document document = getDocument(model);
if (document == null)
{
return Env.WINDOW_None;
}
return document.getWindowNo();
}
示例5: getLookup_TableDirEmbed
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
* Get embedded SQL for TableDir Lookup
*
* @param languageInfo report language
* @param ColumnName column name
* @param BaseTable base table
* @param BaseColumn base column
* @return SELECT Column FROM TableName WHERE BaseTable.BaseColumn=TableName.ColumnName
*/
static public String getLookup_TableDirEmbed(final LanguageInfo languageInfo, final String ColumnName, final String BaseTable, final String BaseColumn)
{
final int windowNo = Env.WINDOW_None; // NOTE: for TableDir WindowNo, is not important
final MLookupInfo lookupInfo = getLookup_TableDir(windowNo, ColumnName);
if (lookupInfo == null)
{
return "";
}
final String sql = getLookupEmbed(lookupInfo, languageInfo, BaseTable, BaseColumn);
return sql;
}
示例6: getLookupInfo
import org.compiere.util.Env; //导入方法依赖的package包/类
public MLookupInfo getLookupInfo(final int windowNo)
{
//
// List, Table, TableDir
if(isLookup())
{
if(windowNo == Env.WINDOW_None)
{
if(_lookupInfoForWindowNone == null)
{
final MLookupInfo lookupInfoCached = MLookupFactory.getLookupInfo(
Env.WINDOW_None
, DisplayType
, TableName
, ColumnName
, AD_Reference_Value_ID
, IsParent
, AD_Val_Rule_ID);
_lookupInfoForWindowNone = Optional.ofNullable(lookupInfoCached);
}
return _lookupInfoForWindowNone.orElse(null);
}
final MLookupInfo lookupInfo = MLookupFactory.getLookupInfo(
windowNo
, DisplayType
, TableName
, ColumnName
, AD_Reference_Value_ID
, IsParent
, AD_Val_Rule_ID);
return lookupInfo;
}
else
{
return null;
}
}
示例7: getWindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
public static int getWindowNo(final Object model)
{
final GridTab gridTab = getGridTab(model);
if (gridTab == null)
{
return Env.WINDOW_None;
}
return gridTab.getWindowNo();
}
示例8: getWindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
private int getWindowNo()
{
if (_windowNo != null)
{
return _windowNo;
}
return Env.WINDOW_None;
}
示例9: getWindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
default int getWindowNo()
{
return Env.WINDOW_None;
}
示例10: getWindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public int getWindowNo()
{
return Env.WINDOW_None;
}
示例11: get_WindowNo
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
*
* @return WindowNo in case is an user manual action, or {@link Env#WINDOW_None} otherwise
*/
public final int get_WindowNo()
{
return m_isManualUserAction ? m_windowNo : Env.WINDOW_None;
}