/** * Pull out each field from the LayerIdentifierInfo if it exists and put the contents into the * fields. */ @Override protected void onBeforeRender() { LayerIdentifierInfo info = getModelObject(); if (info != null) { authority.setModelObject(info.getAuthority()); identifier.setModelObject(info.getIdentifier()); } super.onBeforeRender(); }
/** * Pull out each field from the LayerIdentifierInfo if it exists and put the contents into the * fields. */ @Override protected void onBeforeRender() { LayerIdentifierInfo info = getModelObject(); if (info != null) { authority.setModelObject(info.getAuthority()); identifier.setModelObject(info.getIdentifier()); } super.onBeforeRender(); } }
@Override protected void convertInput() { LayerIdentifierInfo info = getModelObject(); String auth = authority.getConvertedInput(); String id = identifier.getConvertedInput(); if (id == null && auth == null) { setConvertedInput(null); return; } if (info == null) { info = new LayerIdentifier(); setModelObject(info); } info.setAuthority(auth); info.setIdentifier(id); setConvertedInput(info); }
@Override public void convertInput() { LayerIdentifierInfo info = getModelObject(); String auth = authority.getConvertedInput(); String id = identifier.getConvertedInput(); if (id == null && auth == null) { setConvertedInput(null); return; } if (info == null) { info = new LayerIdentifier(); setModelObject(info); } info.setAuthority(auth); info.setIdentifier(id); setConvertedInput(info); }