/** * Constructs the CRS panel with an explicit model. * * @param id The component id. * @param model The model, usually a {@link PropertyModel}. */ public CRSPanel(String id, IModel model) { super(id, model); initComponents(); }
/** * Constructs the CRS panel with an explicit model. * * @param id The component id. * @param model The model, usually a {@link PropertyModel}. */ public CRSPanel(String id, IModel<CoordinateReferenceSystem> model) { super(id, model); initComponents(); }
/** * Constructs the CRS panel. * * <p>This constructor should be used if the panel is to inherit from a parent model (ie a * CompoundPropertyModel). If no such model is available the CRS will be left uninitialized. To * avoid inheriting from a parent model the constructor {@link #CRSPanel(String, IModel)} should * be used, specifying explicitly an uninitialized model. * * @param id The component id. */ public CRSPanel(String id) { super(id); initComponents(); }
/** * Constructs the CRS panel. * <p> * This constructor should be used if the panel is to inherit from a parent model * (ie a CompoundPropertyModel). If no such model is available the CRS will be left * uninitialized. To avoid inheriting from a parent model the constructor {@link #CRSPanel(String, IModel)} * should be used, specifying explicitly an uninitialized model. *</p> * @param id The component id. */ public CRSPanel(String id) { super(id); initComponents(); }
/** * Constructs the CRS panel specifying the underlying CRS explicitly. * <p> * When this constructor is used the {@link #getCRS()} method should be used * after the form is submitted to retrieve the final value of the CRS. * </p> * @param id The component id. * @param crs The underlying CRS object. */ public CRSPanel(String id, CoordinateReferenceSystem crs ) { //JD: while the CoordinateReferenceSystem interface does not implement Serializable // all the CRS objects we use do, hence the cast super(id, new Model((Serializable) crs)); initComponents(); setConvertedInput(crs); }
/** * Constructs the CRS panel specifying the underlying CRS explicitly. * * <p>When this constructor is used the {@link #getCRS()} method should be used after the form * is submitted to retrieve the final value of the CRS. * * @param id The component id. * @param crs The underlying CRS object. */ public CRSPanel(String id, CoordinateReferenceSystem crs) { // JD: while the CoordinateReferenceSystem interface does not implement Serializable // all the CRS objects we use do, hence the cast super(id, new CRSModel(crs)); initComponents(); setConvertedInput(crs); }