private String id; // id is not supplied to display, but used to identify
// entries when saved
- private boolean isDefault;
+ private boolean isPrimary;
private boolean isSelected;
add(MessageManager.formatMessage("label.name"));
add(MessageManager.formatMessage("label.url"));
add(MessageManager.formatMessage("label.inmenu"));
- add(MessageManager.formatMessage("label.default"));
+ add(MessageManager.formatMessage("label.primary"));
add(MessageManager.formatMessage("label.id"));
}
};
public final static int SELECTED = 2;
- public final static int DEFAULT = 3;
+ public final static int PRIMARY = 3;
public final static int ID = 4;
boolean rowSelected, boolean rowDefault)
{
id = rowId;
- isDefault = rowDefault;
+ isPrimary = rowDefault;
isSelected = rowSelected;
link = rowLink;
return link.getUrlWithToken();
}
- public boolean getIsDefault()
+ public boolean getIsPrimary()
{
- return isDefault;
+ return isPrimary;
}
public boolean getIsSelected()
public void setIsDefault(boolean rowDefault)
{
- isDefault = rowDefault;
+ isPrimary = rowDefault;
}
public void setIsSelected(boolean rowSelected)
return id;
case URL:
return getUrl();
- case DEFAULT:
- return isDefault;
+ case PRIMARY:
+ return isPrimary;
case SELECTED:
return isSelected;
case NAME:
case URL:
setUrl((String) value);
break;
- case DEFAULT:
- isDefault = (boolean) value;
+ case PRIMARY:
+ isPrimary = (boolean) value;
break;
case SELECTED:
isSelected = (boolean) value;
*/
public boolean isEditable(int index)
{
- if (index == DEFAULT)
+ if (index == PRIMARY)
{
- // default link must not be a $DB_ACCESSION$ link
+ // primary link must not be a $DB_ACCESSION$ link
// so only allow editing if it is not
return (!link.usesDBAccession());
}