[Dirconsole-cvs] dirconsole/Snapins/CosinSchema/src/dirconsole/snapin/cosin/editor DNSDomainEditor.j
Brought to you by:
bavodr
|
From: Bavo De R. <ba...@us...> - 2004-07-25 15:46:07
|
Update of /cvsroot/dirconsole/dirconsole/Snapins/CosinSchema/src/dirconsole/snapin/cosin/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1253/Snapins/CosinSchema/src/dirconsole/snapin/cosin/editor Modified Files: DNSDomainEditor.java Log Message: Uses SOA form for SOA value Index: DNSDomainEditor.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/Snapins/CosinSchema/src/dirconsole/snapin/cosin/editor/DNSDomainEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DNSDomainEditor.java 24 Jul 2004 14:12:07 -0000 1.2 --- DNSDomainEditor.java 25 Jul 2004 15:45:58 -0000 1.3 *************** *** 1,20 **** /* ! * Copyright 2001 - 2004, Bavo De Ridder * * This file is part of Directory Console. ! * ! * Directory Console is free software; you can redistribute it ! * and/or modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 of the ! * License, or (at your option) any later version. ! * ! * Directory Console is distributed in the hope that it will be ! * useful, but WITHOUT ANY WARRANTY; without even the implied warranty ! * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with Directory Console; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston * * http://www.gnu.org/licenses/gpl.html --- 1,20 ---- /* ! * Copyright 2001 - 2004, Bavo De Ridder * * This file is part of Directory Console. ! * ! * Directory Console is free software; you can redistribute it and/or modify it ! * under the terms of the GNU General Public License as published by the Free ! * Software Foundation; either version 2 of the License, or (at your option) any ! * later version. ! * ! * Directory Console is distributed in the hope that it will be useful, but ! * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ! * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more ! * details. ! * ! * You should have received a copy of the GNU General Public License along with ! * Directory Console; if not, write to the Free Software Foundation, Inc., 59 ! * Temple Place, Suite 330, Boston * * http://www.gnu.org/licenses/gpl.html *************** *** 23,27 **** package dirconsole.snapin.cosin.editor; - import portal.comp.CheckBox; import portal.comp.TextArea; import portal.comp.TextInput; --- 23,26 ---- *************** *** 52,55 **** --- 51,55 ---- public void beforeApply() throws EditorException { + soaForm.beforeApply(); } *************** *** 67,75 **** try { ! tabbedEditor = new TabbedPane(); ! ! createCommonPanel(); ! createZonePanel(); ! createHostPanel(); } catch (Exception e) --- 67,75 ---- try { ! tabbedEditor = new TabbedPane(); ! ! createCommonPanel(); ! createZonePanel(); ! createHostPanel(); } catch (Exception e) *************** *** 82,90 **** { commonPanel = new Panel(); ! commonPanel.setLayout( ! new VelocityLayout("snapin/cosin/editor/DNSCommonPanel.vm")); ! TextArea description = ! EditorUtils.createTextArea("description", editorContext); description.setRows(5); description.setColumns(40); --- 82,90 ---- { commonPanel = new Panel(); ! commonPanel.setLayout(new VelocityLayout( ! "snapin/cosin/editor/DNSCommonPanel.vm")); ! TextArea description = EditorUtils.createTextArea("description", ! editorContext); description.setRows(5); description.setColumns(40); *************** *** 98,138 **** { zonePanel = new Panel(); ! zonePanel.setLayout( ! new VelocityLayout("snapin/cosin/editor/DNSZonePanel.vm")); ! ! TextInput sOARecordInput = ! EditorUtils.createTextInput("sOARecord", editorContext); ! sOARecordInput.setSize(40); ! TextInput serialSOAInput = new TextInput(); ! TextInput refreshSOAInput = new TextInput(); ! TextInput retrySOAInput = new TextInput(); ! TextInput expireSOAInput = new TextInput(); ! TextInput ttlSOAInput = new TextInput(); ! ! CheckBox serialAutoUpdate = new CheckBox(); ! serialAutoUpdate.getCheckBoxModel().setCaption("Auto update"); ! serialAutoUpdate.getCheckBoxModel().setValue(true); ! zonePanel.add(serialSOAInput, "serialSOA"); ! zonePanel.add(serialAutoUpdate, "serialSOAAutoUpdate"); ! zonePanel.add(refreshSOAInput, "refreshSOA"); ! zonePanel.add(retrySOAInput, "retrySOA"); ! zonePanel.add(refreshSOAInput, "refreshSOA"); ! zonePanel.add(expireSOAInput, "expireSOA"); ! GenericAttributeEditor mXRecordInput = ! new GenericAttributeEditor( ! "mXRecord", ! editorContext.getLdapObjectModel()); mXRecordInput.setSize(40); ! GenericAttributeEditor nSRecordInput = ! new GenericAttributeEditor( ! "nSRecord", ! editorContext.getLdapObjectModel()); mXRecordInput.setSize(40); - zonePanel.add(sOARecordInput, "sOARecord"); zonePanel.add(mXRecordInput, "mXRecord"); zonePanel.add(nSRecordInput, "nSRecord"); --- 98,121 ---- { zonePanel = new Panel(); ! zonePanel.setLayout(new VelocityLayout( ! "snapin/cosin/editor/DNSZonePanel.vm")); ! if (!editorContext.getLdapObjectModel().hasLdapAttribute("sOARecord")) ! { ! editorContext.getLdapObjectModel().addLdapAttribute("sOARecord"); ! } ! soaForm = new SOAForm(new SOAFormModel(editorContext ! .getLdapObjectModel().getLdapAttribute("sOARecord"))); ! zonePanel.add(soaForm, "sOAForm"); ! GenericAttributeEditor mXRecordInput = new GenericAttributeEditor( ! "mXRecord", editorContext.getLdapObjectModel()); mXRecordInput.setSize(40); ! GenericAttributeEditor nSRecordInput = new GenericAttributeEditor( ! "nSRecord", editorContext.getLdapObjectModel()); mXRecordInput.setSize(40); zonePanel.add(mXRecordInput, "mXRecord"); zonePanel.add(nSRecordInput, "nSRecord"); *************** *** 144,156 **** { hostPanel = new Panel(); ! hostPanel.setLayout( ! new VelocityLayout("snapin/cosin/editor/DNSHostPanel.vm")); ! TextInput cNAMERecordInput = ! EditorUtils.createTextInput("cNAMERecord", editorContext); cNAMERecordInput.setSize(40); ! TextInput aRecordInput = ! EditorUtils.createTextInput("aRecord", editorContext); aRecordInput.setSize(40); --- 127,139 ---- { hostPanel = new Panel(); ! hostPanel.setLayout(new VelocityLayout( ! "snapin/cosin/editor/DNSHostPanel.vm")); ! TextInput cNAMERecordInput = EditorUtils.createTextInput("cNAMERecord", ! editorContext); cNAMERecordInput.setSize(40); ! TextInput aRecordInput = EditorUtils.createTextInput("aRecord", ! editorContext); aRecordInput.setSize(40); *************** *** 163,170 **** private EditorContext editorContext; ! private TabbedPane tabbedEditor; ! private Panel commonPanel; ! private Panel zonePanel; ! private Panel hostPanel; ! } --- 146,157 ---- private EditorContext editorContext; ! private TabbedPane tabbedEditor; ! private Panel commonPanel; ! ! private Panel zonePanel; ! ! private Panel hostPanel; ! ! private SOAForm soaForm; ! } \ No newline at end of file |