/** * Save the current value of this field to the registration database. */ public void saveValue() { PropertyOwner pRegistration = this.retrieveUserProperties(); if (pRegistration != null) if (pRegistration instanceof UserProperties) ((UserProperties)pRegistration).saveField(this.getOwner()); } /**
/** * Retrieve the value of this field in the registration database, as set the field to this value. * @return true If the value was retrieved from the registration database. */ public boolean retrieveValue() { PropertyOwner pRegistration = this.retrieveUserProperties(); if (pRegistration != null) if (pRegistration instanceof UserProperties) return ((UserProperties)pRegistration).retrieveField(this.getOwner()); return false; } /**
/** * Retrieve the value of this field in the registration database, as set the field to this value. * @return true If the value was retrieved from the registration database. */ public boolean retrieveValue() { PropertyOwner pRegistration = this.retrieveUserProperties(); if (pRegistration != null) if (pRegistration instanceof UserProperties) return ((UserProperties)pRegistration).retrieveField(this.getOwner()); return false; } /**
/** * Save the current value of this field to the registration database. */ public void saveValue() { PropertyOwner pRegistration = this.retrieveUserProperties(); if (pRegistration != null) if (pRegistration instanceof UserProperties) ((UserProperties)pRegistration).saveField(this.getOwner()); } /**
/** * Retrieve the value of this field in the registration database, as set the field to this value. * @return true If the value was retrieved from the registration database. */ public boolean retrieveValue() { PropertyOwner pRegistration = this.retrieveUserProperties(); if (pRegistration != null) if (pRegistration instanceof UserProperties) return ((UserProperties)pRegistration).retrieveField(this.getOwner()); return false; } /**
/** * Save the current value of this field to the registration database. */ public void saveValue() { PropertyOwner pRegistration = this.retrieveUserProperties(); if (pRegistration != null) if (pRegistration instanceof UserProperties) ((UserProperties)pRegistration).saveField(this.getOwner()); } /**
/** * Get the owner of this property key. * The registration key is the screen's key. * The property key is the field name. * @return The owner of this property key. */ public PropertyOwner retrieveUserProperties() { Record record = this.getOwner().getRecord(); BasePanel screen = record.getScreen(); if (screen != null) return screen.retrieveUserProperties(); // Return the registration key else return null; // Must have a screen for this to work } }
/** * Get the owner of this property key. * The registration key is the screen's key. * The property key is the field name. * @return The owner of this property key. */ public PropertyOwner retrieveUserProperties() { Record record = this.getOwner().getRecord(); BasePanel screen = record.getScreen(); if (screen != null) return screen.retrieveUserProperties(); // Return the registration key else return null; // Must have a screen for this to work } }
/** * Get the owner of this property key. * The registration key is the screen's key. * The property key is the field name. * @return The owner of this property key. */ public PropertyOwner retrieveUserProperties() { Record record = this.getOwner().getRecord(); ComponentParent screen = null; if (record.getRecordOwner() instanceof ComponentParent) screen = (ComponentParent)record.getRecordOwner(); if (screen != null) return screen.retrieveUserProperties(); // Return the registration key else return null; // Must have a screen for this to work } }