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 static final long serialVersionUID = -1343685368452976048L;
private Tabbox tabbedPane; protected Tabbox tabbedPane;
private WListbox warehouseTbl; protected WListbox warehouseTbl;
private String m_sqlWarehouse; protected String m_sqlWarehouse;
private WListbox substituteTbl; protected WListbox substituteTbl;
private String m_sqlSubstitute; protected String m_sqlSubstitute;
private WListbox relatedTbl; protected WListbox relatedTbl;
private String m_sqlRelated; protected String m_sqlRelated;
//Available to Promise Tab //Available to Promise Tab
private WListbox m_tableAtp; protected WListbox m_tableAtp;
// Group atp by warehouse or non // Group atp by warehouse or non
private Checkbox chbShowDetailAtp; protected Checkbox chbShowDetailAtp;
//IDEMPIERE-337 //IDEMPIERE-337
private WListbox productpriceTbl; protected WListbox productpriceTbl;
private String m_sqlProductprice; protected String m_sqlProductprice;
private Textbox fieldDescription; protected Textbox fieldDescription;
/** ASI */ /** ASI */
protected int m_M_AttributeSetInstance_ID; protected int m_M_AttributeSetInstance_ID;
private Borderlayout contentBorderLayout; protected Borderlayout contentBorderLayout;
/** Instance Button */ /** Instance Button */
private Button m_PAttributeButton; protected Button m_PAttributeButton;
protected int m_M_Locator_ID; protected int m_M_Locator_ID;
@ -369,7 +369,7 @@ public class InfoProductWindow extends InfoWindow {
}); });
} }
private void onPAttributeClick() { protected void onPAttributeClick() {
Integer productInteger = getSelectedRowKey(); Integer productInteger = getSelectedRowKey();
if (productInteger == null) { if (productInteger == null) {
m_PAttributeButton.setEnabled(false); m_PAttributeButton.setEnabled(false);
@ -397,7 +397,7 @@ public class InfoProductWindow extends InfoWindow {
}); });
} }
private String getSelectedWarehouseLabel() { protected String getSelectedWarehouseLabel() {
for(WEditor editor : editors) { for(WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("M_Warehouse_ID")) { if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("M_Warehouse_ID")) {
Number value = (Number) editor.getValue(); Number value = (Number) editor.getValue();
@ -461,7 +461,7 @@ public class InfoProductWindow extends InfoWindow {
* @param M_PriceList_ID price list * @param M_PriceList_ID price list
* @return M_PriceList_Version_ID price list version * @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; Timestamp priceDate = null;
// Sales Order Date // Sales Order Date
@ -518,7 +518,7 @@ public class InfoProductWindow extends InfoWindow {
* *
* @param M_Warehouse_ID warehouse * @param M_Warehouse_ID warehouse
*/ */
private void setWarehouse(int M_Warehouse_ID) protected void setWarehouse(int M_Warehouse_ID)
{ {
for(WEditor editor : editors) { for(WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("M_Warehouse_ID")) { 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 * @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); 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 * 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(); int m_M_Product_ID = getSelectedRowKey();
String sql = m_sqlWarehouse; String sql = m_sqlWarehouse;
@ -641,7 +641,7 @@ public class InfoProductWindow extends InfoWindow {
* @param m_M_Warehouse_ID * @param m_M_Warehouse_ID
* @param m_M_Product_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 // Header
Vector<String> columnNames = new Vector<String>(); 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); btMenuProcess.setVisible(ipMenu.getChildren().size() > 0);
} }
private void processQueryValue() { protected void processQueryValue() {
isQueryByUser = true; isQueryByUser = true;
for (int i = 0; i < identifiers.size(); i++) { for (int i = 0; i < identifiers.size(); i++) {
WEditor editor = identifiers.get(i); WEditor editor = identifiers.get(i);
@ -434,7 +434,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
isQueryByUser = false; isQueryByUser = false;
} }
private boolean loadInfoDefinition() { protected boolean loadInfoDefinition() {
String tableName = null; String tableName = null;
if (AD_InfoWindow_ID > 0) { if (AD_InfoWindow_ID > 0) {
infoWindow = new MInfoWindow(Env.getCtx(), AD_InfoWindow_ID, null); 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 MInfoColumn[] topinfoColumns;//infoWindow.getInfoColumns(tableInfos);
private boolean loadInfoRelatedTabs() { protected boolean loadInfoRelatedTabs() {
if (infoWindow == null) if (infoWindow == null)
return false; return false;
@ -654,7 +654,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
prepareTable(columnInfos, infoWindow.getFromClause(), p_whereClause, infoWindow.getOrderByClause()); prepareTable(columnInfos, infoWindow.getFromClause(), p_whereClause, infoWindow.getOrderByClause());
} }
private ColumnInfo createLookupColumnInfo(TableInfo[] tableInfos, protected ColumnInfo createLookupColumnInfo(TableInfo[] tableInfos,
GridField gridField, MInfoColumn infoColumn) { GridField gridField, MInfoColumn infoColumn) {
String columnName = gridField.getColumnName(); String columnName = gridField.getColumnName();
String validationCode = ""; String validationCode = "";
@ -801,7 +801,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
return sql; return sql;
} }
private MInfoColumn findInfoColumn(GridField gridField) { protected MInfoColumn findInfoColumn(GridField gridField) {
for(int i = 0; i < gridFields.size(); i++) { for(int i = 0; i < gridFields.size(); i++) {
if (gridFields.get(i) == gridField) { if (gridFields.get(i) == gridField) {
return infoColumns[i]; return infoColumns[i];
@ -1138,7 +1138,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
dynamicDisplay(null); dynamicDisplay(null);
} }
private void evalDisplayLogic() { protected void evalDisplayLogic() {
for(WEditor editor : editors) { for(WEditor editor : editors) {
if (editor.getGridField() != null && !editor.getGridField().isDisplayed(true)) { if (editor.getGridField() != null && !editor.getGridField().isDisplayed(true)) {
editor.getComponent().setVisible(false); editor.getComponent().setVisible(false);
@ -1256,7 +1256,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
panel.appendChild(fieldEditor); panel.appendChild(fieldEditor);
} }
private void createAndCheckbox() { protected void createAndCheckbox() {
checkAND = new Checkbox(); checkAND = new Checkbox();
checkAND.setLabel(Msg.getMsg(Env.getCtx(), "SearchAND", true)); checkAND.setLabel(Msg.getMsg(Env.getCtx(), "SearchAND", true));
String tips = Msg.getMsg(Env.getCtx(), "SearchAND", false); String tips = Msg.getMsg(Env.getCtx(), "SearchAND", false);
@ -1502,7 +1502,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
* Test Row Count * Test Row Count
* @return true if display * @return true if display
*/ */
private boolean testCount(boolean promptError) protected boolean testCount(boolean promptError)
{ {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
String dynWhere = getSQLWhere(); String dynWhere = getSQLWhere();
@ -1640,7 +1640,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
* @author xolali IDEMPIERE-1045 * @author xolali IDEMPIERE-1045
* refresh(Object obj, EmbedWinInfo relatedInfo) * refresh(Object obj, EmbedWinInfo relatedInfo)
*/ */
private void refresh(Object obj, EmbedWinInfo relatedInfo) protected void refresh(Object obj, EmbedWinInfo relatedInfo)
{ {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append(relatedInfo.getInfoSql()); // delete get sql method from MInfoWindow 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 * @author xolali IDEMPIERE-1045
* GridField getGridField(MInfoColumn infoColumn) * GridField getGridField(MInfoColumn infoColumn)
*/ */
private GridField getGridField(MInfoColumn infoColumn){ protected GridField getGridField(MInfoColumn infoColumn){
String columnName = infoColumn.getColumnName(); String columnName = infoColumn.getColumnName();
GridFieldVO vo = GridFieldVO.createParameter(infoContext, p_WindowNo, 0, GridFieldVO vo = GridFieldVO.createParameter(infoContext, p_WindowNo, 0,
columnName, infoColumn.get_Translation("Name"), infoColumn.getAD_Reference_ID(), columnName, infoColumn.get_Translation("Name"), infoColumn.getAD_Reference_ID(),
@ -1725,7 +1725,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
return gridField; 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 int colOffset = 1; // columns start with 1
ArrayList<Object> data = new ArrayList<Object>(); ArrayList<Object> data = new ArrayList<Object>();

View File

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