/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008-2010 Sun Microsystems, Inc.
*/
/**
* The panel that displays a standard object class definition.
*
*/
{
/**
* Default constructor of the panel.
*
*/
public StandardObjectClassPanel()
{
super();
createLayout();
}
/**
* {@inheritDoc}
*/
{
}
/**
* {@inheritDoc}
*/
{
return requiredAttributes;
}
/**
* {@inheritDoc}
*/
{
}
/**
* {@inheritDoc}
*/
public void okClicked()
{
}
/**
* Creates the layout of the panel (but the contents are not populated here).
*/
protected void createLayout()
{
createBasicLayout(this, new GridBagConstraints());
}
/**
* Creates the basic layout of the panel.
* @param c the container where all the components will be layed out.
* @param gbc the grid bag constraints.
*/
{
};
addErrorPane(c, gbc);
{
if (i == 1)
{
lParent = l;
}
}
};
for (int i=0; i<2; i++)
{
if (i == 0)
{
}
else
{
}
{
/**
* {@inheritDoc}
*/
{
{
}
}
};
{
/**
* {@inheritDoc}
*/
{
{
}
}
};
}
}
/**
* Returns the message describing the schema element origin (file, RFC, etc.).
* @param element the schema element.
* @return the message describing the schema element origin (file, RFC, etc.).
*/
{
{
{
}
}
{
}
else
{
}
return returnValue.toMessage();
}
/**
* Updates the contents of the panel with the provided object class.
* @param oc the object class.
* @param schema the schema.
*/
{
{
// Ignore: this is called to get an initial panel size.
return;
}
if (n == null)
{
n = NOT_APPLICABLE.toString();
}
n = oc.getDescription();
if (n == null)
{
n = NOT_APPLICABLE.toString();
}
description.setText(n);
if (primaryName == null)
{
primaryName = "";
}
{
{
}
}
{
}
else
{
n = NOT_APPLICABLE.toString();
}
{
}
{
{
}
else
{
}
{
{
}
}
}
else
{
}
{
String v;
{
v = attr+" (*)";
}
else
{
v = attr;
}
model.addElement(v);
}
{
}
{
{
{
}
}
}
{
String v;
{
v = attr+" (*)";
}
else
{
v = attr;
}
model.addElement(v);
}
}
{
String n;
{
n = null;
}
else
{
{
n = NOT_APPLICABLE.toString();
}
{
}
else
{
{
}
}
}
if (n == null)
{
n = NOT_APPLICABLE.toString();
}
return n;
}
/**
* Returns the message describing the object class type (structural, obsolete,
* etc.) of a given object class.
* @param oc the object class.
* @return the message describing the object class type (structural, obsolete,
* etc.) of the provided object class.
*/
{
switch (oc.getObjectClassType())
{
case ABSTRACT:
break;
case STRUCTURAL:
break;
case AUXILIARY:
break;
}
if (oc.isObsolete())
{
{
}
}
}
{
if (o != null)
{
{
}
}
}
}