IDEMPIERE-2336 : Modify Access Modifiers of Info Classes's properties and Methods.

This commit is contained in:
Deepak Pansheriya 2014-11-25 17:22:56 +05:30
parent 597eb1ce32
commit aebb3fe2b8
3 changed files with 34 additions and 34 deletions

View File

@ -53,32 +53,32 @@ public class InfoProductWindow extends InfoWindow {
*/
private static final long serialVersionUID = -1343685368452976048L;
private Tabbox tabbedPane;
private WListbox warehouseTbl;
private String m_sqlWarehouse;
private WListbox substituteTbl;
private String m_sqlSubstitute;
private WListbox relatedTbl;
private String m_sqlRelated;
protected Tabbox tabbedPane;
protected WListbox warehouseTbl;
protected String m_sqlWarehouse;
protected WListbox substituteTbl;
protected String m_sqlSubstitute;
protected WListbox relatedTbl;
protected String m_sqlRelated;
//Available to Promise Tab
private WListbox m_tableAtp;
protected WListbox m_tableAtp;
// Group atp by warehouse or non
private Checkbox chbShowDetailAtp;
protected Checkbox chbShowDetailAtp;
//IDEMPIERE-337
private WListbox productpriceTbl;
private String m_sqlProductprice;
protected WListbox productpriceTbl;
protected String m_sqlProductprice;
private Textbox fieldDescription;
protected Textbox fieldDescription;
/** ASI */
protected int m_M_AttributeSetInstance_ID;
protected int m_M_AttributeSetInstance_ID;
private Borderlayout contentBorderLayout;
protected Borderlayout contentBorderLayout;
/** Instance Button */
private Button m_PAttributeButton;
protected Button m_PAttributeButton;
protected int m_M_Locator_ID;
@ -369,7 +369,7 @@ public class InfoProductWindow extends InfoWindow {
});
}
private void onPAttributeClick() {
protected void onPAttributeClick() {
Integer productInteger = getSelectedRowKey();
if (productInteger == null) {
m_PAttributeButton.setEnabled(false);
@ -397,7 +397,7 @@ public class InfoProductWindow extends InfoWindow {
});
}
private String getSelectedWarehouseLabel() {
protected String getSelectedWarehouseLabel() {
for(WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("M_Warehouse_ID")) {
Number value = (Number) editor.getValue();
@ -461,7 +461,7 @@ public class InfoProductWindow extends InfoWindow {
* @param M_PriceList_ID price list
* @return M_PriceList_Version_ID price list version
*/
private int findPLV (int M_PriceList_ID)
protected int findPLV (int M_PriceList_ID)
{
Timestamp priceDate = null;
// Sales Order Date
@ -518,7 +518,7 @@ public class InfoProductWindow extends InfoWindow {
*
* @param M_Warehouse_ID warehouse
*/
private void setWarehouse(int M_Warehouse_ID)
protected void setWarehouse(int M_Warehouse_ID)
{
for(WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("M_Warehouse_ID")) {
@ -535,7 +535,7 @@ public class InfoProductWindow extends InfoWindow {
*
* @param M_PriceList_Version_ID price list
*/
private void setPriceListVersion(int M_PriceList_Version_ID)
protected void setPriceListVersion(int M_PriceList_Version_ID)
{
if (log.isLoggable(Level.CONFIG)) log.config("M_PriceList_Version_ID=" + M_PriceList_Version_ID);
@ -555,7 +555,7 @@ public class InfoProductWindow extends InfoWindow {
/**
* Refresh Query
*/
private void refresh(int M_Warehouse_ID, int M_PriceList_Version_ID)
protected void refresh(int M_Warehouse_ID, int M_PriceList_Version_ID)
{
int m_M_Product_ID = getSelectedRowKey();
String sql = m_sqlWarehouse;
@ -641,7 +641,7 @@ public class InfoProductWindow extends InfoWindow {
* @param m_M_Warehouse_ID
* @param m_M_Product_ID
*/
private void initAtpTab (int m_M_Warehouse_ID, int m_M_Product_ID)
protected void initAtpTab (int m_M_Warehouse_ID, int m_M_Product_ID)
{
// Header
Vector<String> columnNames = new Vector<String>();

View File

@ -399,7 +399,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
btMenuProcess.setVisible(ipMenu.getChildren().size() > 0);
}
private void processQueryValue() {
protected void processQueryValue() {
isQueryByUser = true;
for (int i = 0; i < identifiers.size(); i++) {
WEditor editor = identifiers.get(i);
@ -434,7 +434,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
isQueryByUser = false;
}
private boolean loadInfoDefinition() {
protected boolean loadInfoDefinition() {
String tableName = null;
if (AD_InfoWindow_ID > 0) {
infoWindow = new MInfoWindow(Env.getCtx(), AD_InfoWindow_ID, null);
@ -514,7 +514,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
}
//private MInfoColumn[] topinfoColumns;//infoWindow.getInfoColumns(tableInfos);
private boolean loadInfoRelatedTabs() {
protected boolean loadInfoRelatedTabs() {
if (infoWindow == null)
return false;
@ -654,7 +654,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
prepareTable(columnInfos, infoWindow.getFromClause(), p_whereClause, infoWindow.getOrderByClause());
}
private ColumnInfo createLookupColumnInfo(TableInfo[] tableInfos,
protected ColumnInfo createLookupColumnInfo(TableInfo[] tableInfos,
GridField gridField, MInfoColumn infoColumn) {
String columnName = gridField.getColumnName();
String validationCode = "";
@ -801,7 +801,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
return sql;
}
private MInfoColumn findInfoColumn(GridField gridField) {
protected MInfoColumn findInfoColumn(GridField gridField) {
for(int i = 0; i < gridFields.size(); i++) {
if (gridFields.get(i) == gridField) {
return infoColumns[i];
@ -1138,7 +1138,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
dynamicDisplay(null);
}
private void evalDisplayLogic() {
protected void evalDisplayLogic() {
for(WEditor editor : editors) {
if (editor.getGridField() != null && !editor.getGridField().isDisplayed(true)) {
editor.getComponent().setVisible(false);
@ -1256,7 +1256,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
panel.appendChild(fieldEditor);
}
private void createAndCheckbox() {
protected void createAndCheckbox() {
checkAND = new Checkbox();
checkAND.setLabel(Msg.getMsg(Env.getCtx(), "SearchAND", true));
String tips = Msg.getMsg(Env.getCtx(), "SearchAND", false);
@ -1502,7 +1502,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
* Test Row Count
* @return true if display
*/
private boolean testCount(boolean promptError)
protected boolean testCount(boolean promptError)
{
long start = System.currentTimeMillis();
String dynWhere = getSQLWhere();
@ -1640,7 +1640,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
* @author xolali IDEMPIERE-1045
* refresh(Object obj, EmbedWinInfo relatedInfo)
*/
private void refresh(Object obj, EmbedWinInfo relatedInfo)
protected void refresh(Object obj, EmbedWinInfo relatedInfo)
{
StringBuilder sql = new StringBuilder();
sql.append(relatedInfo.getInfoSql()); // delete get sql method from MInfoWindow
@ -1703,7 +1703,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
* @author xolali IDEMPIERE-1045
* GridField getGridField(MInfoColumn infoColumn)
*/
private GridField getGridField(MInfoColumn infoColumn){
protected GridField getGridField(MInfoColumn infoColumn){
String columnName = infoColumn.getColumnName();
GridFieldVO vo = GridFieldVO.createParameter(infoContext, p_WindowNo, 0,
columnName, infoColumn.get_Translation("Name"), infoColumn.getAD_Reference_ID(),
@ -1725,7 +1725,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
return gridField;
}
private ArrayList<Object> readData(ResultSet rs, ColumnInfo[] p_layout) throws SQLException {
protected ArrayList<Object> readData(ResultSet rs, ColumnInfo[] p_layout) throws SQLException {
int colOffset = 1; // columns start with 1
ArrayList<Object> data = new ArrayList<Object>();

View File

@ -123,7 +123,7 @@ public class WInfoPAttributeEditor extends WEditor implements IWhereClauseEditor
* M_AttributeSet pa
* </code>
*/
private void cmd_InfoPAttribute()
protected void cmd_InfoPAttribute()
{
int attributeSetId = Env.getContextAsInt(ctx, windowNo, Env.TAB_INFO, "M_AttributeSet_ID");
final InfoPAttributePanel ia = new InfoPAttributePanel(attributeSetId);