View Javadoc
1 /* 2 * 3 * $Revision: 1.5 $ 4 */ 5 package com.sun.xml.registry.client.browser; 6 7 import java.awt.*; 8 import java.awt.event.*; 9 10 import javax.swing.*; 11 import javax.swing.event.*; 12 13 import javax.xml.registry.*; 14 15 16 /*** 17 * A specialization of JPanel for JAXR Browser designed to displays RIM objects. 18 * 19 * @author <a href="mailto:Farrukh.Najmi@Sun.COM">Farrukh S. Najmi</a> 20 * @version 21 */ 22 public abstract class JBPanel extends JPanel { 23 24 protected Object model = null; 25 protected boolean editable = false; 26 27 28 /*** Creates new JBPanel */ 29 public JBPanel() { 30 } 31 32 public Object getModel() throws JAXRException { 33 if (model != null) { 34 validateInput(); 35 } 36 37 return model; 38 } 39 40 public void setModel(Object model) throws JAXRException { 41 clear(); 42 this.model = model; 43 } 44 45 public void clear() throws JAXRException { 46 } 47 48 protected void validateInput() throws JAXRException { 49 } 50 51 /*** 52 * Sets whether this dialog is read-only or editable. 53 */ 54 public void setEditable(boolean editable) { 55 this.editable = editable; 56 } 57 58 /*** 59 * Tells whether this dialog is read-only or editable. 60 */ 61 public boolean isEditable() { 62 return editable; 63 } 64 65 }

This page was automatically generated by Maven