This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
<class package="org.netbeans.spi.viewmodel" name="ModelEvent" />
<issue number="60499"/>
</change>
<change>
<api name="ViewModelAPI"/>
<summary>CompoundModel enhanced with a possibility to set help ID.</summary>
<version major="1" minor="7"/>
<date day="18" month="8" year="2005"/>
<author login="mentlicher"/>
<compatibility binary="compatible" source="compatible" deletion="no" addition="yes" modification="no"/>
<description>
In order to have a help ID defined for the GUI component that is
created from the compound model, it's necessary to be able to set
that help ID on the compound model instance.
Two methods are added for that purpose:
void setHelpId(String) and String getHelpId().
</description>
<class package="org.netbeans.spi.viewmodel" name="Models" />
<issue number="62617"/>
</changes>
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.spi.viewmodel/2
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/viewmodel/Bundle.properties
OpenIDE-Module-Specification-Version: 1.6
OpenIDE-Module-Specification-Version: 1.7
this.model = model;
this.treeModelRoot = treeModelRoot;
this.object = object;
// <RAVE>
// Use the modified CompoundModel class's field to set the
// propertiesHelpID for properties sheets if the model's helpID
// has been set
if (model.getHelpId() != null) {
this.setValue("propertiesHelpID", model.getHelpId()); // NOI18N
}
// </RAVE>
treeModelRoot.registerNode (object, this);
refreshNode ();
initProperties ();
private ColumnModel[] columnModels;
private TableModel tableModel;
private TreeExpansionModel treeExpansionModel;
// New field, setter/getter for propertiesHelpID, which is used
// for property sheet help
private String propertiesHelpID = null;
/**
* Set a help ID for this model.
* @param propertiesHelpID The help ID, which is set for the properties
* sheets created from this model.
* @since 1.7
*/
public void setHelpId(String propertiesHelpID) {
this.propertiesHelpID = propertiesHelpID;
* Get a help ID for this model.
* @return The help ID defined for the properties sheets,
* or <code>null</code>.
public String getHelpId() {
return propertiesHelpID;
// init ....................................................................