Fixed column model in resource detail
This commit is contained in:
parent
59027a3452
commit
a0d1b5649c
|
@ -442,17 +442,18 @@ public class ResourceDetailModel {
|
|||
********************************************/
|
||||
// The column model for grid representation
|
||||
modelColumns = new ArrayList<ColumnConfig>();
|
||||
modelColumns.add(new ColumnConfig("Name", "Name", 260));
|
||||
modelColumns.add(new ColumnConfig("Description", "Description", 200));
|
||||
// modelColumns.add(new ColumnConfig("Version", "Version", 100));
|
||||
modelColumns.add(new ColumnConfig("Name", "Name", 200));
|
||||
modelColumns.add(new ColumnConfig("Description", "Description", 400));
|
||||
modelColumns.add(new ColumnConfig("Scopes", "Scopes", 300));
|
||||
|
||||
// Optional
|
||||
modelColumns.add(new ColumnConfig("ID", "ID", 220));
|
||||
modelColumns.add(new ColumnConfig("SubType", "Secondary Type", 170));
|
||||
modelColumns.add(new ColumnConfig("SubType", "SubType", 200));
|
||||
modelColumns.add(new ColumnConfig("Scopes", "Scopes", 300));
|
||||
|
||||
// create the column model
|
||||
cm = new ColumnModel(modelColumns);
|
||||
for (int i = 5; i < modelColumns.size(); i++) {
|
||||
for (int i = 3; i < modelColumns.size(); i++) {
|
||||
cm.setHidden(i, true);
|
||||
}
|
||||
RECORD_DEFINITION.put(ResourceTypeDecorator.ConfigurationTemplate.name(), cm);
|
||||
|
@ -464,19 +465,14 @@ public class ResourceDetailModel {
|
|||
type.addField("ID");
|
||||
type.addField("Name");
|
||||
type.addField("Description");
|
||||
// type.addField("Version");
|
||||
// a) This is the GHNID type.addField("GHN", "/Profile/GHN/@UniqueID");
|
||||
// b) While this is its name
|
||||
type.addField("Scopes");
|
||||
|
||||
// These fields are internally used and not showable
|
||||
type.addField("SubType");
|
||||
type.addField("Type");
|
||||
|
||||
XML_MAPPING.put(ResourceTypeDecorator.ConfigurationTemplate.name(), type);
|
||||
|
||||
|
||||
/*********************************************
|
||||
* Configuration
|
||||
* GenericResource / Configuration
|
||||
********************************************/
|
||||
// The column model for grid representation
|
||||
modelColumns = new ArrayList<ColumnConfig>();
|
||||
|
@ -1238,7 +1234,7 @@ public class ResourceDetailModel {
|
|||
new String[] { "ServiceClass", "ServiceName", "ID", "SubType", "Scopes" });
|
||||
|
||||
REQUIRED_FIELDS.put(ResourceTypeDecorator.ConfigurationTemplate.name(),
|
||||
new String[] { "ServiceClass", "ServiceName", "ID", "SubType", "Scopes" });
|
||||
new String[] { "Name", "SubType", "ID", "Scopes" });
|
||||
REQUIRED_FIELDS.put(ResourceTypeDecorator.GenericResource.name(),
|
||||
new String[] { "Name", "SubType", "ID", "Scopes" });
|
||||
|
||||
|
|
Loading…
Reference in New Issue