/** * Get this property. * @param strProperty The key to lookup. * @return The property for this key. */ public String getProperty(String strProperty) { if (strProperty.equalsIgnoreCase(DBParams.MENU)) if (m_strMenu != null) return m_strMenu; // Current menu property if (this.getMainRecord() != null) if ((this.getMainRecord().getEditMode() == DBConstants.EDIT_CURRENT) || (this.getMainRecord().getEditMode() == DBConstants.EDIT_IN_PROGRESS)) { if ("menutitle".equalsIgnoreCase(strProperty)) return this.getMenuName(this.getMainRecord()); if ("type".equalsIgnoreCase(strProperty)) return this.getMenuType(this.getMainRecord()); if ("icon".equalsIgnoreCase(strProperty)) return this.getMenuIcon(this.getMainRecord()); if ("menudesc".equalsIgnoreCase(strProperty)) return this.getMenuDesc(this.getMainRecord()); if ("link".equalsIgnoreCase(strProperty)) return this.getMenuLink(this.getMainRecord()); if (this.getMainRecord() instanceof Menus) if (((XMLPropertiesField)this.getMainRecord().getField(Menus.kParams)).getProperty(strProperty) != null) return ((XMLPropertiesField)this.getMainRecord().getField(Menus.kParams)).getProperty(strProperty); } return super.getProperty(strProperty); } /**
/** * Get this property. * @param strProperty The key to lookup. * @return The property for this key. */ public String getProperty(String strProperty) { if (strProperty.equalsIgnoreCase(DBParams.MENU)) if (m_strMenu != null) return m_strMenu; // Current menu property if (this.getMainRecord() != null) if ((this.getMainRecord().getEditMode() == DBConstants.EDIT_CURRENT) || (this.getMainRecord().getEditMode() == DBConstants.EDIT_IN_PROGRESS)) { if ("menutitle".equalsIgnoreCase(strProperty)) return this.getMenuName(this.getMainRecord()); if ("type".equalsIgnoreCase(strProperty)) return this.getMenuType(this.getMainRecord()); if ("icon".equalsIgnoreCase(strProperty)) return this.getMenuIcon(this.getMainRecord()); if ("menudesc".equalsIgnoreCase(strProperty)) return this.getMenuDesc(this.getMainRecord()); if ("link".equalsIgnoreCase(strProperty)) return this.getMenuLink(this.getMainRecord()); if (this.getMainRecord() instanceof MenusModel) if (((XMLPropertiesField)this.getMainRecord().getField(MenusModel.PARAMS)).getProperty(strProperty) != null) return ((XMLPropertiesField)this.getMainRecord().getField(MenusModel.PARAMS)).getProperty(strProperty); } return super.getProperty(strProperty); } /**