[ 1730452 ] Autocompletion on comboboxes
This commit is contained in:
parent
459f990d65
commit
acd88e6e6e
|
@ -61,6 +61,8 @@ public abstract class Lookup extends AbstractListModel
|
||||||
/** Window No */
|
/** Window No */
|
||||||
private int m_WindowNo;
|
private int m_WindowNo;
|
||||||
|
|
||||||
|
private boolean m_mandatory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Display Type
|
* Get Display Type
|
||||||
* @return display type
|
* @return display type
|
||||||
|
@ -287,6 +289,8 @@ public abstract class Lookup extends AbstractListModel
|
||||||
else
|
else
|
||||||
log.fine(getColumnName() + ": #" + p_data.size() + " - ms="
|
log.fine(getColumnName() + ": #" + p_data.size() + " - ms="
|
||||||
+ String.valueOf(System.currentTimeMillis()-startTime));
|
+ String.valueOf(System.currentTimeMillis()-startTime));
|
||||||
|
|
||||||
|
|
||||||
} // fillComboBox
|
} // fillComboBox
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -454,4 +458,14 @@ public abstract class Lookup extends AbstractListModel
|
||||||
{
|
{
|
||||||
} // loadComplete
|
} // loadComplete
|
||||||
|
|
||||||
|
public void setMandatory(boolean flag)
|
||||||
|
{
|
||||||
|
m_mandatory = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isMandatory()
|
||||||
|
{
|
||||||
|
return m_mandatory;
|
||||||
|
}
|
||||||
|
|
||||||
} // Lookup
|
} // Lookup
|
||||||
|
|
|
@ -198,8 +198,8 @@ public final class MLookup extends Lookup implements Serializable
|
||||||
&& !m_info.IsParent
|
&& !m_info.IsParent
|
||||||
&& m_info.DisplayType != DisplayType.Search)
|
&& m_info.DisplayType != DisplayType.Search)
|
||||||
{
|
{
|
||||||
m_loader = new MLoader();
|
fillComboBox(isMandatory(), true, true, false);
|
||||||
m_loader.run(); // sync!
|
loadComplete();
|
||||||
retValue = (NamePair)m_lookup.get(key);
|
retValue = (NamePair)m_lookup.get(key);
|
||||||
if (retValue != null)
|
if (retValue != null)
|
||||||
return retValue;
|
return retValue;
|
||||||
|
|
Loading…
Reference in New Issue