Class OptionsPanel

    • Constructor Detail

      • OptionsPanel

        protected OptionsPanel​(com.iamsoft.util.preferences.OptionsModel pModel)
        Reads data from model. Note that widgets in subclasses should be assigned values immediately so that they are available for this call.
    • Method Detail

      • getTitle

        public String getTitle()
      • setTitle

        public void setTitle​(String pTitle)
      • getModel

        public com.iamsoft.util.preferences.OptionsModel getModel()
      • setModel

        public void setModel​(com.iamsoft.util.preferences.OptionsModel pModel)
      • writeToModel

        public abstract void writeToModel()
      • readFromModel

        public abstract void readFromModel()
      • onTabDeactivate

        protected boolean onTabDeactivate​(Map<Class<? extends com.iamsoft.util.preferences.OptionsModel>,​com.iamsoft.util.preferences.OptionsModel> pClsToModelMap)
        Verifies that tab is in valid state before allowing user to move to a new tab or close the parent dialog. If changes must be made to dependent models, this should be done in a subclass. If deactivation is vetoed, a dialog box should be popped up to notify the user why the dialog is not reacting.
        Parameters:
        pClsToModelMap - Map from model class to model instance.
        Returns:
        True if tab deselection is allowed.
      • fillDataPanel

        public static JLabel[] fillDataPanel​(JPanel pPanel,
                                             Map<String,​? extends Component> pStrToFieldMap)
        Populate panel with labels and fields.
        Parameters:
        pStrToFieldMap - map from label to field.
        Returns:
        Ordered array of labels.